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

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.

Reply
Sean2
Helper I
Helper I

Slicer for fixed date periods

Hello. I'm looking to make a slicer that has a list of specific date ranges. Instead of the regular year hiarachy like this (Jan 1st - Dec 31st)

Year

  •  2024
  •  2023
  •  2022

I'm trying to get a list I can use to filter all my visuals based on non calendar years. So each choice would start July 1st going through June 30th of the next year (or maybe just Sept - April) . Something like this

Snow Season

  • 2023-2024 Season
  • 2022-2023 Season
  • 2021-2022 Season

I have been playing around with the DATESBETWEEN formula but it's not getting me what I want.

 

Thanks for any ideas you might have!

 

 

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Sean2 

You could add a column like this to your calendar table.

 

Snow Season =
IF (
    MONTH ( [Date] ) >= 7,
    YEAR ( [Date] ) & "-" & YEAR ( [Date] ) + 1 & " Season",
    YEAR ( [Date] ) - 1 & "-" & YEAR ( [Date] ) & " Season"
)

 

You can see, on July 1st it flips to the new year. 

jdbuchanan71_0-1707159812399.png

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@Sean2 

You could add a column like this to your calendar table.

 

Snow Season =
IF (
    MONTH ( [Date] ) >= 7,
    YEAR ( [Date] ) & "-" & YEAR ( [Date] ) + 1 & " Season",
    YEAR ( [Date] ) - 1 & "-" & YEAR ( [Date] ) & " Season"
)

 

You can see, on July 1st it flips to the new year. 

jdbuchanan71_0-1707159812399.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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