Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
paul.marcombes committed Dec 16, 2024
1 parent 62850d4 commit 41c1a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigfunctions/transform_numeric/nps.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
type: aggregate_function_sql
author: Paul Marcombes
description: |
Returns the NPS (Net Promoter Score)
Returns the NPS (Net Promoter Score)
of `rating` (which represents customer satisfaction between 0 and 10):
```sql
NPS = "% promoters" - "% detractors"
```
where:
- `"% promoters" = 100 * countif(rating >= 9) / count(*)`
- `"% detractors" = 100 * countif(rating <= 6) / count(*)`
arguments:
Expand Down

0 comments on commit 41c1a21

Please sign in to comment.