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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
julsr
Resolver I
Resolver I

Clear all slicers must return d-1 values

Hello everyone,

 

I'm implementing the button "Clear all slicers" but this returns as default the first date of my dataset. How can I ensure that once this button is clicked, the values will always be D-1 (Today's Date -1)?

 

Thanks

1 ACCEPTED SOLUTION

Hi @julsr ,

 

Try using a custom visual “pre-selected slicer” and bookmarks for a similar result:
2024-11-15_14-18-15.gif

The pre-selected slicer's interaction with the built-in slicer is turned off by default, so please remember to turn on the interaction.

vcgaomsft_1-1731651820476.png

Change how visuals interact in a report - Power BI | Microsoft Learn

Hide pre-selected slicer when saving bookmarks.

vcgaomsft_0-1731651652363.png

I've made a simple example that I hope helps.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@julsr You would want to have a day offset in your Date/Calendar table. Then you could create a bookmark for that where the page is filtered to the offset equal -1. Clear all slicers could then just invoke that bookmark.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks for your answer! I'm using the following logichttps://www.linkedin.com/pulse/power-bi-single-date-picker-without-dax-torsten-wanka/ to have a single date picker in my dashboard, but when I want to apply something to show the last day value in my code, it doesn't work. I expected to see the last day with this and use it as a bookmark.

julsr_0-1731519747115.png

 

Hi @julsr ,

 

Try using a custom visual “pre-selected slicer” and bookmarks for a similar result:
2024-11-15_14-18-15.gif

The pre-selected slicer's interaction with the built-in slicer is turned off by default, so please remember to turn on the interaction.

vcgaomsft_1-1731651820476.png

Change how visuals interact in a report - Power BI | Microsoft Learn

Hide pre-selected slicer when saving bookmarks.

vcgaomsft_0-1731651652363.png

I've made a simple example that I hope helps.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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