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
Snehal
New Member

Conditional formatting for measure with text values

Hello All,

 

I need to add font colour to a measure created using if else condition and having results as these 2 text values in it -- Ras and Support.

 

Now I need to add font colour as green to ras and red to suppr values.

 

I have tried conditional formatting for field but this measure doesn't get selected.

 

Please suggest some solution.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Snehal 
You can achieve it with conditional formatting based on the text functionality.

Unfortunately, I am out of the limit of images that I can attach to the discussion,
so I prepared a sample file with examples and put a screenshot inside.

You can download it from The attached link 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Snehal 
You can achieve it with conditional formatting based on the text functionality.

Unfortunately, I am out of the limit of images that I can attach to the discussion,
so I prepared a sample file with examples and put a screenshot inside.

You can download it from The attached link 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.