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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
satkin
Advocate I
Advocate I

Filter dates using two slicers (From / To)

Hi,
I'm wanting to have two slicer on my page, Quarter From and Quarter To.  I've set these up as independnet slicers by creating two tables, Quarter From and Quarter To that are created using the SUMMARIZE function reading from my date table. This means I can make independnet selections in the two slicers.  I don't know how to the apply these selections to the actual date table though, so that my selected range is all that is reported on.  Currenly my visuals continue to show all Quarters in the dates table, rather than just those in the selected range.

I know this would be easy with a single slicer to choose a date range, but unfortunately I need to have the two options as slicers.

 

Date Table

 

DateQuarter
01/10/20222022Q4
...2022Q4
31/12/20232022Q4
01/01/20232023Q1
...2023Q1
31/03/20232023Q1
01/04/20232023Q2
...2023Q2
31/05/20232023Q2

 

Quarters From / Quarters To

2022Q4
2023Q1
2023Q2

 

Measures

Selected From =
CALCULATE(
    MIN(Dates[Date]),
    Dates[Quarter] = 'Quarter From'[Quarter]
)

Selected To =
CALCULATE(
    MAX(Dates[Date]),
    Dates[Quarter] = 'Quarter To'[Quarter]
)

 

If I select 2023Q1 in my From slicer and 2023Q2 in my To slicer, any visual will show all 3 quarters in it when I use Quarter from the Dates table in the visual.  Can I get it to be dynamic to the selected quarterly values?

 

Many thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@satkin ,  You need a approach like

Select data between months - https://youtu.be/nEt7dT3Tfv4

 

or

How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
satkin
Advocate I
Advocate I

Fantastic, thank you @amitchandak.

amitchandak
Super User
Super User

@satkin ,  You need a approach like

Select data between months - https://youtu.be/nEt7dT3Tfv4

 

or

How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.