Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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:
Customer | Score | Average Score |
A | 10 | 10 |
B | 10 | |
B | 10 | 10 |
C | 6.7 | |
C | 6.7 | |
C | 5 | 6.7 |
C | 7 | 6.7 |
C | 8 | 6.7 |
D | 8 | 8 |
E | 10 | |
E | 10 | 10 |
There are null values for scores which we have not received yet.
I would like to disply 4 measures:
Thanks
Paul
Solved! Go to Solution.
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
Best Regards!
Dale
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
Best Regards!
Dale
Worked perfectly, thanks!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
59 | |
36 | |
32 |
User | Count |
---|---|
92 | |
59 | |
59 | |
49 | |
41 |