Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Regarding HANA transpose logic

$
0
0

Hi Folks,

 

I have gone through many docs on the same and was trying out my logic on the below requirement.

 

Transpose_1.png

what I did so far as below.

 

a.) I have created one attribute view and joined below sample input table based on ID with filters on TA_TYPE as 'Product_ID'

     and 'CURRENCY'.

     With this  I am able to achieve as below.

 

ID     Product_ID     CURRENCY

 

1      ABC100          $500

2      ABC101          $90

3      ABC102          $12

4      ABC103          $6

 

b.) Now for date, Holiday and Person , I have created one calculation view, put filters based on TA_TYPE = 'DATE','HOLIDAY' and 'PERSON'.

    

 

I have 2 concerns here.

 

1.) The columns which have 'NULL' values, I need to append rows with help of UNION by creating calculated columns , since those rows don't have        values in input table like ID 1,2 don t have values for 'Holiday','Person' in input table.

 

2.) Secondly I have to  use multiple joins in calculation view , in order to join all the pieces based on ID to join 'Currency' ,'Holiday' etc.

 

Please suggest if performance wise its good and about my approach. Am I going in right direction?

Waiting for your valuable comments.

 

BR

Sumeet


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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