Forum Discussion
Percentile calculation not working properly with filter
Hey everyone,
I have created some calculated columns to get 50th, 60th, 70th percentile of a column in a table.
Any help would be highly appreciated.
Regards,
Ayushi Agrawal
- Anonymous4 years ago
Anonymous
You have to refer to a column to get the percentile. If you your model has correct relationship settled, you can just use the column(a list of filtered value) as the slicer, the percentile measures should filtered automatically.Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
4 Replies
- amitchandak
Super User
Anonymous , What does selectcolumns doing there. It returns table.
Selectcolumn inside table , something is not correct
- AnonymousNot applicable
yes, right. I was assuming that SELECTCOLUMNS would return the column, and then it can pe passed to PERCENTILE function.
is there any way I can pass FILTERED column to PERCENTILE function..(a list of filtered value which would contain only rows corresponding to slicer selection)
- AnonymousNot applicable
Anonymous
You have to refer to a column to get the percentile. If you your model has correct relationship settled, you can just use the column(a list of filtered value) as the slicer, the percentile measures should filtered automatically.Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly. - Fabián_PinoNew Member
If anyone has the same problem adding the percentile to a plot with filters. I solved it using this:
Percentil25 =
PERCENTILEX.INC(
FILTER(
Ventas,
NOT ISBLANK(Ventas[Valor]) -- Avoids error of null values
),
Ventas[Valor],
0.25
)