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

Re: Averages for Calculated Columns

$
0
0

Hi Bal,

 

1. Create Calculation View with Projection --> Aggregation Flow.

    In Projection_1, Add your Attribute View.

 

    temp.PNG

 

2. In Projection_1, Create Calculated Column CC_Counter and Mention the Value as "1".

 

    temp.PNG

   

 

3. In Aggregation Node,

    Select Job, RECED_TIME and ACPTD_Time as Attributes (Add as Output)

    Select Time_To_Accept, Time_To_Arrive, CC_Counter as Measures

    (Add As Aggregated_Column).


    temp.PNG


 

4. Create Calculated Column - "Avg_Time_Difference_Arrive_Accept"

    by Formula

   ("TIME_TO_ARRIVE" - "TIME_TO_ACCEPT") / "CC_Counter"

 

    temp.PNG

 

5. The Output will be

 

    temp.PNG

 

      It is giving correct result.

 

Regards,

Muthuram


Viewing all articles
Browse latest Browse all 2069

Trending Articles



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