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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
biswad
Advocate I
Advocate I

Using conditional format to color the column

Hi, 

I'm trying to use conditional format to color the "Indicator" column on my dashboard. Basically, I have Branch and Role data If a Branch "London" Contains all three roles that are "Treasurer", "Secretary" and "President" it should be in "Green"

If Branch "Brighton" contains only two of the main role then it should be "Yellow" and If Branch contains only one of the 3 key roles it should be red, for example, branch "Kent".  Could anyone help me with how can I achieve this in Power BI, please?

 

biswad_0-1651574968959.png

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. If you already have the column indicator you can just use it. If you want to build it, you can create a measure like this in order to use it as format condition of a Cell element:

ibarrau_0-1651581193301.png

 

Be sure to use Hexadecimal instead of words to show a nicer color than the regular one that PowerBi will render with the literal text.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi. If you already have the column indicator you can just use it. If you want to build it, you can create a measure like this in order to use it as format condition of a Cell element:

ibarrau_0-1651581193301.png

 

Be sure to use Hexadecimal instead of words to show a nicer color than the regular one that PowerBi will render with the literal text.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Thank you so much brother, it was really very helpful. Much appriciated your help. Learned alot from this example. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.