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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mahnazhghighi
Regular Visitor

Create a clustered bar chart with icon y axis in Power BI

Hi. I have a hotel dataset and it has a column named 'Review Rating' that its values is numbers 1 to 5(for its stars). I want to create a clustered bar chart in Power BI that its y axis is shown with stars. for example for Review Rating 1 shows one star and for Revie Rating of 3 shows three stars. Can you help me?Capture.PNG

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_2-1729406463719.png

 

Jihwan_Kim_3-1729406474244.png

 

 

 

Jihwan_Kim_0-1729406378906.png

 

Jihwan_Kim_1-1729406439018.png

 

Customer count = 
COUNTROWS(rating)

 

Customer count all = 
CALCULATE([Customer count], REMOVEFILTERS('description'))

 

percentage = 
DIVIDE([Customer count], [Customer count all])

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

thanks for your answer. I used the below Formula and it worked:

Star Rating = SWITCH(
     'Icon Rating'[ID],
     1,UNICHAR(11088),
     2,UNICHAR(11088)&UNICHAR(11088),
     3,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088),
     4,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088),
     5,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)
     )

View solution in original post

7 REPLIES 7
Kedar_Pande
Super User
Super User

@mahnazhghighi 

Create a Calculated Column:

StarRating = REPT("★", [Review Rating])

Drag the new StarRating column to the Y-Axis of your clustered bar chart.
Add your measure (e.g., count of reviews) to the X-Axis.

Ensure that your StarRating column is sorted by the numeric Review Rating to keep the stars in the correct order.

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

thanks for your answer. I used the below Formula and it worked:

Star Rating = SWITCH(
     'Icon Rating'[ID],
     1,UNICHAR(11088),
     2,UNICHAR(11088)&UNICHAR(11088),
     3,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088),
     4,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088),
     5,UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)&UNICHAR(11088)
     )
tharunkumarRTK
Super User
Super User

@mahnazhghighi 

 

There are many ways to achieve this, one easiest way is to use ★ unichars. 
Screenshot 2024-10-20 at 12.12.09 PM.png

I have attached the pbix for your reference 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

 

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_2-1729406463719.png

 

Jihwan_Kim_3-1729406474244.png

 

 

 

Jihwan_Kim_0-1729406378906.png

 

Jihwan_Kim_1-1729406439018.png

 

Customer count = 
COUNTROWS(rating)

 

Customer count all = 
CALCULATE([Customer count], REMOVEFILTERS('description'))

 

percentage = 
DIVIDE([Customer count], [Customer count all])

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

thank you. I did it,but now I dont know how to convert * to animated star.star.PNG

 

bar.PNG

 

@mahnazhghighi 

you can copy from here:

https://www.namecheap.com/visual/font-generator/star-symbols/

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

thank you. i do that , but i dont know how convert * to animated star.bar.PNG

 

star.PNG

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors