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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Replace text with unichar to text with icon

Hello,

 

In Power BI you can add icons with the UNICHAR codes.

This you can do by creating a new measure or new columns.

 

But in our case we have a text string in our data warehouse with the UNICHAR code, so we want to display it directly with text & icon. Now it shows up as text instead.

 

Can anybody help me to replace the test as icon?

 

Thanks!

 

Davina

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found a solution, we created chr in the pyspark codes so Power BI need only to get the data and show immediatly without any other calculation in the reports.

 

Thanks for the tips!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Found a solution, we created chr in the pyspark codes so Power BI need only to get the data and show immediatly without any other calculation in the reports.

 

Thanks for the tips!

Anonymous
Not applicable

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create measure.

Flag =
IF(
    ISERROR(
       SEARCH("UNICHAR", MAX('Table'[Example]))
    ),
    1,
 SUBSTITUTE (
        SUBSTITUTE (MAX('Table'[Example]),"UNICHAR(128100)",UNICHAR(128515) ),
        "UNICHAR(128197)",
        UNICHAR(128515)
    )  
)

2. Result:

vyangliumsft_0-1650608301366.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

@Samarth_18 thanks for you suggestion.

But I have a whole string in the backend with more information and multiple UNICHAR codes, so every code should show the icon. Is that possible?

 

Example text:

" UNICHAR(128197) 19/04/2022 This article is recently made UNICHAR(128100) authorname "

 

We can add them togheter in the Power BI dashboard itself, but we work with a directQuery connection and thought this will be quicker to show.

 

kind regards,

Davina

Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

In my understanding you still need a column only in your table with below code:-

Unicode_Convert = IFERROR(UNICHAR('Table'[Unicode column]), "Not Supported")

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors