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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Luis24
New Member

Conditional Formatting based on another row value

 

Hello. I want to visualize the indicators of a set of companies over time, but color the information of these indicators (numbers and texts) according to an internally defined category (HIGH, MEDIUM or LOW).


I have structured a dataset that contains the name of the company, the name of the indicator and the type of information that the periods contain ("VALUE" or "CATEGORY"):

 

Dataset:

img 1.png

 

And, I would like to set up a visualization that displays the "value" of these indicators over time, but that their color depends on their "category":

 

Visualization:

img 2.png

 

Although in Excel this would be easy using conditional formatting: relating each cell of the "indicator's value" with its corresponding "indicator's category" in a hidden table, in Power BI I have not found a way to do it. I really appreciate if you can suggest me ideas on how to do it.

 

1 REPLY 1
amitchandak
Super User
Super User

@Luis24 , You can consider the color measure and use that in conditional formatting using the field value option

 

Color = Switch( True() ,
Max(Table[Status]) < 200 ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
) ,
Max(Table[Status]) < 500 ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
) ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
)
)

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.