Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a table with a field "flag" (only 1 or 0), I need to show an emoji based on the value of this field. I tried the following adding a new column:
icon_flag =
VAR iconYes = UNICHAR(9989)
VAR iconNo = UNICHAR(10060)
RETURN
IF('Table'[flag] = 1, iconYes, iconNo)
But the column is showing the iconNo when te value of flag = 1. If I change the value of the initial variables it works fine and I don't undestand why.
PS: The UNICHAR(9989) is for this emoji: ✅ and the UNICHAR(10060) is for: ❌
Hello @AlexML09 ,
I tried your approach and its working
Proud to be a Super User! | |
Hi @AlexML09 ,
I cannot replicate your issue. Please a sanitized copy of you pbix (confidential data removed) .
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 166 | |
| 135 | |
| 120 | |
| 79 | |
| 53 |