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
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
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.