Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
OCBB_SFAFPandA
Resolver I
Resolver I

How do you calculate the weekly hours for each employee?

Hello,

 

I have a table that summarized hours by employee daily by

 

Total hours | Reg hrs | OT hrs | DblOT

How would I agreggate on a weekly level? and build in a calculation that if Total hours >40 in a week, any hour over is marked as OH hrs?

3 REPLIES 3
Anonymous
Not applicable

Hi @OCBB_SFAFPandA 

Create a calculated column or a measure depends on your requirements for data presentation . In the case of row context, calculated column can be used. If it is an aggregate operation, it is recommended to use measure. Of course, if you can provide specific data and needs, we can better help you solve the problem.

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vapid128
Solution Specialist
Solution Specialist

add colnum 

weekNumIndex = int(([date]-2)/7)
summarize again by employee and weekNumIndex and sum hrs

thanks for the reply! 

 

To summarize again, would these be new measures or more new columns? The end visual won't be showing emp IDs, just the location and hrs/cost on a weekly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.