Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello, Can anyone help me
Solved! Go to Solution.
Hi @Anonymous ,
This column measure is seems that you want to calculate each employee total work hours, is it?
if yes please consider using the following expression:
Sum of hours per employee test =
CALCULATE(
SUM( 'table'[total_hours] ),
FILTER( 'table', [employee_id] = EARLIER( 'table'[employee_id] ) )
)
If this does not work, please provide some example data without sensitive data.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
This column measure is seems that you want to calculate each employee total work hours, is it?
if yes please consider using the following expression:
Sum of hours per employee test =
CALCULATE(
SUM( 'table'[total_hours] ),
FILTER( 'table', [employee_id] = EARLIER( 'table'[employee_id] ) )
)
If this does not work, please provide some example data without sensitive data.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Your GROUPBY is being used in the FILTER position for CALCULATE. Are you trying to create a table of total hours by employee?
If so, try this instead:
NewTable=SUMMARIZECOLUMNS('table'[employee_id],'table',"TotalHours",SUM('table'[total_hours]))