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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Mohsen_2020
Helper III
Helper III

Color Coding In Card Object

Dear Team, 

 

I need to make a color coding in a card showing the pecentage of delayed actions so if the delay percentage equals 0% the color of background suppose to be green and if it's higher than 0% "1% till 100%" the color of background suppose to be green. 

 

Please advise. 

 

Regards,

Mohsen

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Make a measure like this

 

Card Color = IF([Your Measure]>0, "Green", "Red")
 
And then, in the format options for the card, hit the fx under Background color and choose field value and this measure.
 
Regards,
Pat
 




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Please find the below results after applying the measure, both results are giving the same BG red color, please advise. 

ss.png

Hi @Mohsen_2020 ,

Which field you have put in the right side card visual? Seems like not [Delayed_Calls_Average] measure but others, or did you apply any filters in the report?

The [Card Color] measure only return red becasue [Delayed_Calls_Average] value is always > 0, [Delayed_Calls_Average] measure only returns a summarize value in the card visual. What is your [Delayed_Calls_Average] looks like?

Basically needs more information about this issue for further discussion. Or you can consider sharing a simple sample file.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

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.