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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.