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
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
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.