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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
koiralasmn
Frequent Visitor

Dynamic Color Changer for Cards

Hi,
koiralasmn_0-1707397687835.png
I am currently working on a report where I have four KPIs

I want to dynamically make the Month to Month card on the top side of the visual change color.


This can be done using Dax to change the color using individual

Color for Variance = IF([MoM Revenue]>0, "#00bb29","#ff0000")


But is there any way where the DAX for colour automatically detects the fields used in the card so that the same DAX can be used over 4 cards?
I referred to fields as this
koiralasmn_1-1707397928937.png

 

 

let me know if this is possible.

Thanks

 

 

1 REPLY 1
amitchandak
Super User
Super User

@koiralasmn , if that is a card, then you can use the color measure in the Fx option of callout color, use the field value option

amitchandak_0-1707413423076.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.