cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Find percentile for values less than x

Hello community, 

 

Please forgive me, I feel like this is probably a simple solution but I am not fully aware of how to code in DAX. 

 

I would like to find a certain percentile for a given column, but only include the values that are less than 300. 

 

So far I have this:

90th = PERCENTILE.INC(apparatus[Dispatch Time Seconds], .9)
 
But I don't know how to make it that it only includes values less than 300 in the calculation. 
 
Any help is appreciated, thank you! 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

@ruesaintdenis , Try like. I have not tested it

 

90th = calculate(PERCENTILE.INC(apparatus[Dispatch Time Seconds], .9),apparatus[Dispatch Time Seconds] <300)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
Highlighted
Super User IV
Super User IV

@ruesaintdenis , Try like. I have not tested it

 

90th = calculate(PERCENTILE.INC(apparatus[Dispatch Time Seconds], .9),apparatus[Dispatch Time Seconds] <300)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors