Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
57 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |