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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
WizardWalksBy
Frequent Visitor

Trying to do some Scoring using Percentiles

Struggling with something that seemed to be simple before DAX... beginner here trying to convert a
column of percentages (fill rates) for our supplier base into percentiles for scoring purposes.

Supplier FillRate% Percentile
A               16.5%        ?
B                99.5%       ?
C                 85.8%      ?
D                68.5%       ?

I've spent a day now researching the DAX Percentile functions and can't seem to get that Percentile column
populated. Any help would be so appreciated!
Thanks

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

@WizardWalksBy

 

Sounds like you're wanting the equivalent of Excel's PERCENTRANK function.

 

Have a look at this thread for some sample DAX you could adapt:

http://community.powerbi.com/t5/Desktop/PERCENTRANK-Inclusive/m-p/81208

 

In my (@OwenAuger) post there is some code that should replicate Excel's function including handling ties, which was quite long-winded to be honest.

 

@v-sihou-msft's post has a simpler formula that works fine without ties.

 

Cheers,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

@WizardWalksBy

 

Sounds like you're wanting the equivalent of Excel's PERCENTRANK function.

 

Have a look at this thread for some sample DAX you could adapt:

http://community.powerbi.com/t5/Desktop/PERCENTRANK-Inclusive/m-p/81208

 

In my (@OwenAuger) post there is some code that should replicate Excel's function including handling ties, which was quite long-winded to be honest.

 

@v-sihou-msft's post has a simpler formula that works fine without ties.

 

Cheers,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Exactly what I was looking for, thanks a million!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.