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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DFlynn
Frequent Visitor

calculate cycle times, get an average excluding top 15%

In a manufacturing setting I have a pick started and pick completed time/date stamps, i have subtracted them from one another to get the duration or cycle time. I am trying to build a report to get the average which i did using a measure however my data is skewed due to some outlier times and i would like to exclude the top 15% without removing the data. I know i can do it with if functions within excel but i am racking my brain with DAX.

DFlynn_0-1680192791054.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@DFlynn Try using AVERAGX with a FILTER function. For a more complex approach to this, here is an equivalent of TRIMMEAN in Excel: TRIMMEAN - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@DFlynn Try using AVERAGX with a FILTER function. For a more complex approach to this, here is an equivalent of TRIMMEAN in Excel: TRIMMEAN - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

That did work but did not quite give me the result i wanted, I ended up using power query to duplicate the start and end times columns and then turning those into decimal value. Take that and split the column at the delimiter, seperating the time and the date sets. Then i can subtract them accurately because DAX is odd with times over 24hours. Did the averages from that and converted it all back over. Thank you for the assistance.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.