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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Customer Satisfaction Index (CSAT) dynamic calculation

Hi guys,

 

there are some issues with CSAT calculation.

Here you are the table main table in Excel:

 

1_common.PNG

 

 

 

 

 

 

 

 

 

The algorithm is a follow:

 

1. Average for columns Importance and Rating (column J, K). 

2. For each Importance value in row marking with attribute, calculate it IImportance weight (column F). 

Excel Formula: F2 = D2/VLOOKUP(C2;I:K;2;0)

3. Calculate Weited value for each row record (column G). 

Excel Formula: G2 = F2 * E2

4. Calculate Weighted mean (column L) for each feature group.

Excel Formula: L4 = AVERAGEIF(C:C;I4;G:G)

5. CSI = AVERAGE (L4:L6)/10

 

So, I have a trouble from step 2 (sad, but true).

Moreover, the calculations shoud be dynamic, i.e. the CSAT is changed if you filter it by Date or № resp.

 

Could you please help me with this (steps from 2 to 5)? 

 

Link to file:  https://drive.google.com/open?id=1fGL54h2wl676wfwfCeXixyZuIxNo4HA1

Many thanks for you kind attention

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

For [Importance weight] and [Weighted value], you could create two calculated columns by these formula

Importance weight = 'Table'[Importance]/CALCULATE(AVERAGE('Table'[Importance]),ALLEXCEPT('Table','Table'[Feature]))

Weighted value = 'Table'[Importance weight]*'Table'[Rating]

 

For [Appraisal_mean], [Importance_mean], [Weighted_mean] and [CSI], you could create Calculated measure as below:

Appraisal_mean = CALCULATE(AVERAGE('Table'[Rating]),ALLEXCEPT('Table','Table'[Feature]))

Importance_mean = CALCULATE(AVERAGE('Table'[Importance]),ALLEXCEPT('Table','Table'[Feature]))

Weighted_mean = CALCULATE(AVERAGE('Table'[Weighted value]),ALLEXCEPT('Table','Table'[Feature]))
CSI = AVERAGEX(VALUES('Table'[Feature]),[Weighted_mean])/10

Result:

3.JPG4.JPG

 

and here is sample pbix file, please try it.

 

Regards,

Lin

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

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

For [Importance weight] and [Weighted value], you could create two calculated columns by these formula

Importance weight = 'Table'[Importance]/CALCULATE(AVERAGE('Table'[Importance]),ALLEXCEPT('Table','Table'[Feature]))

Weighted value = 'Table'[Importance weight]*'Table'[Rating]

 

For [Appraisal_mean], [Importance_mean], [Weighted_mean] and [CSI], you could create Calculated measure as below:

Appraisal_mean = CALCULATE(AVERAGE('Table'[Rating]),ALLEXCEPT('Table','Table'[Feature]))

Importance_mean = CALCULATE(AVERAGE('Table'[Importance]),ALLEXCEPT('Table','Table'[Feature]))

Weighted_mean = CALCULATE(AVERAGE('Table'[Weighted value]),ALLEXCEPT('Table','Table'[Feature]))
CSI = AVERAGEX(VALUES('Table'[Feature]),[Weighted_mean])/10

Result:

3.JPG4.JPG

 

and here is sample pbix file, please try it.

 

Regards,

Lin

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

Many appreciate for  your help! 

Thank you so much!

Greg_Deckler
Community Champion
Community Champion

Can you post that data as text or post a link to a file with the data?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi, Greg! 

Thanks for your time

 

Here you are: https://drive.google.com/open?id=1fGL54h2wl676wfwfCeXixyZuIxNo4HA1

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.