Now, I shall try to achieve the same with Graphical Calculation view .
Rank_1 : I am generating failure number for every Part ,
Rank_2 : Sames as Rank_1.
Projection_2 : Converting Rank_Number to NVARCHAR.
Projection_3 : Converting Rank_Number to NVARCHAR and then one more calculated attribute with formula = Rank_Number + 1 .
Join_1 : Joining Projection_2 with Projection_3 with PART_CD= PART_CD and FAILURE = PREV_FAILURE . Join Type is Left outer join .
Aggregation: Calculating the difference between two dates .
Providing some screenshot to explain the model .
Rank_2 :
Projection_2 :
Join:
Aggregation:
Result : records highlighted are your intended result
Regards
Anindya