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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

 

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
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" 🙂 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors