Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Background:
The company took the following holidays for 2018 -
However, in previous years, the Presidents' Day was NOT a holiday and MLK Day WAS a holiday.
I have a date table which contains all dates and corresponding holiday names with dates.I also have all the weekdays with 0=Sunday, 1=Monday, etc. I would like to create a new column that is True False for working day vs. nonworking day. How do I create a column that reflects all years?
Solved! Go to Solution.
Create a new table called holiday to store the holiday information such as below.
Create relationship between the holiday table with your original calendar table.
Then use the following Dax to create a calcuated column to mark the working days
Isworkingday = IF('Calendar'[Weekday]>0&&'Calendar'[Weekday]<6&&COUNTX(RELATEDTABLE(Holiday),1)<1,"Yes","No")
Create a new table called holiday to store the holiday information such as below.
Create relationship between the holiday table with your original calendar table.
Then use the following Dax to create a calcuated column to mark the working days
Isworkingday = IF('Calendar'[Weekday]>0&&'Calendar'[Weekday]<6&&COUNTX(RELATEDTABLE(Holiday),1)<1,"Yes","No")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |