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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Delion
Helper IV
Helper IV

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 @Delion ,

 

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

@Delion , 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")

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.