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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Identify the right value to fulfill different percentage range

Below example table, includes the age of 10 people. I want to find out what age value to cover 90% of people. The expected result is age 20 which covers 9 people from B to J. How to use DAX functions to find the right age value?  

 

Clement_lok_0-1648378312378.png

Thanks

Clement

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this:

tomfox_0-1648384616444.png

Here the DAX code:

TomsPercentile90Measure = 
VAR _percentile = PERCENTILE.INC ( Table12[Age], 0.90 )
RETURN
CALCULATE ( 
    MAX ( Table12[Age] ),
    Table12[Age] <= _percentile
)

 

Let me know, if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this:

tomfox_0-1648384616444.png

Here the DAX code:

TomsPercentile90Measure = 
VAR _percentile = PERCENTILE.INC ( Table12[Age], 0.90 )
RETURN
CALCULATE ( 
    MAX ( Table12[Age] ),
    Table12[Age] <= _percentile
)

 

Let me know, if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

Hi Tom,

 

Thanks a lot. It works perfectly.

 

Best regards

Clement

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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