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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.