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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Calculation percentile range

Good morning, I'm trying to calculate the percentile range of a formula (attached photo). But when I put it in a table to show it I am not able to show me the values and I get an error message: "insufficient memory, try it later".

And I need this formula in others. So I don't know how to do to show that value.

Alberto99_0-1656486509223.png

Thanks a lot

Greetings.

3 REPLIES 3
amitchandak
Super User
Super User

@Syndicate_Admin , Any reason for giving 4 in third parameter, Can that be blank?

 

Also, do you want this formula at row level?

 

You can choose some level like the example

 

rankx(allselected(Table[ID]), [Measure] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Good, I'm trying to pass this formula from excel to the DAX language:

RANK. PERCENTILE(Continuidad_A_sbir_hora_2;4)

Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

I suggest you to add an [Index] column in Power Query and then calculate the percentile rank.

RicoZhou_0-1657185134333.png

Measure:

Percentile Rank = 
VAR _Running_Total =
    CALCULATE (
        SUM ( 'Table'[Score] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Index] <= MAX ( 'Table'[Index] ) )
    )
VAR _TOTAL =
    CALCULATE ( SUM ( 'Table'[Score] ), ALL ( 'Table' ) )
RETURN
    DIVIDE ( _Running_Total, _TOTAL )

Result is as below.

RicoZhou_1-1657185319156.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.