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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to put conditional formatting on text ?

I have this table and I would like to put icons according to the state : 

Charline74_0-1652950565536.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could create a measure to use numbers to represent different states.

Measyre =
SWITCH (
    SELECTEDVALUE ( 'table'[state] ),
    "Submitted", 1,
    "New", 2,
    "Rejected", 3,
    "Accepted", 4,
    "Closed", 5,
    "Planned", 6
)

Then use the value of measure to create conditional formatting rule.

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

You could create a measure to use numbers to represent different states.

Measyre =
SWITCH (
    SELECTEDVALUE ( 'table'[state] ),
    "Submitted", 1,
    "New", 2,
    "Rejected", 3,
    "Accepted", 4,
    "Closed", 5,
    "Planned", 6
)

Then use the value of measure to create conditional formatting rule.

 

Best Regards,

Jay

AnamPatel
Resolver II
Resolver II

Click on the Down Arrow in front of the Column Name under Values Tab and Select Conditional Formatting > Icons

AnamPatel_0-1652951690371.png

 

A new Icon window will pop up – fill all the details, select the icon type you want and click on OK.

AnamPatel_1-1652951690375.png

 

That’s it, the icons will show up on your chart –

AnamPatel_2-1652951690379.png

 

MattAllington
Community Champion
Community Champion

Read my article here 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.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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