Forum Discussion

EmilePl's avatar
EmilePl
Frequent Visitor
2 years ago

Issue with unichar

Hi

I'm having a really weird issue when i try to return a unichar character from an if-function or a switch.
I recreated the problem in a new powerbi report.

I want to return  when the value equals 1, and  when it doesn't.
So i tried this first, which seems to be working fine:


When i substitute blank by the unichar code for , it doesn't work anymore:


Neither does switch:


Did anybody else run in to this problem before?

4 Replies

  • EmilePl , I tried on latest version of power bi and it works for me

     

     

     

    example code

     

    Column 2 = if( [Category Id] < 3  , UNICHAR(9989), UNICHAR(10060))

     

    • EmilePl's avatar
      EmilePl
      Frequent Visitor

      Hi amitchandak 

      Thanks for your reply!
      I think i am on the latest version as well?

      Last version i can find here is 2.121.903.0, somehow i am on 2.121.942.0



  • MMoran's avatar
    MMoran
    Frequent Visitor

    I'm having the exact same issue, has anyone come up with a solution?

     

    I'm on May 24 version

    • EmilePl's avatar
      EmilePl
      Frequent Visitor

      No, I think i just ended up using different characters.
      128308 for a red button 🔴
      128994 for a green one 🟢