Forum Discussion
Anonymous
6 years agoNot applicable
Population Pass Rate
Hello Everyone, Requesting for your help in creating a Population Pass Rate computation wherein the target is dynamic. Please see sample data below: ID Employee Name Supervisor Units T...
- 6 years ago
Hi Anonymous
Create measures
pass count = CALCULATE ( DISTINCTCOUNT ( 'Table'[Employee Name] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Supervisor] = MAX ( 'Table'[Supervisor] ) && 'Table'[Unit Pass?] = 1 ) ) total emp = CALCULATE ( DISTINCTCOUNT ( 'Table'[Employee Name] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Supervisor] = MAX ( 'Table'[Supervisor] ) ) ) pass rate = [pass count]/[total emp]Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-juanli-msft
Community Support
6 years agoHi Anonymous
Create measures
pass count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Employee Name] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Supervisor]
= MAX ( 'Table'[Supervisor] )
&& 'Table'[Unit Pass?] = 1
)
)
total emp =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Employee Name] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Supervisor]
= MAX ( 'Table'[Supervisor] )
)
)
pass rate = [pass count]/[total emp]
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Thank you! I will try this one later and will let you know if it works.
Appreciate your help! 🙂