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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EwelinaST
Regular Visitor

Calculating Weekly Leave Hours

Hi, I am new to Power BI and I am struggling to calculate the leave hours per week.

I need to summarize the 'Leave Request' table so it shows hours weekly (by Week Ending Date).

EwelinaST_0-1638269504109.png

The above example shows the staff member who requested holidays between 23/12-17/01 (the table already excludes weekends and bank holidays). 
I need to achieve something similar like below but with the right numbers. I know that in this instance I would need to divide weekly hours by 14, however I cannot achieve that using DAX.  I would appreciate any help with that. Many thanks.

EwelinaST_2-1638269742222.png

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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