Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Doubt in attribute view on joining the table .

$
0
0

Hi Prag,

 

As Rashmi has answered your question, i would like to add up to it few more important points.

 

1. Do not perform self join as it will return uncertain results. It is better to avoid self join.

You can create a copy of the same table and perform join which will be consistent.

 

2. In an analytic view, you will be adding table to data foundation, select the output fields.In the logical join node by default your data foundation will be present (this will contain the fields that you selected for output), you need not add any attribute view to this logical join node, leave it to default. In the semantics node select the attributes and measures. Perform validation and then activate. Your analytic view without attribute view is ready. You can check the data preview.

 

3. In a calculation view, the records gets grouped by all the attributes and then the measures are calculated based on this grouping by using the mentioned aggregation (sum/max/min).

 

Eg.

 

Customer ID 0Calmonth Amount (aggregation = max)

1001               01.2014     100         

1001               01.2014     400

1002               01.2014     200

 

Output:

Customer ID 0Calmonth Amount (aggregation = max)

1001               01.2014     400

1002               01.2014     200

 

Hope this clarifies your doubts.

 

Thanks and Regards,

M.N.Adinarayanan


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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