Forum Discussion
SUM Time Field
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
- Anonymous5 years agoNot applicable
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.