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
jcarville
Skilled Sharer
Skilled Sharer

Permanent Slicer

Hi guys,

 

I had a search there of the forum and couldn't find what I'm looking for.

 

Is there anyway to make at least one option of a slicer always be selected?

 

Thanks.

1 ACCEPTED SOLUTION

Unfortunately there is an option like that..

 

You can try to adjust the slicer setting to hide "Select all" & also force to "Single Selection". Of course if he clicks again in the selected slicer it will unfilter all. 

If you have a small number of measures in the report,( performance )  and you prefer instead of a cluttered report , a blank one so you can force user to select one try add in the measure IF( HASONEVALUE()...

 

Slicer column is the table name & name of the column used in slicer

YourMeasure = [Total Sales]

Show Blank =
IF ( HASONEVALUE ( SlicerColumn ); [Total Sales] )





 

With the same formula you can return a text in a card that will prompt him to select 

 

Show Message=
IF ( NOT(HASONEVALUE ( SlicerColumn )); "i.e Select Client" )

 

This is not optimal but a workaround..Hope it helps

 

 

 

 

Konstantinos Ioannou

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

No, you would probably want to use a page or report level filter in this case.

@ 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...
fbrossard
Advocate V
Advocate V

Hi @jcarville

 

Just save your report with the desired values selected.

 

Thanks @fbrossard, I understand that, but what I really want is for a user to not be able to select no value, i.e. one value must always be selected at all times.

 

If the user has not got an option selected on the slicer then everything will show on my page which makes it cluttered.

I know I could just tell the user to always have an option selected on the slicer but I would like to ensure they do that.

Unfortunately there is an option like that..

 

You can try to adjust the slicer setting to hide "Select all" & also force to "Single Selection". Of course if he clicks again in the selected slicer it will unfilter all. 

If you have a small number of measures in the report,( performance )  and you prefer instead of a cluttered report , a blank one so you can force user to select one try add in the measure IF( HASONEVALUE()...

 

Slicer column is the table name & name of the column used in slicer

YourMeasure = [Total Sales]

Show Blank =
IF ( HASONEVALUE ( SlicerColumn ); [Total Sales] )





 

With the same formula you can return a text in a card that will prompt him to select 

 

Show Message=
IF ( NOT(HASONEVALUE ( SlicerColumn )); "i.e Select Client" )

 

This is not optimal but a workaround..Hope it helps

 

 

 

 

Konstantinos Ioannou

@konstantinos I don't understand how to use your code to "blank" visuals if anything is selected, do you have any example?

 

Thanks!

Hi @konstantinos, I got it working. As you say not optimal and it is a complete workaround but at least it could be something to show the user.

 

If no other suggestions arrive I will accept this as the solution. Many thanks guys.

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.