Forum Discussion

VoltesDev's avatar
VoltesDev
Helper V
2 years ago
Solved

DIsplay string value as icon

Hi,   How to display string value as icon wihtout the need to create new field ? In my table, I have data with value of "neutral / positive / negative" . While I still want to display the original ...
  • ajohnso2's avatar
    ajohnso2
    2 years ago

    I see in that case you can use unicode characters.

     

    SentimentIcon = 
    VAR _SelectedSentiment = MAX(Sentiment[Sentiment])
    RETURN
    SWITCH(
        TRUE(),
        _SelectedSentiment = "Positive", UNICHAR(128578),
        _SelectedSentiment = "Negative", UNICHAR(128545),
        _SelectedSentiment = "Neutral", UNICHAR(128528)
    )