Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Create MTBF table with 12 months window forward and backward

ahsansalik
8 - Asteroid

Hi I am trying to create a table for Mean Time Before Failure (MTBF) over a 12 month rolling window. My Problem is my faults end Dec 20 and after that i need to keep the window moving forward by subtracting data from faults per  months before 12 month window start and prior to Dec 20 I need to have cumulative sum of faults. Units represent the sum and subtraction before Dec 20.

Operating HourMonthsFaultsUnitsMTBF
175200Aug-1911175200
175200Sep-191287600
175200Oct-191358400
175200Nov-191443800
175200May-201535040
175200Jul-201629200
175200Aug-201725029
175200Sep-201821900
175200Oct-201919467
175200Nov-2011017520
175200Dec-2011115927
175200Jan-210725029
175200Feb-210629200
175200Mar-210535040
175200Apr-210443800
175200May-210358400
175200Jun-210287600
6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @ahsansalik ,

 

I don't think I'm following.

Could you post your expected outcome as well as the starting data? That would help us a lot.

 

M.



Bulien

ahsansalik
8 - Asteroid

@mceleavey Hi,
sorry i wasn't very clear with my query. i actually just want the focus on the middle 3 columns where the Faults are the happening each month and Units is a running sum of the faults until Dec 20. Now after Dec 20 there arent any faults so i am actually looking at a sliding 12 month window for my calculation of MTBF. So before Dec 20 all the faults are adding up so units are running sum of the faults. After Dec 20 no fault happened but since its a 12 month sliding window so Jan21 will be looking back upto Jan 20 so will not include any faults from 2019. As the months increase so does the sliding window is moving forward so Feb 21 will be upto Feb 20 and will not include faults before it. This is the data extract from a data source.

MTBF is = Operating Hour/ Units 

Operating HourMonthsFaultsUnitsMTBF
175200Aug-1911175200
175200Sep-191287600
175200Oct-191358400
175200Nov-191443800
175200May-201535040
175200Jul-201629200
175200Aug-201725029
175200Sep-201821900
175200Oct-201919467
175200Nov-2011017520
175200Dec-2011115927
175200Jan-210725029
175200Feb-210629200
175200Mar-210535040
175200Apr-210443800
175200May-210358400
175200Jun-210287600
mceleavey
17 - Castor
17 - Castor

@ahsansalik ,

 

Are you saying you only have the first three columns and you would like the Units and MTBF columns to be calculated dynamically in Alteryx?

 

M.



Bulien

ahsansalik
8 - Asteroid

yes that's correct

ahsansalik
8 - Asteroid

I was thinking of using generate rows tool for data after dec 20 as that where data ends.

OllieClarke
15 - Aurora
15 - Aurora

Hey @ahsansalik 

I had a go at this, but got different answers. Why were you expecting Feb-21 to have 6 Units rather than the 7 faults which occurred since Feb-20?

 

(I've attached the workflow anyway, in case it helps)

 

OllieClarke_0-1623157653147.png

 

Labels