Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DW868990
Helper IV
Helper IV

Card Value To Show But Only Specific Selections

Thanks in advance.

 

I have a card visual which needs to only display it's value based on 1 slicers specific selections.

 

There are about 8 different combinations of selections the end user could make of this slicer in which the card needs to display, some a single values but majority are specific multiple values that are selected.

 

For example when Product2 is selected the value needs to show, and also when Product2 and Product3 is selected; but NOT when Product2 and Product4 is. tHere about 8 specific curated scenarios in which if occur the card visual needs to show.

 

I am struggling with the DAX logic behind this, any advise is appreciated.

2 REPLIES 2
ValtteriN
Super User
Super User

Hi,

For multistate conditional logi try using SWITCH + TRUE structure. 

E.g.

Slicer state =
SWITCH(TRUE(),
MAX('Table (7)'[Attribute])="Price 1","Price 1",
HASONEFILTER('Table (7)'[Attribute]), "One value selected",
ISFILTERED('Table (7)'[Attribute]), "Multiple values selected",
"No selection")
ValtteriN_1-1666078105780.png

 

The basic logic is the following:

SWITCH(TRUE(),
condition 1, result1,
condition 2, result 2,
...)

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Yes, Thank you.

 

Getting there I think, but with the above measure how would i hard code in the combinations required.

So for example i want the message only to show when price2, price 3 and price4 is selected by user?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.