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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jamiers
Helper I
Helper I

Measure for Conditional Formatting Icons instead of Background Color

Hi All,

 

I am in the process of creating a dataset to revise a bunch of reports that I have created.  All of these reports use the same 5 files and in order to be more efficient, I am creating the dataset to improve refresh time on the server I am on.

 

I use the same conditional formatting to put Power BI's stock icons into a column based on a check.  Instead of pushing back numbers, it shows one of the conditional formatting stock icons:

pbiicon.PNG

 I see that there is a way to create a measure that does background coloring, but that doesn't work my case:

 

 

 

GAP Icon MN = SWITCH(
     TRUE()
     ,SUM('*MergedMCSH'[GAP √ SA]) = -1, "#f44242"
     ,SUM('*MergedMCSH'[GAP √ SA]) = 0, "#f4f142"
     ,SUM('*MergedMCSH'[GAP √ SA]) = 1, "#5ff442",
     "#FF0000"
)

 

 

How would I call the Power BI stock icons instead?

3 REPLIES 3
jamiers
Helper I
Helper I

Thanks for this -- is there any way to get the actual Power BI check mark?  Red X?  Yellow Flag?pbiicon.PNG

 

Hello @jamiers ,

 

Not sure about that. You can search for similiar icons in the url provided in my previous reply or you can search in emojis menu by click windown + fullstop(.) button.

 

Shishir22_0-1656392031515.png

 

 

Please mark it as answer if it resolves your issue. Kudos are also appreciated.

Cheers,
Shishir
Shishir22
Solution Sage
Solution Sage

Hello @jamiers ,

 

You can use UNICHARS() to call icons.

 

GAP Icon MN = SWITCH(
     TRUE()
     ,SUM('*MergedMCSH'[GAP √ SA]) = -1,UNICHAR(129528)
     ,SUM('*MergedMCSH'[GAP √ SA]) = 0, UNICHAR(129516)
     ,SUM('*MergedMCSH'[GAP √ SA]) = 1, UNICHAR(129313),
     UNICHAR(128681)
)

 

Refer below link for Unichar codes.

 

https://www.vertex42.com/ExcelTips/unicode-symbols.html

 

Please mark it as answer if it resolves your issue. Kudos are also appreciated.

 

Cheers,

Shishir

Cheers,
Shishir

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors