Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
14 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |