Professional Documents
Culture Documents
SAP HANA Analytic View is based on STAR Schema Modelling, and it represents OLAP/Multi-
Dimensional Modelling objects. SAP HANA Analytic view forms a cube-like structure, which is used
for the analysis of data. Analytic View is mainly used in a scenario where we need aggregated data
from the underlying table.
In SAP HANA Analytic view, dimension tables are joined with the fact table that contains transaction
data. A dimension table contains descriptive data. (E.g. Product, Product Name, Vendor, customer,
etc.). Fact Table contains both descriptive data and Measureable data (Amount, Tax, etc.).
Here, we will create an analytic view for Purchase Order based on the earlier created attribute view
“AT_PRODUCT”.
We will use the Table Purchase Order Header and Purchase Order Detail table for it.
We are going to create a SAP HANA Analytic View with name “AN_PURCHASE_ORDER”, with the
already created attribute view “AT_PRODUCT”, tables “PURCHASE_ORDER” and
“PURCHASE_DETAIL”.
2. Right-Click ->New.
Step 3) Add Table from Schema in Data Foundation node under Scenario pane
2. Start Join: This node create join in order to join the attributes view with the fact table.
3. Data Foundation: In this node, we add FACT table for Analytic View. Multiple tables can be
added, but measure from only one table can be selected.
1. Click on data foundation node. Table added in data foundation node will display in Detail
section.
Step 7) Now, join attribute view to the fact table (data foundation)
Attribute view and fact table will be displayed in the detail pane. Now we Join attribute view to fact
table as below –
Click On OK Button.
3. Define column type as attribute and measure, I have defined all column as attribute except
“GROSS_AMOUNT”, which is defined as a measure.
Step 9) Validate and Activate Analytic view
Now analytic view “AN_PURCHASE_ORDERS” will be created and activated in Analytic Folder of
Modelling Sub-package as –
1. Analysis – In this tab, we have to drag and drop Attribute and measure in Label Axis and
Value axis. We can see the output in Chart, table, Grid, and HTML format.
2. Distinct values – Distinct values show distinct value for selected attribute. We can select
only one attribute at a time.
3. Raw Data – It will show in Table format from Raw Data tab as below –
Note: SAP HANA Analytic view can contain only Attribute view and does not support Union.