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!Get 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!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 69 | |
| 50 | |
| 46 |