Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Nadiyah
Contributor
Contributor

Calculate Daily Hours

Hello

I'm trying to develop a dashboard containing the daily spent hours for all the employee 

i tried using sum(daily spent hours) but it's not working 

please see the below screenshot

Nadiyah_0-1665642339923.png

 

can you please help me 

Labels (4)
6 Replies
vinieme12
Champion III
Champion III

that would be because the field is being loaded as TEXT and not as TIME

 

load the field as below

,time(time#('9:00','H:mm')) as [DailyHourSpent]

 

you can then use the same expression

SUM([DailyHourSpent])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Nadiyah
Contributor
Contributor
Author

thank you for answer 

 

i tried your solution here the output 

Nadiyah_0-1665643487422.png

 

Mark_Little
Luminary
Luminary

Hi @Nadiyah 

If @vinieme12  answer is not correct please supply some detail, share some example data and expected results. What dimensions are you using.

Nadiyah
Contributor
Contributor
Author

I want to calculate the working hours for all the employees, I used the daily column which already exists in the excel sheet, and already calculated the spinning hours for every employee on a daily basis.  so I want to sum up all the values to get the working hours for all the employees

 

vinieme12
Champion III
Champion III

you need to format it as interval when summing time 

 

=interval(sum(dailyhourspent),'H:mm')

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

example below

 

temp:
Load recno() as rownum, interval#(hourspent,'H:mm')  as hourspent inline [
hourspent
9:00
9:00
133:00
];

 

vinieme12_2-1665644599516.png

 

vinieme12_1-1665644551807.png

or

vinieme12_3-1665644621495.png

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.