Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sidpug2013
Frequent Visitor

Compare Easter Weeks every Year

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

1 ACCEPTED 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.

View solution in original post

3 REPLIES 3
Sidpug2013
Frequent Visitor

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.

lbendlin
Super User
Super User

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Users online (373)