To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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?
Solved! Go to Solution.
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.
Customer count =
COUNTROWS(rating)
Customer count all =
CALCULATE([Customer count], REMOVEFILTERS('description'))
percentage =
DIVIDE([Customer count], [Customer count all])
thanks for your answer. I used the below Formula and it worked:
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:
There are many ways to achieve this, one easiest way is to use ★ unichars.
I have attached the pbix for your reference
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
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.
Customer count =
COUNTROWS(rating)
Customer count all =
CALCULATE([Customer count], REMOVEFILTERS('description'))
percentage =
DIVIDE([Customer count], [Customer count all])
thank you. I did it,but now I dont know how to convert * to animated star.
⭐
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
|
thank you. i do that , but i dont know how convert * to animated star.