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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hemendranath
Regular Visitor

Working Days based on start date

Is it possible to get an end date that is exactly 10 business days from the start date (excluding weekends and public holidays)?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @hemendranath 

You need a ‘Holiday Table’ that lists all your holiday so that you can add a calculated column to 'Calendar' Table to mark all your working days.

Workday =
IF (
    WEEKDAY ( 'Calendar'[Date], 2 )
        IN { 1, 2, 3, 4, 5 }
            && NOT 'Calendar'[Date] IN VALUES ( 'Holiday Table'[Date] ),
    "Workday",
    "Weenkends/hoiliday"
)

 

veasonfmsft_0-1665560269734.png

Then, you can try the following formula to calculate the end date.

End Date = 
CALCULATE (
    MAX( 'Calendar'[Date] ),
    FILTER (
        'Calendar',
        NETWORKDAYS (
            MAX ( 'Table'[Date] ),
            'Calendar'[Date],
            1,
            VALUES ( 'Holiday Table'[Date] )
        ) = 10
            && 'Calendar'[Workday] = "Workday"
    )
)

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

 

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @hemendranath 

You need a ‘Holiday Table’ that lists all your holiday so that you can add a calculated column to 'Calendar' Table to mark all your working days.

Workday =
IF (
    WEEKDAY ( 'Calendar'[Date], 2 )
        IN { 1, 2, 3, 4, 5 }
            && NOT 'Calendar'[Date] IN VALUES ( 'Holiday Table'[Date] ),
    "Workday",
    "Weenkends/hoiliday"
)

 

veasonfmsft_0-1665560269734.png

Then, you can try the following formula to calculate the end date.

End Date = 
CALCULATE (
    MAX( 'Calendar'[Date] ),
    FILTER (
        'Calendar',
        NETWORKDAYS (
            MAX ( 'Table'[Date] ),
            'Calendar'[Date],
            1,
            VALUES ( 'Holiday Table'[Date] )
        ) = 10
            && 'Calendar'[Workday] = "Workday"
    )
)

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.