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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to use Different colors for different values in Card with States visual.

Hi All,
I have to show  different values with category eg:i have 4 values, therefore i want to put all the values in custom visual "card with states" , But here i want that each value with category has different color. eg: i have 4 values, therefore I want to show them 4 different colors. Please help me.

7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://okviz.com/card-with-states/#

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
Anand24
Super User
Super User

Hi @Anonymous ,

 

You can use the Conditions from Format tab of the visualization to specifiy colors.

But these are not based on category but instead based on the category's respective value.

cards with states.PNG

 

As an alternative, you can simply use 4 KPI visualizations, filter them by one category each and set color in the KPI visualizations.

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

Anonymous
Not applicable

Hi @Anand24  ,
Thanks for replying. Can you give condition you applied there for changing the color of each value.

Hi @Anonymous ,

 

My conditions are pretty simple:

Condition 1: [Value] > 999 => Color = Blue

Condition 2: [Value] > 499 => Color = Green

Condition 3: [Value] > 199 => Color = Pink

Condition 4: [Value] > 99 => Color = Yellow

 

Note: These are static

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

Anonymous
Not applicable

Hi @Anand24 ,
Thanks for reply,
But my values are coming from different measures, i cannot put the above condition in it. Can we put condition on the basis of measures name instead of values as you used in your report.
Thanks and regards

Hi @Anonymous ,

 

I did search a bit but didn't find anything to have condition on measure name.

I'll suggest you to use multiple KPI visualizations for this purpose instead of Card with states.

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

Greg_Deckler
Community Champion
Community Champion

@Anonymous - https://www.bing.com/videos/search?q=how+to+use+card+with+states+by+okviz&docid=608020580017046975&mid=8C56A85091F1ED6C8E458C56A85091F1ED6C8E45&view=detail&FORM=VIRE



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.