Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
Is it possible to SUM a Time field?
Below I have summed [Rest Time 2] but instead of correctly adding up the times it gives an incorrect time
You cannot get the sum of the time value with Groupby() table because currentgroup() is referring to the current row instead of all(table).
Try use summarize():
Table = Summarize('Engage Timesheet Export',
'Engage Timesheet Export'[Worker Name],
'Engage Timesheet Export'[Week Ending],
"Total Rest Time",Sumx(All('Engage Timesheet Export'),[Rest Time2]))
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous this summarised the rest times and gave the same value for everyone - please see below
@HenryJS
I guess I misunderstood you requirement. I only see the incorrect sum time. You may add filters to set context.
Table = Summarize('Engage Timesheet Export',
'Engage Timesheet Export'[Worker Name],
'Engage Timesheet Export'[Week Ending],
"Total Rest Time",Sumx(All('Engage Timesheet Export'),[Rest Time2]))
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey there. I find that when dealing with time, it's always best to use a decimal number for times, instead of actual times; especially when adding and subtracting. My advice would be to change your time column to type number, write the measure, and then change the measure display type to h:mm:ss or if the sum is over 24 hrs, [H]:mm:ss. Should work!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |