Forum Discussion
Sid10
5 years agoHelper I
Calculating Percentile using Rank and Count
We know that Percentile = Rank/(n+1), where n is the number of values for which the percentiles are being calculated. This has worked fine for me in powerbi when the values are distinct. However, i...
mwegener
5 years agoMost Valuable Professional
Hi Sid10 ,
try this.
LowBirthWt_%ile = DIVIDE([LowBirthWt_Rank], COUNTX(ALL(CQM), CQM[GrantNumber]))
Sid10
5 years agoHelper I
Wow! That did it! Thanks a lot.
Just a minor correction. Your formula should be:
LowBirthWt_%ile = DIVIDE([LowBirthWt_Rank],COUNTX(ALL(CQM),CQM[GrantNumber])+1)