Power BI

UNICHAR() in Power BI: Creating and Using Unichar Characters

UNICHAR() in Power BI: Creating and Using Unichar Characters

Table of Contents

Introduction

UNICHAR() in Power BI is a powerful function used to enhance dashboards by using symbols and icons to convey more information visually. It helps make the reports easier for non-technical viewers to understand the key insights.

What is Unichar() Function?

Unichar characters enhance visualization by displaying symbols that convey more information. In Power BI, UNICHAR() function is used for displaying these symbols.

UNICHAR() in Power BI Syntax:

Unichar
UNICHAR() returns a unicode character based on a number.

For example:

UNICHAR ( 10004 )

This returns ✔ (checkmark symbol).

Creating a UNICHAR Symbol

To create a star Unichar symbol, you need to follow the following steps in the exercise file provided at the end of this blogpost.

Step 1: Create a New Measure

  1. Right click on Sales in the Data Pane or click on three dots given on the right side.
  2. Click on New measure.
visualization pane.
Creating new Measure for Star Ratings

3. Create a new measure Star Ratings. Write the following code:

Star Ratings =
REPT ( UNICHAR ( 9733 ), AVERAGE ( Sales[User Rating] ) )

Here, following functions are used for creating Star Ratings Column:

  • REPT() function repeats a specific character a specified number of times. Here, it is used to repeat the star symbol.
  • UNICHAR() is used for the Unicode star (★).
  • AVERAGE() is used to calculate the number of stars based on the average user rating.

Learn more about AVERGAGE() function in our blogpost: Basic DAX Functions: MIN(), MAX() and AVERAGE()

Step 2: Create a Table Visualization

4. Click on the Table visualization in the Visualizations Pane and create a table on a new blank page.

visualization pane.
Inserting table to visualise the unichar.

5. Drag and drop the Product Line, Product Cost from Products Table to the Table Columns. Also, drag Quantity Sold and Star Rating from Sales Table to Columns field in the Visualizations Pane.

visualization pane.

Output Result

Notice the stars in the output.

The number of stars in the star rating column shows the average user rating for the product line.

Learn more about Tables and Matrix in our blogpost: Power BI Table vs Matrix: Which One Works Best for Your Data?

Want to learn more about Power BI and how to make reports more efficiently?  Sign up for our training courses and explore our wide range of resources designed to elevate your data analytics capabilities. 

Other Useful Unichar Characters

The table below lists some other unichar characters that you can use to enhance your visualisation skills.

CodeCharacterSymbol
128681Flag🚩
33Exclamation Mark!
11035Black Square⬛
11036White Square⬜
9899Black Circle●
9898White Circle○
9680Half Black Circle◐
128200Chart Increasing📈
128201Chart Decreasing📉
128077Thumbs Up👍
128078Thumbs Down👎
128316Red Increasing Arrow🔺
128315Red Decreasing Arrow🔻

Tips for Using UNICHAR() in Power BI

  • Conditional Symbols: When you combine conditional logic with UNICHAR(), you can show status changes or performance trends.

For instance:
Sales Trend =
IF ( Sales[Revenue] > Sales[Target], UNICHAR ( 128200 ), UNICHAR ( 128201 ) )

This code will display 📈 for targets above and 📉 for targets below.

  • Dashboard Storytelling: You can use symbols in your dashboard to help the audience follow the story as they view the data.
  • Interactive Visuals: You can also use UNICHAR symbols in tooltips, slicers, or custom visuals to provide interactive feedback.

Want to learn more about Conditional Formatting in Power BI? Check out our blog: Conditional Formatting in Power BI using Data Bars and Icons

Best Practices

  • Make sure your font is compatible with the Unicode symbols.
  • Utilize symbols in moderations to ensure clarity.
  • Perform a test run of your dashboard on a non-technical person to ensure if the symbols convey the meaning.
  • You can pair UNICHAR symbols with data labels and colors to improve readability.

Conclusion

Using UNICHAR() in Power BI allows you to present the rather complex data visually through everyday symbols like stars, arrows, circles, and icons. This practice not only makes your dashboard more intuitive and visually appealing but also helps in communicating insights to a non-technical stakeholder. Using Unicode characters in your dashboards and reports can make them highly engaging and easily understandable visual narratives.

FAQs

Yes, but make sure the font used in your visuals supports the symbol. Some Unicode characters may not display correctly in certain fonts.

Yes, you can use UNICHAR characters in slicers and filters to make selections visually intuitive.

Yes, UNICHAR symbols display correctly in Power BI mobile reports, but ensure the chosen symbols are supported across devices and fonts.

Further Learning and Resources

To learn more about Power BI, check out our courses here: 

Want to learn how Microsoft 365 Copilot transforms everyday work with AI? Check out our Course:  

 Power BI training in Australia: We offer comprehensive training sessions across various cities, including: 

Contact Us: Make an enquiry about our Power BI courses and find the proper training for you.  

Leave a Reply

Your email address will not be published. Required fields are marked *