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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
inascargio
Frequent Visitor

Percentile

Hi all,
I am struggling with the following problem: I have a sample data set where I need to calculate the n percentile (say 10% percentile) for records pertaining to a given group (column Area). The percentile of each group should then be reported in an additional column.

unnamed.png

Thank you
giovanni

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @inascargio ,

You can refer the following links to get it:

By DAX:

powerbi - Calculating percentiles by group in Power BI - Stack Overflow

P10 =
    PERCENTILEX.INC (
        ALLSELECTED ( 'Table'[Area] ),
        CALCULATE ( SUM ( 'Table'[Custom.Peso] ) ),
        0.1
    )

By Power Query:

New Percentiles Transformation in Power Query | Microsoft Power Query

vyiruanmsft_0-1684736992270.png

Best Regards

View solution in original post

Hi @Anonymous ,

thanks for the reply.

I followed the DAX solution and slightly modifiied the approach as follows:

=CALCULATE(PERCENTILEX.INC('Table1  2';[Custom.Peso];0,1); ALLSELECTED('Table1  2'[Custom.Gestore]))

And I managed to get exactly the output I needed (see snapshot below).

Thanks

inascargio

image001.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @inascargio ,

You can refer the following links to get it:

By DAX:

powerbi - Calculating percentiles by group in Power BI - Stack Overflow

P10 =
    PERCENTILEX.INC (
        ALLSELECTED ( 'Table'[Area] ),
        CALCULATE ( SUM ( 'Table'[Custom.Peso] ) ),
        0.1
    )

By Power Query:

New Percentiles Transformation in Power Query | Microsoft Power Query

vyiruanmsft_0-1684736992270.png

Best Regards

I'm using Power Query in Excel and don't have the Percentile operation available. Is it an upgrade or add-on of some sort, or only in Power BI?

Hi @Anonymous ,

thanks for the reply.

I followed the DAX solution and slightly modifiied the approach as follows:

=CALCULATE(PERCENTILEX.INC('Table1  2';[Custom.Peso];0,1); ALLSELECTED('Table1  2'[Custom.Gestore]))

And I managed to get exactly the output I needed (see snapshot below).

Thanks

inascargio

image001.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.