Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi!
I have Sales Table and Date Table (with holidays until 2050).
I wish to calculate and compare sales about:
- Previous week of Easter Week
- Easter Week
- Following Week of Easter Week
Every Year the Easter Weeks changes, and i don't know as to do. The comparison needs to be done with the previous year.
Thanks in advance
Solved! Go to Solution.
In your Date table you have a flag "Easter week" for each participating day. In your DAX use that flag as an additional filter when you do the year-over-year comparisons.
I must compare sales about:
- Previous week of Easter Week
- Easter Week
- Following Week of Easter Week
How can i do with Dax?
In your Date table you have a flag "Easter week" for each participating day. In your DAX use that flag as an additional filter when you do the year-over-year comparisons.
In your Date table mark the Easter week for each of your years. This data is immutable, there is not good reason to try and calculate it over and over again.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |