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

Select multiple measures in a slicer and show only the selected measures

Hello guys,

 

I have made one table as as SlicerTable to define the number for each measure:

 

Slicer.PNG

 

And then I created these measures for the visual:

 

EW CSB = IF(SELECTEDVALUE(SlicerTable[Slicer Value]) = 1 || ISBLANK(SELECTEDVALUE(SlicerTable[Slicer Value])), [EW_CSB])
EW BSB = IF(SELECTEDVALUE(SlicerTable[Slicer Value]) = 2 || ISBLANK(SELECTEDVALUE(SlicerTable[Slicer Value])), [EW_BSB])
etc. 
 
Now when I select EW_CSB in the slicer I get only the visual for EW CSB, and when I select EW_BSB I get only the visual for EW BSB. But when I select more than one Measure in the slicer (EW_CSB and EW_BSB), every four Measures will pop out in the visual: 
 
bel.PNG
 
Is there a way to only show the selected measures in the visual if I want to show more than one measure?
 
Thanks in advance.
 
 
 
1 ACCEPTED SOLUTION

Hello @v-jayw-msft and @Jihwan_Kim, thank you very much for your suggestions. But I solved this problem already.

 

My measure now looks like this and this works with multiple selection too:

 

EW_BSB = IF(CONTAINS('Slicer Table New', 'Slicer Table New'[Value], "EW_BSB"), [EW_BSB] , BLANK())

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Clout ,

 

You will find the value of "ISBLANK(SELECTEDVALUE(SlicerTable[Slicer Value]))" would be true if you select more than one value in the slicer. You could use "NOT(ISFILTERED('SlicerTable'[Selected Measure]))" instead.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hello @v-jayw-msft and @Jihwan_Kim, thank you very much for your suggestions. But I solved this problem already.

 

My measure now looks like this and this works with multiple selection too:

 

EW_BSB = IF(CONTAINS('Slicer Table New', 'Slicer Table New'[Value], "EW_BSB"), [EW_BSB] , BLANK())
Jihwan_Kim
Super User
Super User

Hi, @Clout 

Please correct me if I wrongly understood your question.

Instead of using selectedvalue, please try to use ALLSELECTED together with IN function.

If it is OK with you, please share sample pbix file's link after deleting important data, then I can try to look into it to come up with a more accurate measure.

 

Thank you.

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.