Forum Discussion
Percentile Column with group by
Hi AlanPhan ,
Maybe you can create a new measure in the table , the code is as follows:
Measure 2 = CALCULATE(PERCENTILE.INC('Table'[value],SELECTEDVALUE('Table'[Percentile])),'Table'[Percentile]=SELECTEDVALUE('Table'[Percentile]),ALL('Table'))
))
Then add a ‘Table’ visual and put ‘col1’ ‘col2’ ‘percentile’ fields and measure2 to the table, the output is as follows:
This is the median I calculated for each group, whether it meets your needs, I found that the median calculated by the second group is different from the result in the picture you provided, could you provide the calculation logic?
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi Anonymous ,
I want to have a table as above, with each row will have 100 point (range from 0 to 1) for 'Value' array, so that I can show on the chart.
With your result, how can I show to line chart with enough 100 point?
- Anonymous3 years agoNot applicable
Hi AlanPhan
What you describe is a bit abstract, is there a similar graphic description?
Best Regards,
Yolo Zhu
- AlanPhan3 years agoFrequent Visitor
Anonymous ,
You can see the line chart as below, I want to have 100 points for each percentile (range from 0 to 1). Is it possible?