I have 2 tablix in my report. I need to find the total time in hours and minutes ignoring any day counts. In the appointments tablix I am using expression
=FLOOR(Sum(Fields!actualdurationminutes.Value) / 60) & ":" & RIGHT("0" & (Sum(Fields!actualdurationminutes.Value)
MOD 60), 2)
--acutaldurationminutes is a whole number field automatically populated by code behind the field calculating from the start and end times.
I want to do the same in the events tablix but the column I need to total is made up of the time difference between 2 datetime values instead of a single value. I tried to add DATEDIFF into the expression above to get a single time value but it is giving an error:
=FLOOR(Sum(DateDiff(DateInterval.Minute,Fields!ccx_startdate.Value,Fields!ccx_enddate.Value))/60)&":"& RIGHT("0"&(Sum(DATEDIFF(DateInterval.Minute, Fields!ccx_startdate.Value,Fields!ccx_enddate.Value))MOD 60),2)
I have spent many hours trying to find a solution to this and used this to help with the DateDiff part of the expression: https://stackoverflow.com/questions/20084113/time-difference-between-datetime-fields-ssrs - help to find how to use datediff in expression however there still seems to be something not quite right. I am getting error 'Argument not specified for parameter 'Length' of 'Public function RIGHT(str as String, Length as Integer)AS STRING'
When I have got this right I will then need to add together the answer from both expressions to get the total time per customer in hh:mm
I would be grateful for any help on this. I am learner level so I apologize if I have been too detailed.