Forum Discussion

CC2019's avatar
CC2019
Frequent Visitor
5 years ago
Solved

Percentile Calculation in Power BI

Hi All,
I have the following data.

 

I could calculate the 90th percentile in Excel as follows
=PERCENTILE(B2:B5,0.9)
which gave me 

0:00:55

 as result.
I tried calculating the same in power BI

Measure = PERCENTILE.EXC('Table'[Seconds],0.9)
Here the column "Seconds" is calculated by extracting total seconds from the column "Time".
The above measure returns the error "Unsupported Percentile".
How can we achieve this in power BI?
Any assistance you can provide would be greatly appreciated.

2 Replies

  • v-jingzhang's avatar
    v-jingzhang
    Community Support

    Hi CC2019 

     

    You could create below measure. In this measure, Seconds column should not be string/boolean/date type or you will encounter the Not Support error. You could convert Seconds column into whole number/decimal number data type.

    Measure = PERCENTILE.INC('Table'[Seconds],0.9)

     

    Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as the solution to help other members find it.