How the ssrs expressions works for DateDiff?
I'm working on SSRS reports there is on column i.e Holding period where we actually calculate for how many days the company is hold in our database (we compare with buy date) and ssrs expression is =DateDiff(DateInterval.Day, Fields!BuyDate.Value, First(Fields!Date.Value, "DailyPosition")) Which is coming wrong could any one help to execute correct calulation. Buy date is a normal date column from table , and "DailyPosition" is my dataset name from ssrs report. for example Company ABC buy date is 2012-03-13 00:00:00.000 and last parameter date is 2012-12-31 00:00:00.000 below query giving me result as 293 select DATEDIFF (day,'2012-03-13 00:00:00.000','2012-12-31 00:00:00.000') which is wrong as my holding period is 126 days only please help me to correct the expression. Ashish Fugat (ashuthinksatgmail.com) SE
April 15th, 2013 12:50pm

NumberOfDays = Datediff("d",value1,value2) =DateDiff("d", Fields!BuyDate.Value, Fields!Date.Value) Regards, Dineshkumar, My Blog Please 'Mark as Answer' if my post answers your question and 'Vote as Helpful' if it helps you
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2013 1:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics