cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
alisoroush7
Frequent Visitor

using custom label

Hi

I created a dax and I write the below code in it:

CSI Emoji =
VAR AvgValue1 = CALCULATE(COUNT(Survey[A]),FILTER(Survey,Survey[A] >= 4)) / COUNT(Survey[A])
RETURN
    SWITCH(TRUE(),
        AvgValue1 >= 0.8, "😊",        
        AvgValue1 >= 0.4, "🤨",
        AvgValue1 >= 0, "🤬" 
    )
 
when i drop this dax to show the emojis as label of a line chart it changed numbers like in the below picture:
ergergegerg.jpg
how can i fix this?
3 REPLIES 3
mlsx4
Super User
Super User

Hi, 

Try to put your emoji by using UNICHAR(numb emoji)

You can check the unichar here (https://blog.iwco.co/2018/09/11/como-agregar-emojis-a-power-bi/)

 

CSI Emoji =
VAR AvgValue1 = CALCULATE(COUNT(Survey[A]),FILTER(Survey,Survey[A] >= 4)) / COUNT(Survey[A])
RETURN
    SWITCH(TRUE(),
        AvgValue1 >= 0.8, UNICHAR(128522),        
        AvgValue1 >= 0.4, UNICHAR(129320),
        AvgValue1 >= 0, UNICHAR (128545)
    )

 Something like this (check which is the emoji you want and replace the number inside)

i dit it but it still shows the number. does it related to font or anything else?

Okey, I understand... I don't think the font is the problem (If you change it nothing happens). But I'm afraid I can't help you this time. It will be interesting to see if someone could help.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors