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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Mai_Nashaat
Helper II
Helper II

Calculate shipment days

Hi guys,

 

I need to calculate a measure as days from first day of the month to RDD date excluding fridays and official holidays in this days range.

I have three tables

order scheduel that has the RDD
Official holidays that has Day, Month of official holidays

date table that has weekends column that marks fridays as true
How can I calculate the equation I mentioned at the top.

Any help please

Official Holidays.pngorder sch.pngWeekends.png 

2 REPLIES 2
lbendlin
Super User
Super User

I recommend you change your calendar table to include the holidays, and to flip your logic around. Instead of flagging the days off (weekend/holiday), flag the actual working days, ideally as 1 vs 0. That way your calculation can be done via SUMX directly.  Not strictly required, but easier. If you want more pointers, please provide sample data in usable format and show the expected outcome.

I should add three days to today's date excluding weekends and official holidays and divide this by number of days in month excluding weekends and holidays

For example date today is 24-dec-2020 so after adding three days it should be 28-dec-2020 as 25-dec is weekend (Friday).

then get number of days from start of the month to 28-dec subtracting fridays(4) and holidays that should be 24 days.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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