The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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) .
User | Count |
---|---|
69 | |
67 | |
62 | |
48 | |
28 |
User | Count |
---|---|
113 | |
77 | |
65 | |
55 | |
43 |