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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PaulCo
Helper II
Helper II

Calculating NPS Score based on Average

I have a list of surveys which I am using to Calculate the NPS score of a product. Multiple surveys have been sent to the same customer and I want to use the average score that a customer has to determine whether they are a promoter, passive or detractor. 

 

Promoter: 9-10

Passive: 8-9

Detractor: 0-7

 

I have the following table of data and I've already added a column which calculates the Average score for a customer:

 

CustomerScoreAverage Score
A1010
B 10
B1010
C 6.7
C 6.7
C56.7
C76.7
C86.7
D88
E 10
E1010

 

There are null values for scores which we have not received yet.

 

I would like to disply 4 measures:

 

  1. Count of Promoters (this should be 3 based of the unique average scores)
  2. Count of Passive (this should be 1 based of the unique average scores)
  3. Count of Detractors (this should be 1 based of the unique average scores)
  4. NPS Score (((count of Promoters - count of Detractors) / unique customer count) *100)

 

 Thanks

Paul

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Paul,

 

Try these measures please. You can check them in this file: https://1drv.ms/u/s!ArTqPk2pu-BkgUSBzooh-b-DlL1S.

 

Measure 1 =
CALCULATE ( DISTINCTCOUNT ( Table1[Customer] ), 'Table1'[Average Score] >= 9 )
Measure 2 =
CALCULATE (
    DISTINCTCOUNT ( Table1[Customer] ),
    'Table1'[Average Score] >= 8
        && 'Table1'[Average Score] < 9
)
Measure 3 =
CALCULATE ( DISTINCTCOUNT ( Table1[Customer] ), 'Table1'[Average Score] < 8 )
Measure 4 =
 ( [Measure 1] - [Measure 3] )
    / DISTINCTCOUNT ( Table1[Customer] )
    * 100

Calculating NPS Score based on Average.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Paul,

 

Try these measures please. You can check them in this file: https://1drv.ms/u/s!ArTqPk2pu-BkgUSBzooh-b-DlL1S.

 

Measure 1 =
CALCULATE ( DISTINCTCOUNT ( Table1[Customer] ), 'Table1'[Average Score] >= 9 )
Measure 2 =
CALCULATE (
    DISTINCTCOUNT ( Table1[Customer] ),
    'Table1'[Average Score] >= 8
        && 'Table1'[Average Score] < 9
)
Measure 3 =
CALCULATE ( DISTINCTCOUNT ( Table1[Customer] ), 'Table1'[Average Score] < 8 )
Measure 4 =
 ( [Measure 1] - [Measure 3] )
    / DISTINCTCOUNT ( Table1[Customer] )
    * 100

Calculating NPS Score based on Average.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Worked perfectly, thanks!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.