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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
onionnoodle
Frequent Visitor

DAX End Of Month Working Day Categorization

I'm looking for a calculated column on the end of a date table that categorises the last 4 working days (0 to 3)

 

I've gotten close, but no cigar without writting an endless IF/SWITCH - Any help would be appreciated!

 

I'm looking to categorize as follows:

DateCategory DateCategory
Friday, January 26, 20243 Monday, July 26, 2027Other
Saturday, January 27, 20242 Tuesday, July 27, 20273
Sunday, January 28, 20242 Wednesday, July 28, 20272
Monday, January 29, 20242 Thursday, July 29, 20271
Tuesday, January 30, 20241 Friday, July 30, 20270
Wednesday, January 31, 20240 Saturday, July 31, 20270
3 REPLIES 3
lbendlin
Super User
Super User

What is a working day in your part of the world?  What about holidays?

 

Doing this in Power Query or DAX is an exercise in futility.  Use an external reference table that already has that column prefilled.

Hello Ibendlin - Working day is Monday to Friday - Can Ignore Holidays.

I've tried using a standard Is Working Day flag but cannot manage to get it to work.

Doing this in Power Query or DAX is an exercise in futility.  Use an external reference table that already has that column prefilled.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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