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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.