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
kman42
Helper III
Helper III

Getting only selected values from slicer

I'm trying to get just the values from a slicer. The following works, ecept when nothing is selected, it concatenates all possible selections.

 

multi values test = CONCATENATEX(ALLSELECTED('Include in table'[Include]),([Include]),",")

 

'Include in table'[Include] has values of Yes, No, Maybe. If I select 'Yes' in the slicer, then it displays Yes in the card showing the above measure. If I select Yes and No, it displays "Yes,No". If I select all three, it shows "Yes,No,Maybe". But if I don't select any of them, it also shows "Yes,No,Maybe". I think it should show nothing. What am I missing?

1 REPLY 1
Igna
Resolver II
Resolver II

Hello, 

 

You should try adding a if condition and use IsFiltered() to achieve what you want.

Take a look here : https://p3adaptive.com/2018/02/using-selectedvalues-capture-power-bi-slicer-selections/

 

Igna

 

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.