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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.