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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Jeffuh
New Member

Creating a Filter for a Specific Week

Good Evening:

 

I am trying to create a report that shows historical data for sales for a specific week, in this case Mother's Day.  My report has all the sales data for each year, so I am trying to filter it down to just that 1 week.  The issue is, unlike say Valentine's Day, Mother's Day is always the second Sunday of May, so I am trying to create a filter for the 1st Sunday of May through the 2nd Sunday of May.

 

I feel like this should be a simple fix, but I am just overlooking something.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Jeffuh,

You can create a  calculated column with the following formulas to check the Second Sunday of May and return the tag:

2nd Sunday of May=
IF (
    //the second week of May
    WEEKNUM ( Table[Date], 2 )
        = WEEKNUM ( DATE ( YEAR ( Table[Date] ), 5, 1 ), 2 ) + 1
        && //sunday
        WEEKDAY ( Table[Date], 2 ) = 7,
    "Y",
    "N"
)

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Jeffuh,

You can create a  calculated column with the following formulas to check the Second Sunday of May and return the tag:

2nd Sunday of May=
IF (
    //the second week of May
    WEEKNUM ( Table[Date], 2 )
        = WEEKNUM ( DATE ( YEAR ( Table[Date] ), 5, 1 ), 2 ) + 1
        && //sunday
        WEEKDAY ( Table[Date], 2 ) = 7,
    "Y",
    "N"
)

Regards,

Xiaoxin Sheng

VahidDM
Super User
Super User

Hi @Jeffuh 

 

You can create a Date Table, and add a column to it as a Mother's Day column, and add YES to those dates you want to be included to your report and NO for other dates.

Then, use this Date table and Mother's Day column to filter your report.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.