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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Sofinobi
Helper IV
Helper IV

Rating visual

Hi all,

please, i have a dax measure to show a star rating (not exactely stars), but it doesn't work, it shows me an error "mdxscript(model) (346, 30) calculation error in measure"
the measure is :  

Rating Visual =
VAR _Full = INT( DIVIDE(AVERAGE(COM_ThirdParty[Rating Column]),10) )
VAR _Empty = 10 - _Full
RETURN
REPT(UNICHAR(9899), _Full) & REPT(UNICHAR(9898), _Empty)

* the error comes from the rating column, cause when i change for another column, it shows me a result correctely.
the Rating Column is calculated :  
Rating Column = DIVIDE([Sales],[Solde Max],0)*100

the result with another column is like this image:
rating visual.PNG
2 REPLIES 2
Sofinobi
Helper IV
Helper IV

any suggestions please?

Sofinobi
Helper IV
Helper IV

hi again,
after trying some manipulations, now it works for the Sellers, but not for the Clients.
here is a sample pbix file, 
Rating test.pbix 
my actual result in this image: (i woukd like the same for the Clients)
Rating 2.PNG
thank you so much

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.