Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Summing time

Author  Topic 

dave0109
Starting Member

3 Posts

Posted - 2011-09-20 : 10:10:29
Hi

I need to show, in a SSRS chart, to cumulative time spent on the phone in a day.

The call data I have provides me with a datetime field for the call start and then a TALK field which is a single number representing the total number of seconds on the call.

I'm carrying parameters that allow me to filter by year month and day of the month.

The chart will then be UserNames across the x-axis and SUM(TALK) up the y-axis.

The confusing part is that 3646 as a total means nothing. Is there a way that I can convert the axis to hh:mm:ss format?

Thanks

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2011-09-20 : 10:14:09
Here is a udf which converts seconds into your desired format, perhaps it will be useful for your needs;

http://geertverhoeven.blogspot.com/2007/01/converting-seconds-to-hhmmss.html

HTH.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2011-09-20 : 10:17:05
there's a FormatDateTime function in SSRS if i remember correctly.
i'm sure you can do input seconds and get a time based format.

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.9 out!

SQL Server MVP
Go to Top of Page
   

- Advertisement -