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

Calculate NPS (Net Promoter Score)

 

https://community.powerbi.com/t5/Desktop/Trying-to-calculate-NPS-Net-Promoter-Score-via-custom-calcu...

 

I used the solution in this post to try to calculate NPS from a column ("Respondants") containing "passive" "promoter" and "Detractor" values.  However, each time I try, it comes up blank.  The current formula in the measure is:

 

NPS =
var NumOfRespon = CALCULATE(COUNTROWS('Table1'), ALL('Table1'))
return
(CALCULATE(COUNTA(Table1[Respondents]), FILTER('Table1', 'Table1'[Respondents]="Promoters")) / NumOfRespon
 - CALCULATE(COUNTA(Table1[Respondents]), FILTER('Table1', 'Table1'[Respondents]="Detractors")) / NumOfRespon)
 * 100

 

But I continue to receive:

NPS Blank.JPG

What am I doing wrong?

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @SaganBigRedDog,

It's really hard to troubleshooting your issue without sample table, could you please share your sample table or .pbix file for further analysis? In addition, do mask sensitive data before uploading sample table or create dummy table.  Thanks for understanding.

Best Regards,
Angelia

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.