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
Anonymous
Not applicable

What DAX function to use to show quartiles

Hi

 

I need to show the amount of employee's in each quartile by their pay by gender.

 

I have gender and amount. I want to be able to show something like the following;

PlentyL_0-1680095184152.png

Is there a DAX Function i can use to split my data into quartiles?

 

thanks in advance.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous 

You refer to the following function.

1.PERCENTILE.EXC(<column>, <k>)

Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive.

PERCENTILE.EXC function (DAX) - DAX | Microsoft Learn

2.PERCENTILE.INC(<column>, <k>)

Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive.

PERCENTILE.INC function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

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

6 REPLIES 6
Preeti_sharma
Regular Visitor

Do we have a solution for this?

I'm trying to do something similar.

Anonymous
Not applicable

Thanks. This is giving me the value of the quartile, but how do I show how many employee's are in this quartile?
I need to be able to get to the following;

 

Top Quartile.  50 Males 100 Females

Top Middle 60 Males 90 Females

Lower Middle 80 Males 70 Females

Lower Quartile 10 Males 140 Females

 

For example.

lbendlin
Super User
Super User

Anonymous
Not applicable

Hi  @Anonymous 

You refer to the following function.

1.PERCENTILE.EXC(<column>, <k>)

Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive.

PERCENTILE.EXC function (DAX) - DAX | Microsoft Learn

2.PERCENTILE.INC(<column>, <k>)

Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive.

PERCENTILE.INC function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

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

 

How do you apply this dynamically to a measure not a column? 

 

Did you ever figure this one out? I am trying to do the same thing

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