Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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]))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!