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
wujunmin
Advocate I
Advocate I

Add Emoji to Conditional Formating Icon

How to Add Emoji to Conditional Formating Icon?

 

1. Get emoji

1) Get emoji by "Win+."

wujunmin_0-1651716618207.png

 

Then write a measure:

 
Emoji = IF([Rank]<=3,"😁","😟")
 wujunmin_1-1651716819482.png
2) Get emoji by UNICHAR: 
UNICHAR = IF([RANK]<=3,UNICHAR(128513),UNICHAR(128577))
wujunmin_2-1651717038833.png

Here is an unicode list: https://unicode-table.com/en/emoji/

wujunmin_3-1651717182186.png

 

2.  Combine values with emoji
 
wujunmin_4-1651717416653.png

Emoji couldn't be added to conditional formating icon directly, because an emoji is a text. 

So you need to convert emoji into an image. How? 

 

Wrap Emoji into SVG: 

 

Emoji_SVG=
"data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'>
<text x='24' y='26' text-anchor='middle' dominant-baseline='middle' font-size='40' fill='Tomato'>"
&IF([RANK]<=3,"😁","😟")&"
</text>
</svg>"
wujunmin_0-1651718777677.png

 

UNICHAR_SVG =
"data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'>
<text x='24' y='26' text-anchor='middle' dominant-baseline='middle' font-size='40'>"
&IF([RANK]<=3,UNICHAR(128513),UNICHAR(128577))&"
</text>
</svg>"
wujunmin_1-1651718810981.png

 

Then, add the SVG emoji measure to conditional formating icon, you could get the result. 
wujunmin_5-1651718082430.png

 

 


 

 

 

0 REPLIES 0

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.

Top Solution Authors