Link to home
Start Free TrialLog in
Avatar of aneilg
aneilgFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SSRS Expressions How to add/sum time.

i have the following expression but i cannot seem to sum/add the time.

i've tried

=iif(fields!PercentFlag.Value ="H",format(sum(fields!Time.Value, "HH:mm"))

=FLOOR(Sum(Fields!Time.Value) / 60) & ":"
& RIGHT("0" & (Sum(Fields!Time.Value) MOD 60), 2)
Avatar of selva_kongu
selva_kongu
Flag of India image

try this

Date.FromOADate(Sum(Fields!TheTime.Value.ToOADate())).ToString("hh:mm:ss")
Avatar of aneilg

ASKER

i just get an error #Error.
Avatar of aneilg

ASKER

my time is as follows: HH:mm. no seconds.

thanks.
Please refer the Link
Avatar of aneilg

ASKER

i've had  alook at that link, but its not what i want.

thaey are using "s",date1,date2.

i am only using one date and no seconds.
Avatar of santhimurthyd
How the Time.Value format, whether it's 12:30 else 12.30
ASKER CERTIFIED SOLUTION
Avatar of aneilg
aneilg
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aneilg

ASKER

no answer given