SSRS – How to convert in Day/Hour/Minute format in SSRS report

Scenario – In my SSRS report I have calculate Age field of Tickets like in 1 Day 2 Hours 20 min format and we are getting values in minute .

Solution –

I have created filed called Age(Minutes) in my SP or query

IN SQL –

datediff(minute,date_created, getdate()) as ‘Age (Minute)’

IN SSRS write expression

=  ( Fields!Age__Minute_.Value ) \ 1440 & ” days ” &  ((( Fields!Age__Minute_.Value ) MOD1440) \ 60 ) & ” Hours ” & ((( Fields!Age__Minute_.Value ) MOD1440) MOD 60 ) & ” Minutes “

3 thoughts on “SSRS – How to convert in Day/Hour/Minute format in SSRS report

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s