Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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!
User | Count |
---|---|
77 | |
70 | |
68 | |
53 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |