cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Super User IV
Super User IV

@priya2290 - https://www.bing.com/videos/search?q=how+to+use+card+with+states+by+okviz&docid=608020580017046975&m...


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Memorable Member
Memorable Member

Hi @priya2290 ,

 

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 !!!

Highlighted
Super User IV
Super User IV

@priya2290 , refer if this can help

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted

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

Highlighted

Hi @priya2290 ,

 

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 !!!

Highlighted

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

Highlighted

Hi @priya2290 ,

 

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 !!!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors