Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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")