cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CeBrusa Frequent Visitor
Frequent Visitor

Re: Always one value selected in Slicer

I need the exact same solution, to avoid the "unselect all" and show only 1 value. Were you able to solve this?

CeBrusa Frequent Visitor
Frequent Visitor

Re: Always one value selected in Slicer

I need the exact same solution, avoid the "unselect all" and show only one value. Were you able to solve this?

SoumyaPuppala Regular Visitor
Regular Visitor

Re: Always one value selected in Slicer

Hello,

 

There is no option to disable "Select all" or to have a force selection in a slicer. But i have developed a workaround to hide data for "ALL". Create 2 measures as below.

 

Valid_selection = if(HASONEVALUE(Slicer_attribute), "", "Error: Select a Single value")

Valid_selection_numeric = if(HASONEVALUE(Slicer_attribute), 1, 0)

 

Pull the first measure into a card, which will be blank when a single value is selected and will throw an error message when it is more than one/All.

 

Second measure to be added as a visual level filter, add Valid_selection_numeric = 1 as visual level filter on all the visuals. Which means, the data will be displayed only when a single value is selected. 

Nothing but hiding the data for all.

 

Let me know if you have any questions.

 

Hope this helps.

 

Highlighted
Robbertos Visitor
Visitor

Re: Always one value selected in Slicer

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 173 members 1,911 guests
Please welcome our newest community members: