Gregory Gegner Posted December 20, 2017 Share Posted December 20, 2017 I am trying to calculate the Avg time between failures and average it accross groups. The formula below works for 1 group (System ID) but does not work for 2 or more. I have included the data and a sample DXP. I am looking for suggestions to the forumla or approach. Thanks for the time and effort. Avg(DateDiff("day",First([MTBF Service Call Start Date]) OVER (Intersect(All([Axis.X]),[system ID],Previous([MTBF Service Call Start Date]))),[MTBF Service Call Start Date])) AS [MTBF], UniqueCount([service Call Number]) AS [sR Cnt] Link to comment Share on other sites More sharing options...
Razvan Trastanetz Posted July 9, 2018 Share Posted July 9, 2018 Were you able to figure this out I too have the same issue. Link to comment Share on other sites More sharing options...
Razvan Trastanetz Posted July 10, 2018 Share Posted July 10, 2018 I have resolved the issue. 1. Create a calculated column Rank([MalfunctStartDate],[Equipment]) I named this "RowIdRank" 2. Create another calculated column First([MalfunctStartDate]) OVER (Intersect([Equipment],Next([RowIdRank]))) - [MalfunctStartDate] Hope this helps someone in the future! Link to comment Share on other sites More sharing options...
Matt Martens Posted July 18, 2019 Share Posted July 18, 2019 I am having an issue with this calculation. The more failures there are the more accurate the results of this equation. My problem is that lets say a piece of equipment has only two failures within a short amount of time. This calculation will show that this equipment has the worst MTBF even though it is actually one of the best performing pieces of equipment. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now