Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
This must be simple but I struggle to find the way to do it, so I'd appreciate any help / guidance you could provide.
I have an initial table (example below) with the ratings given by the sales team about several products (i.e. a sales rep from Europe rates Product A as "1" in an 0-3 scale). For a given product in a region I need to display the distribution of ratings received together with the total average of all the ratings, and show it using a graphic like this (I've done it with Excel):
To do so I need to:
a) count the number of times each rating is given per product in a region (by all sales reps)
b) calculate the average rating given to a product in each region (by all sales reps)
I've done b) easily by creating a reference table in in QueryEditor and using the "Group by ..." option, but I struggle doing "a)" and creating the visual.
Any help highly appreciated.
Thanks in advance,
J
>> Data samples in case the explanation above is confusing:
* Data Table
Region | Product | Rating |
Europe | Prod A | 3 |
Europe | Prod A | 3 |
Europe | Prod A | 2 |
Europe | Prod A | 1 |
Europe | Prod B | 3 |
Europe | Prod B | 2 |
Europe | Prod B | 2 |
Europe | Prod B | 0 |
Asia | Prod A | 1 |
Asia | Prod A | 0 |
Asia | Prod B | 2 |
Asia | Prod B | 1 |
* Number of times each rating is given to ProdA in Europe would be:
Rating 0: 0 times
Rating 1: 1 times
Rating 2: 1 time
Rating 3: 2 times
* Average rating given to ProdA in Europe would be:
Average rating: (3+3+1+2)/4= 2.25
Solved! Go to Solution.
Hi @JPux ,
To do this you can do the following:
TotalRatings = COUNTROWS(FILTER(Rating, Rating[Rating] in VALUES(RatingsVALues[Rating]))) + 0
Average Values = AVERAGE(Rating[Rating])
You can also add some additional measure for the axis to be perfect visible
Result below:
I know this is not the dot that you present but show a value for the average values and you can see what is higher and lower than your average.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @JPux ,
To do this you can do the following:
TotalRatings = COUNTROWS(FILTER(Rating, Rating[Rating] in VALUES(RatingsVALues[Rating]))) + 0
Average Values = AVERAGE(Rating[Rating])
You can also add some additional measure for the axis to be perfect visible
Result below:
I know this is not the dot that you present but show a value for the average values and you can see what is higher and lower than your average.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Portuguêswow! this is exactly what I needed.
It works perfect. (And I guess I've just realized I did not really understand how to use Measures in PBI. 🙈)
Muito obrigado @MFelix
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |