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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Slicer filter with time interval based on slicer selection

Hello everyone,

 

Sample of data:

ID Date myValue

1 1/09/2019 7

2 1/09/2019 3

3 2/09/2019 2

4 3/09/2019 5

5 4/09/2019 2

 

I need to create 3 slicers:

   -   The first one gives the possibility to choose a specific date ( date picker), I set the date range to Before.

   -   The second one gives the possibilty to choose the previous time interval (day, week, month, quarter or year) based and from date that is selected on the first slicer

   -   The third one gives the possibilty to choose resolution on the x axis. Example if you chose year as time interval on the second slicer, then you can choose the resolution on x axis from day, week, month or quarter

So far all I could achieve is creating some dynamic measures that change the resolution but no succes with making time intervals.

 

Has somebody tackle this problem before? 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer these two for that

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-30/m-p/1284966#M561629

 

and

Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors