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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to get conditional formatting (or icons) to work in a table for text values.

How can I get conditional formatting (or icons) to work in a table based on one of say, three selected text values? I have followed every tutorial I could find but I either get no change or the broken image icon when I try to use the canned icons option. 

Virtually everything in Power BI is driven by financials (i.e. numbers) but there are other areas (such as clinical trials), that need to be reported on by things such as status, time to complete, etc. 
broken icons.PNG

1 ACCEPTED SOLUTION
KerKol
Super User
Super User

Hello there,

 

You can use unicode or conditional icons for text strings within a matrix.

 

For example, unicode measure could look something like this:

KerKol_0-1627824632633.png

For conditional icons, you could go a similar solution by setting "Accepted" and "Rejected" as 1, 0, then conditionally formatting based on these numbers:

KerKol_2-1627824987260.png

 

 

KerKol_1-1627824969744.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
KerKol
Super User
Super User

Hello there,

 

You can use unicode or conditional icons for text strings within a matrix.

 

For example, unicode measure could look something like this:

KerKol_0-1627824632633.png

For conditional icons, you could go a similar solution by setting "Accepted" and "Rejected" as 1, 0, then conditionally formatting based on these numbers:

KerKol_2-1627824987260.png

 

 

KerKol_1-1627824969744.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

The problem with unicode characters is they are not consistent across browsers and OS's. Also, there is no option to reuse the same shape in different colors. I.e circles in blue, green, red and orange. 

Yes, that is a problem with unicode 🙂

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , 1. You can icon conditional formatting

 

2. You can create an icon measure and color meausre. Icon will unichar and you will add that as measure in value and then use color to do conditional formatting using filed value option

 

example

 

/////Arrow
Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)

 

 

 

refer these if needed

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

https://exceleratorbi.com.au/dax-unichar-function-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

You are showing how to do it based on numeric values. I need to do so based on text values. 

Example: There is no way to show a green unicode shape like a circle for a status of "Accepted", a yellow circle for "InProgress" and a red circle for "Rejected", etc.  

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.