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.
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")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |