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
I have 3 tables:
Date Table
Public Holiday Table with Dates of the holidays
Shift Table with Shift Start Date/Times and EndDate/Times, and a column with worked hours in the shift
I want to calculate the sum of worked hours between the Holiday date and the Holiday date - 35 days
Any help here would be appreciated.
Thanks
Solved! Go to Solution.
@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example.
This file has a calculation for date diff and datediff working day. See if this can help
https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
Also check: https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calendar-4-5-Power/ba-p/1187766
Appreciate your Kudos.
@amitchandak I took your solution in the PBIX provided.
I created a Min date based off the HolidayDate -35 days and a Max date based off the Holiday Date and used this formula
@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example.
This file has a calculation for date diff and datediff working day. See if this can help
https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
Also check: https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calendar-4-5-Power/ba-p/1187766
Appreciate your Kudos.
Hello @amitchandak
Thank you for your reply
I want a measure to calculate the hours worked between two dates. These dates are on another table. My measure would be something like this, but it doesn't work
Hours Worked 5 Weeks from Holiday =
@amitchandak I took your solution in the PBIX provided.
I created a Min date based off the HolidayDate -35 days and a Max date based off the Holiday Date and used this formula
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.