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
jshinnenkamp
Frequent Visitor

Using a slicer to change which measure is used. Trouble with Multi select

I used this source to have a basic yes/no option that either shows a line on a visual or blanks it out. https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/

 

My issue is when a user uses Ctrl to select both Yes and No - I'd like it to default to yes. Instead I'm getting this error (the visual is a custom chiclet slicer, where I have Multiple selction set to off and Forced selection to on): 

 

image.png

1 REPLY 1
d_gosbell
Super User
Super User

The code in the article from fourmoo.com looks like it should deal with multi-select fine as it will default to "Sales" if more than one item is selected in the slicer.

 

Can you post the expression you are using for the [Capacity+1] measure as the issue is probably in there somewhere?

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.