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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
andy88
Frequent Visitor

Average of rating value

Hi, 

 

I have a table which can be simply put as having a location and a rating (from 1-5) as column titles with entries of these on each row, as a measure the default would be the count of the rating of 1 - 5 but what I would like to be able to show is the average rating of each location rather than the average of the count of rating. 


Any help would be great. 

 

 

3 REPLIES 3
prihana
Helper V
Helper V

Capture.PNG

 

1.Create custom Columns for all rating by multiplying them by their base value - Rating1*1 = 1*Table1[Rating1]

2. Sum the score - TotalRating = Table1[Rating1*1]+Table1[Rating2*2]+Table1[Rating3*3]+Table1[Rating4*4]+Table1[Rating5*5]

3. Sum the no of responses - TotalResponses = Table1[Rating1]+Table1[Rating2]+Table1[Rating3]+Table1[Rating4]+Table1[Rating5]

4. Calculate the avg - Avg = Table1[TotalRating]/Table1[TotalResponses]

 

Or you can do all the above in a single step and have an Average column

Hi,

 

Is there a way to get the count of each rating into a new column as I mentioned that the ratings of each entry are in seperate rows. 

 

Capture.PNG

Hi @andy88,

 

The values (5, 2) of "FinalSatisfaction" shown in above screenshot are the count value of rating, right? Then, how could I know the actual ratings of each location?

 

Please provide more sample data and show us your desired output with example to help us better understand your requirement. I need to know the structure of rating table, how to calculate the average value, what is your desired result.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors