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
sona_b
Frequent Visitor

Button to choose whether to use free date slicer or pre-defined slicers with quarters

Hi! I was wondering if it would be possible to somehow create a button or another option that would determine which slicer the user would like to use. I have a request that we would need to filter the data by date ranges and the user should have possibility to select predefined date periods (company quarters) OR to overwrite the quarters and use any date ranges they need. How would you tackle it please? Thanks!!

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

Hopefully this tutorial should help solve your requirement!

 

Create slicer with Custom Time Periods in PowerBI | Time Intelligence | MiTutorials - YouTube

 

Regards

Ismail

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @sona_b 
If I understood you correctly, yes you can add buttons for changing the date slicer type.
Take a look at the attached pbix which has an example of changing between date range slicer to "relative date".

The tutorial for creating the buttons that switch between visuals  is here :

https://www.youtube.com/watch?v=cFZtUzABOa8

more information about related dates slicer is here :

https://learn.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

and I saw just now in another context the tutorial of @miTutorials 
https://www.youtube.com/watch?v=Xi86HHEaY_M

I think it is better than my method 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

 

miTutorials
Super User
Super User

Hopefully this tutorial should help solve your requirement!

 

Create slicer with Custom Time Periods in PowerBI | Time Intelligence | MiTutorials - YouTube

 

Regards

Ismail

wow this is awesome!!! 🙂 Thank you very much, I hope I'll adjust it to my specific scenario.

Hi @miTutorials 
I saw this tutorial just now and wow, just a great workaround for date slicer "caprices" 🙂 

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.