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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Rating Matrix Total Average mixed with Rating Count

Hi everybody,

 

this is a problem i could not figure out even with ours of googling.

I have a rating system from 0-10 on 4 different categories.

The visual as matrix works fine after some data transformation (pbix in wetransfer to download included) but the sad part is that i cannot change the total to average, which i need.

 

I tried possible ways to do this with other posts like the AverageX function but could not get it to work so i made some sample data.


Could anyone help me with this one?
Are my steps of transforming the data even unnecessary or is there a better way?

 

I Also want to filter the data regarding each customer as slicer for example. Also included in sample data.

https://we.tl/t-KVwULUbJdvPBIX_Percentage.png

 

Thank you in advance 😃

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, you want to calculate the average of the last column, right? Here are my steps you can follow as a solution.

(1)We can create  a measure.

 

Measure = IF(ISINSCOPE(Ratings_Values_Matrix[Category]),AVERAGE(Ratings_Values_Matrix[Count]),SUM(Ratings_Values_Matrix[Count]))

 

(2) Put [Measure] in the values display.

vtangjiemsft_3-1666855892057.png

(3) Change the subtotal label.

vtangjiemsft_4-1666855892059.png

(4) Then the result is as follows.

vtangjiemsft_5-1666855892065.png

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Anonymous
Not applicable

Good morning Neeko,

 

thank you for your help already.

Sadly  it is not exactly what i need.

I need the average of the overall ratings in 1 Column.

For example the first Column. (0x1 + 1x2 + 2x4 + 3x2 + 4x5 + 5x1 + 6x2 + 7x1 + 8x2 + 9x2 + 10x1)

/(2+4+2+5+1+2+1+2+2+1)    

 

Is that possible while also having the counts of the certain ratings unchanged?

 

 

 

 

 

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.