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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Conditional Formatting on Cards by OKVIZ

I added multiple fields to a states by OKVIZ card. I'm ok the color of the other fields but i want the "SKUInventory and KPILight to change to specific colors based on three conditions wile the others remain fixed. I have a slicer that I will be using and that would make the values of Skuinventory  change, hence the KPILight should change as well. Thanks

Red color - 0 - 0.39
Yellow - 0.40 - 0.59
Green - 0.60 - 1.

 

 

 

 

 

Capture.PNG

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

I have tested on my side, it seems that it could not achieve conditional format just for part of fields in Cards by OKVIZ,

so as a workaround, I would suggest you use built-in Card visual for these two fields that you do conditional format for them, and then drag them beside of Cards by OKVIZ visual.

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-card

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#color-by-rules

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , this is custom visual, you have contact developer.

But in case conditional formatting is supported with "field" option you can create a measure and use that

 

Colour = 
SWITCH(TRUE(),
Table[Date] < TODAY(), "red",
Table[Date] = TODAY(), "orange",
"green")

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

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
Anonymous
Not applicable

Hi @Anonymous 

 

If you change the values of Skuinventory, will it not affect the other calculations as in your chart.

I believe your answer lies in your question.

lbendlin
Super User
Super User

What did the creators of the OKVIZ Cards visual reply when you brought it up with them?

Anonymous
Not applicable

@lbendlin 

 

I'm not sure how to reach out to them.

 

hi @Anonymous 

Here is their website that you could reach out to them.

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

 

Regards,

Lin

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors