Forum Discussion
Anonymous
7 years agoNot applicable
add time
I have to sum the time in a particular format. for Example : 9:26:22 9:22:14 9:12:27 9:05:25 9:15:24 Sum is 46:21:52 - i have to get in this format. But, when i am trying to do in po...
- 7 years ago
Hi Anonymous
You may add Table1 in your formula. Attached the sample file.
New Time = VAR a = SUMX ( Table1, HOUR ( Table1[Time] ) * 3600 + MINUTE ( Table1[Time] ) * 60 + SECOND ( Table1[Time] ) ) VAR hours = TRUNC ( a / 3600 ) VAR minutes = TRUNC ( MOD ( a, 3600 ) / 60 ) VAR seconds = MOD ( a, 60 ) RETURN hours & ":" & minutes & ":" & secondsRegards,
Cherie
Greg_Deckler
7 years agoCommunity Champion
I have done a bunch of different stuff regarding time/duration type of stuff. Check out these links:
https://community.powerbi.com/t5/Quick-Measures-Gallery/TIMEADD/m-p/585280
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279