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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
S_N_L_A
Frequent Visitor

25th and 75th Percentile incorrect for even observations

I have a DAX-measure where I want to receive the 25th and 75th percentiles of the data in a column. I have added a slicer and want the percentiles to update accordingly. Note that I have a Measure for median as well that works fine. Whenever I have an uneven amount of observations, the outcome seems to be correct. But whenever I have an even number of observations it seems to be incorrect. I've tried both Percentilex.inc, Percentilex.exc, Percentile.inc, and percentile.exc but cannot get my head around it.

Anyone that has encounterd the same issue?


Formulas used are the following

***3rd quartileAGETEST = CALCULATE (PERCENTILE.INC('Population data'[Age],0.75))
***1st quartileAGETEST = CALCULATE (PERCENTILE.INC('Population data'[Age],0.25))
 
Below are print screens of the visual and a table to show the data with the values used.
 

Expected outcome (uneven number of observations)

S_N_L_A_1-1716994912034.png

 

unexcpected(should be (57+54)/2=55,5 and (53+51)/2=52)

S_N_L_A_0-1716994865606.png

 

3 REPLIES 3
S_N_L_A
Frequent Visitor

Hi!

Problem is still very present unfortunately.  Haven't been able to try it in a different version, but version info below:

S_N_L_A_0-1717060913494.png

Ps.

Got the info that the calculation formula and interpolation done when using percentile differs from my "idea" of what it should be. meaning my interpolation in this scenario is 51 + 0.25 * (53 - 51) = 51.5.

Say that I would not want this method, but instead identify the quartiles as I explained above (meaning identifying the middle value of each half). Do you know how I'd be able to do so?

Anonymous
Not applicable

Hi @S_N_L_A ,

 

Can you share the version of Power BI Desktop you are using and if the issue still exists in a different version?

 

Best Regards,
Adamk Kong

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.