Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have the following table:
- First 3 columns are data,
- Percentile columns are what I'm trying to calculate. The calculation below is the median for the corresponding group - but I would like to be able to replicate for any percentile.
- The last column is the end goal, comparing if a data point is below, same, or above the percentile of the group.
How can I create the percentile and comparison columns in PowerBI, using metrics/columns. Do I need to create a calculated table?
Thanks in advance!
V
Solved! Go to Solution.
Hi @PowerBIUserX ,
I create two measeures,the codes are as follows,
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 @PowerBIUserX ,
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,
Thank you, this is indeed the calculation I'm looking for. I've updated the table to reflect the correct numbers.
What is the calculations/DAX you used?
Best regards,
V
Hi @PowerBIUserX ,
I create two measeures,the codes are as follows,
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.
Thank you so much!!
@PowerBIUserX , is it Percentile or Avg
like a new column
Avg Group 1 = averagex(Filter(Table,[Group 1] = earlier([Group1]) ), [Value])
Avg Group 2 = averagex(Filter(Table,[Group 2] = earlier([Group2]) ), [Value])
Then you can diff in new columns
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |