Forum Discussion
Working with percentiles
- 5 years ago
Please try this measure expression in a matrix visual with Facility and Category to get the pic below.
Perc All =
VAR thisresult =
AVERAGE ( Perc[Result] )
VAR summary =
ADDCOLUMNS (
ALLSELECTED ( Perc[Category] ),
"@result",
CALCULATE (
AVERAGE ( Perc[Result] )
)
)
RETURN
COUNTROWS (
FILTER (
summary,
[@result] <= thisresult
)
)
/ COUNTROWS ( summary )Regards,
Pat
Please try this measure expression in a matrix visual with Facility and Category to get the pic below.
Perc All =
VAR thisresult =
AVERAGE ( Perc[Result] )
VAR summary =
ADDCOLUMNS (
ALLSELECTED ( Perc[Category] ),
"@result",
CALCULATE (
AVERAGE ( Perc[Result] )
)
)
RETURN
COUNTROWS (
FILTER (
summary,
[@result] <= thisresult
)
)
/ COUNTROWS ( summary )
Regards,
Pat
- EBurke325 years agoNew Member
Thank you, it took me a minute to get my head around all that, but it seems to have worked!