Skip to content

Commit 41c1a21

Browse files
author
paul.marcombes
committed
minor
1 parent 62850d4 commit 41c1a21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigfunctions/transform_numeric/nps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
type: aggregate_function_sql
22
author: Paul Marcombes
33
description: |
4-
Returns the NPS (Net Promoter Score)
4+
Returns the NPS (Net Promoter Score)
55
of `rating` (which represents customer satisfaction between 0 and 10):
66
77
```sql
88
NPS = "% promoters" - "% detractors"
99
```
1010
1111
where:
12-
12+
1313
- `"% promoters" = 100 * countif(rating >= 9) / count(*)`
1414
- `"% detractors" = 100 * countif(rating <= 6) / count(*)`
1515
arguments:

0 commit comments

Comments
 (0)