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.
Hello,
I am having trouble figuring out how to get the right Holidays in my DAX Calender Table. I can get the Holidays just fine but can't figure out how to do this. I need to make the holidays actualy fall on Friday if the holiday was on Saturday or a Monday if the holiday was on a Sunday.
I was wonderng if anyone could help me out with this?
Thanks
Solved! Go to Solution.
Hi,
You can create a new calculated column name: "Revised Holiday" with formula:
Revised Holiday = IF(WEEKDAY('Date'[Date],1) = 1, NEXTDAY('Date'[Date]), IF(WEEKDAY('Date'[Date],1) = 7, PREVIOUSDAY('Date'[Date]), 'Date'[Date]))
I hope this help.
Can you supply sample data on your holidays?
Here is a picture of the Holidays:
Hi,
You can create a new calculated column name: "Revised Holiday" with formula:
Revised Holiday = IF(WEEKDAY('Date'[Date],1) = 1, NEXTDAY('Date'[Date]), IF(WEEKDAY('Date'[Date],1) = 7, PREVIOUSDAY('Date'[Date]), 'Date'[Date]))
I hope this help.
Thank you very much!
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |