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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
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

Hi @v-yiruan-msft ,

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
v-yiruan-msft
Community Support
Community Support

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

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

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 @v-yiruan-msft ,

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
Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors