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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
CPage-WF
Regular Visitor

90th Percentile Issues (Not displaying correctly)

I am having issues with capturing the 90th percentile of a given set of data.  I have used all the percentile forumals below with no luck.  While it returns results, they seem to be incorrect.

 

  • PERCENTILE.EXC('Public-Dashboard'[Unit Turnout Time],0.9)
  • PERCENTILE.INC('Public-Dashboard'[Unit Turnout Time],0.9)
  • PERCENTILEX.EXC('Public-Dashboard',[Unit Turnout Time], 0.9)
  • PERCENTILEX.INC('Public-Dashboard',[Unit Turnout Time],0.9)

Below is a certain set of data where you can see the results of the forumla are returning incorrect results as I did the calculation manually on paper.  As you know a normal 90th percentile formula would be calculated as the following steps.

 

  1. Put data in chronological order
  2. Count how many data points you have (in the example below it would be 23)
  3. Take 23 * 0.9 which returns 20.7
  4. Your 90th percent would be the 21st number or 20th number.

Based on the images below I would assume it would be 110 or 118.

 

CPageWF_0-1707319246299.png

CPageWF_1-1707319296267.png

 

 

 

Any help would be appreciated.

 

 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CPage-WF ,
You can try to write the result you want in Dax, i have created an example below:

PERCENTILE.EXC = 
VAR _1 =
    ISO.CEILING( COUNTAX ( 'Public-Dashboard', 'Public-Dashboard'[Index] ) * 0.9, 1 )
RETURN
    CALCULATE (
        SUM ( 'Public-Dashboard'[Unit Turnout Time] ),
        'Public-Dashboard'[Index] = _1
    )

 

Final output:

vyifanwmsft_0-1707715556356.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @CPage-WF ,

Based on the information you provided, the function returns an incorrect result because it returns a value with a decimal instead of the 21st or 20th digit.
You can use the ROUND function to round the result of the PERCENTILE.EXC function to an integer. This way, you get an integer result.

 

PERCENTILE.EXC = 
ROUND ( PERCENTILE.EXC ( 'Public-Dashboard'[Unit Turnout Time], 0.9 ), 0 )

 

Or you can write your own dax to calculate the result:

 

Measure = 
VAR _1 =
    ROUND ( COUNTAX ( 'Public-Dashboard', 'Public-Dashboard'[Index] ) * 0.9, 0 )
RETURN
    CALCULATE (
        SUM ( 'Public-Dashboard'[Unit Turnout Time] ),
        'Public-Dashboard'[Index] = _1
    )

 

 Final output:

 

vyifanwmsft_0-1707372311202.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

@Anonymous - While I was very hopeful that this would work, it seems to still return the wrong value.  See below, in this specific data set there are a total of 19 calls so 19 * 0.9 = 17.1 so it should show the 18th value at 77 but instead it is showing 75.  I am not sure where it is getting this odd value from.

 

CPageWF_1-1707400480005.png

 

 

I am not sure how to explain the data that is in the able.  See below as each unit has a different turnout time for each incident 

 

CPageWF_2-1707400522335.png

 

Anonymous
Not applicable

Hi @CPage-WF ,
You can try to write the result you want in Dax, i have created an example below:

PERCENTILE.EXC = 
VAR _1 =
    ISO.CEILING( COUNTAX ( 'Public-Dashboard', 'Public-Dashboard'[Index] ) * 0.9, 1 )
RETURN
    CALCULATE (
        SUM ( 'Public-Dashboard'[Unit Turnout Time] ),
        'Public-Dashboard'[Index] = _1
    )

 

Final output:

vyifanwmsft_0-1707715556356.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors