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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Conditional Formatting Text with Color

Delion_0-1648019037336.png

 

Hi I have question how to use Conditional Formatting Text with Color

 

Many thank

 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Use measure return a text in the format of CSS color spec or color sting ,Or column contains color string.

And Format style -> Field value, What field should we base this on? -> Measure or column

vchenwuzmsft_0-1648454054149.png

 

For more details you can refer official article.

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

 

Best Regards

Community Support Team _ chenwu zhu

 

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 , You can create a color measure like this and use in conditional formatting using field value option

 

if(Max(Table[Status1]) = "Free" , "Green", "Red")

 

or

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

if(Max(Table[Status]) = "Free" , "Green", "Red")

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