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
Giada_Togliatti
Post Patron
Post Patron

conditional formatting

Hi,

I should apply a conditional formatting in a matrix

I shuold display color based on text string on another field.

I have a field that has this possible value: "High", "Medium", "Low", "Too much low"

High  must be coloured by red, medium by orange, low by yellow and too much low by white.

Field1 is not a measure, it's a string field.

How can I do the formula that I can use to color the matrix?

Thank you

4 REPLIES 4

@amitchandak thank you for the link, the problem that I have is that the field that contains the string is not a measure,

so I need to turn text column into measure because if it's the column I can't use in the formula, how can I  do that?

column contains the value I told before

Hi @Giada_Togliatti,

Can you please share some dummy data with the expected result to test? It will help to clarify your data structure and test to coding formula on it.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I have an article on my blog that explains this. https://exceleratorbi.com.au/conditional-formatting-with-a-text-field-in-power-bi/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.