Having some trouble getting some formatting to look a certain way in SSRS. I'm doing a scatter chart. My Y-axis data is coming in as a 2 floating point numbers from the database table that needs to be converted into seconds.Usually these numbers look something like 0.000335648146574385.So I'm pulling these numbers into SSRS and doing a quick calculation on them to get seconds =int(Fields!TimeSecond.Value * 1440 * 60). Just having my Y-axis show up as a number works fine. Minimum of 0 up to 120 for 2 minutes. Data for the 2 points charts nicely across X and Y. But the data won't chart as a date type so getting the labels to look nice is a pain.What I want is for the data's labels to show up in mm:ss format even though I'm just using an int value. I thought simply converting how the labels display would be easiest. So a value of 120 would show up as 02:00. 100 would show up as 01:40. Etc. Then I could have the Y-axis display 00:00 as the minimum and 02:00 as the maximum. This would probably be easier if the data was coming in as a datetime to begin with, but it isn't and I can't change that.I got some help on the MSDN forums and it got me closer to what I wanted...=iif(Sum(Fields!TimeSecond.Value)>0,iif(int(Sum(Fields!TimeSecond.Value)/60)<10,"0" & int(Sum(Fields!TimeSecond.Value)/60),int(Sum(Fields!TimeSecond.Value)/60)) & ":" & iif(Sum(Fields!TimeSecond.Value) mod 60<10,"0" & Sum(Fields!TimeSecond.Value) mod 60,Sum(Fields!TimeSecond.Value) mod 60),"")I now get 00:00 format. But after 00:59 instead of going to 01:00 it goes to 00:60. Then 00:70, etc. The gentleman that answered me said it was converting properly for him so I can only assume I'm doing something wrong somewhere else. Anyone have any idea or run into a similar problem?Thanks in advance!
↧