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

Re: difference between aggregation and projection node in Calculation view

$
0
0

Hi,

 

I am trying my best to explain difference between projection and aggregation in simple words.

 

Projection : It is use to select data without aggregation. NO Group By Clause. You will get entire dataset for selected columns.

 

Aggregation : Group by clause will be used here. So, you will get less number of rows in output.

 

Example :

 

I have create calculation view using below dummy table.

1.PNG

 

Modeling using Projection node :

2-1.PNG

 

Output of Projection_1 node :
( After activation, right click on Projection_1 node and select Data Preview. Same is applicable to Aggregation_1 node)

2.PNG

 

Modeling using Aggregation :

3-1.PNG

 

Output of Aggregation_1 node :

3.PNG

 

Conclusion : Using projection, we got 7 rows and using Aggregation, we got 2 rows. So, Using aggregation you are passing less data to another node. So, execution time will be fast.

 

Note : You will get same output at semantic layer for Projection and Aggregation.

 

Regards,

Vikram  Divekar


Viewing all articles
Browse latest Browse all 2161

Trending Articles



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