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
Stuartm1983
Helper III
Helper III

Working Days Table

Hello,

 

I'm hoping that somebody knows a straightforward way of achieving to build a table containing working days only using DAX?

 

Thanks

1 ACCEPTED SOLUTION
3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Stuartm1983 

 

 'IsWorkingDay' is computed by simply checking if the date is a Saturday or Sunday. 

 

'Date'[IsWorkingDay] = NOT WEEKDAY( 'Date'[Date] ) IN { 1,7 }

 

 

I'd like to suggest you refer to the following links.

https://www.sqlbi.com/articles/counting-working-days-in-dax/

https://community.powerbi.com/t5/Desktop/Networkdays-DAX-function/td-p/38044

https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks.

 

Ive pretty much got what I need. Thank you.

 

Does Anyone know how to calculate if the date is an Eater Monday or Good Friday in Dax per chance?

 

I'm trying to avoid using a holiday input table.

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.