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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Microsoft Employee
Microsoft 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.