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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.