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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ccyangdi
Employee
Employee

Setting default for Slicer

We are using Slicer in Power BI Desktop. The data source for the slicer is a list of existing builds, which is updated from time to time.

 

The user want the slicer to always select latest 3 builds as default.

 

Is there any way we can accomplish this?

 

Thanks,

Di

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i think you can not set default select for slicer, but i have a workaround.

Here is my test sample in SQL Server:

20.PNG

Then add an index column in Query Editor.

After Apply&Close, add this index as a filter to the table visual, it shows:

21.PNG

When i add data in SQL Server:

22.PNG

Click Refresh function in Power BI Destop, it shows the latest three rows:

23.PNG

If you want to filter other data, you can still use slicer after removing this Index filter.

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i think you can not set default select for slicer, but i have a workaround.

Here is my test sample in SQL Server:

20.PNG

Then add an index column in Query Editor.

After Apply&Close, add this index as a filter to the table visual, it shows:

21.PNG

When i add data in SQL Server:

22.PNG

Click Refresh function in Power BI Destop, it shows the latest three rows:

23.PNG

If you want to filter other data, you can still use slicer after removing this Index filter.

Hope this helps.

 

Best Regards,

Giotto Zhi

Greg_Deckler
Super User
Super User

Well, perhaps create a Top N filter by Date or maybe create a column that does a RANKX by Date and then just filter to 1,2,3


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I am not sure if I get you correctly, are you saying to show top 3 only? We still need to show the whole list of builds for user to select.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.