Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
VoltesDev
Helper V
Helper V

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 text, I also want to display as an icon. 

I know there is Conditional Formatting to do this, but if I add again the same field, so there will be 2 same fields. After I set conditional formatting of the 2nd field to display as icon, the other also changed.

 

May I know how to achieve this ? original text and the one with display as icon side by side in a table.

Thanks

1 ACCEPTED SOLUTION

I see in that case you can use unicode characters.

ajohnso2_0-1718986282081.png

 

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

 

View solution in original post

4 REPLIES 4
ajohnso2
Solution Supplier
Solution Supplier

Are you referring to clickable buttons?

 

ajohnso2_0-1718983053196.png

I have achieved this by using the new Slicer visual no fancy tricks.

 

You could also create something like below by creating a static table in power query and creating some icons with SVG's.

 

ajohnso2_1-1718983218440.png

Also using the new slicer visual

Hi,

 

No, I mean inside a table. Something like this :

VoltesDev_0-1718985000262.png

Thanks

I see in that case you can use unicode characters.

ajohnso2_0-1718986282081.png

 

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

 

Thank you.

 

It also means we have to create new measure, then. 😉

 

Thanks again.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.