Forum Discussion
Anonymous
8 years agoNot applicable
Calculate poor %
I currently have data like the following:
| Date | Meeting ID | User | Country | Latency | Packet Loss | Poor? |
| 27-Apr | 1 | Bob | UK | 500 | 1% | Poor |
| 28-Apr | 2 | James | US | 100 | 2% | |
| 28-Apr | 2 | Gill | US | 250 | 6% | Poor |
| 30-Apr | 3 | Bob | UK | 50 | 3% | |
| 30-Apr | 3 | Mike | US | 200 | 1% |
And would like to produce the following:
| Country | # of Streams | # of Poor | % Poor |
| UK | 2 | 1 | 50% |
| US | 3 | 1 | 33% |
The key part unsurprsingly is the poor percentage.
Thanks!
HI Anonymous
I added the following three calculated measures to my model
# of Streams = COUNTROWS('Table1')# Poor = COUNTROWS( FILTER( 'Table1', 'Table1'[Poor?]="Poor" ) )% Poor = DIVIDE([# Poor],[# of Streams])
Once I formatted the last one as a percent, I get this.
1 Reply
- Phil_SeamarkMicrosoft Employee
HI Anonymous
I added the following three calculated measures to my model
# of Streams = COUNTROWS('Table1')# Poor = COUNTROWS( FILTER( 'Table1', 'Table1'[Poor?]="Poor" ) )% Poor = DIVIDE([# Poor],[# of Streams])
Once I formatted the last one as a percent, I get this.