hi all, I have a scenario where all the ratings given by customer for the specific locations needs to be averaged and shown to admin. suppose if customer gives review for Hyderabad location twice then the two ratings should be averaged and shown to admin. but in my case all rating given by customer is display the aggregation list activity is working but the reviews are repeated twice. any suggestions how to solve this.
I think you need to save an attribute on the location named ‘AverageRating’. Then every time a new rating for that location is given, you are gonna recalculate the average rating and save it on the location. After that, you can show your locations in a list and display the average rating of every location.