Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
dragonus
Helper III
Helper III

How can I create percentile rank terms for values?

For example, I have the table below:

 

DateNameValue
1/1/2020Example10.779717
1/2/2020Example10.758218
1/3/2020Example10.963904
1/4/2020Example10.722535
1/5/2020Example10.536913
1/6/2020Example10.247032
1/7/2020Example10.552012
1/8/2020Example10.938482
1/9/2020Example10.04752
1/10/2020Example10.381461
1/11/2020Example10.392838
1/12/2020Example10.188267
1/13/2020Example10.625824
1/14/2020Example10.142416
1/15/2020Example10.53994
1/16/2020Example10.33163
1/17/2020Example10.297304
1/18/2020Example10.35762
1/19/2020Example10.040757
1/20/2020Example10.362639

 

How should I go about creating percentile ranks for them? Also, is there a bellcurve function in PowerBI that I can use to create a chart with these values?

1 ACCEPTED SOLUTION

Hi @dragonus ,

 

“However, my table is long instead of wide and thus is unable to calculate it via that formula properly. Was wondering if there's a way to calculate percentile rank for tables w the Long format (eg having example1,2,3,4,5,6 in a single row)”

Sorry, I misunderstood what you meant. There is no such function in DAX, you must first transform the table with M in 'Edit Query', and then use the PERCENTILE.EXC() function.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @dragonus ,

 

If you want to sort the values, please refer to these two measures.

Current value = MAX(Sheet1[Value]) 
_Rank = 
RANKX(
    ALLSELECTED(Sheet1),
    [Current value],
    , ASC, Dense
)

v-lionel-msft_0-1594701723098.png

In addition, if you want to create a bell curve, please refer to this article.

Create Bell Curve and Histogram with Power BI Desktop using DAX 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

parry2k
Super User
Super User

@dragonus there is a DAX function https://docs.microsoft.com/en-us/dax/percentile-exc-function-dax which you can use to calculate percentile. For bell curve, watch this video, great resource, and explained everything in detail. This is a multiple part video.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k

 

I did have a look at the DAX function. However, my table is long instead of wide and thus is unable to calculate it via that formula properly. Was wondering if there's a way to calculate percentile rank for tables w the Long format (eg having example1,2,3,4,5,6 in a single row)

Hi @dragonus ,

 

“However, my table is long instead of wide and thus is unable to calculate it via that formula properly. Was wondering if there's a way to calculate percentile rank for tables w the Long format (eg having example1,2,3,4,5,6 in a single row)”

Sorry, I misunderstood what you meant. There is no such function in DAX, you must first transform the table with M in 'Edit Query', and then use the PERCENTILE.EXC() function.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors