Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2079

Re: logic in calculated columns

$
0
0

Now, I shall try to achieve the same with Graphical Calculation view .

 

cap3.PNG

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 :

Rank1.PNG

Projection_2 :

Proj2.PNG

 

Join:

Join.PNG

 

Aggregation:

aggregation.PNG

 

Result : records highlighted are your intended result

result.PNG

 

Regards

Anindya


Viewing all articles
Browse latest Browse all 2079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>