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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors