SAP HANA Attribute View
SAP HANA Attribute View
Referential Join
Inner Join
Left Outer Join
Right Outer Join
Text Join
Along with defining the join type of the Attribute View, the cardinality of
tables is also important to specify. The cardinality can be 1:1, 1: N or N:1.
The level hierarchy follows a rigid pattern of root and child nodes where
successive attributes can be accessed only in the order they were created.
A parent-child hierarchy is like a tree structure where there are multiple
sub-nodes of a root node which can further extend to an undecided length.
Thus, the tree-like structure has unbalanced root nodes.
Enter details: Enter the technical name of the table and mention the
table type.
Table selection: Select tables from the database schemas. You can select
tables from more than one schema. If you select multiple tables, joins can
create between them in this step.
Field selection: Define the key column and select the output column.
Advanced operations: You can carry out transformation processes on
columns like creating calculated columns, creating hierarchies, etc.
Active and data preview: At last, you can activate the Attribute View after
saving the selections made by you and go to Data Preview to preview the
view created.
Learn the Installation process of SAP HANA
Attribute View Creation
Here are the steps to create an Attribute View in SAP HANA Modeler:
Step 1: Open packages in the Content folder in the SAP HANA Modeler.
Step 2: Then, select an existing package or create a new package from the
Content node.
Right-click on the package name, go to New and select Attribute View option.
Step 4: Then, a view editor will open. The Semantics section shows all the
details that relate to the columns from the tables. And, you can create the
Attribute View in the Data foundation section of SAP HANA Modeler.
Or, by clicking on the green plus sign next to the Data foundation section and
searching the table by name.
Step 6: Now, its time to select columns from the table to add into the Attribute
View in SAP HANA Modeler. You can add columns into the view in two ways;
either by right-clicking on the column name and selecting Add to Output. The
column name will show in the right-most Output column and also on the Data
foundation at the left. Or, you can simply click on the dot present in-front of
the column name and it will turn orange indicating that it is added.
Step 10: The data preview window contains three tabs; Analysis, Distinct
values, and Raw data. The raw data section shows the data in tabular form.
Lastly, you can do instant analysis using the data from the columns in the
Analysis tab. Just drag-and-drop the columns in place of two axes and
visualization create.
Summary
Thus, in this lesson, we learned about the first, which the very basic
information view in SAP HANA, that is, the Attribute View. We went through
the Attribute View as a concept moving forward with learning how to create it
in SAP HANA Modeler. In the lessons to come, we will learn about the other
two views, namely Analytic View and Calculation View.
Therefore, don’t forget to check the upcoming articles. If you have come across
with any kind of queries related to SAP HANA Attribute View article, feel free
to ask in the comment section.
Step 1: Open SAP HANA Modeler perspective in the SAP HANA Studio.
Step 2: Your pre-existing attribute views will be present within a package in
the Content node.
Step 3: Right-click on the package for which you need to create an Analytic
View in SAP HANA which also contains the attribute views. Click on New and
select Analytic view from the drop-down list.
Step 4: Enter the technical name of the view and add a description. You can set
other properties as well, like view type, subtype etc. Click on Finish.
From the semantics section, you can access the columns, view properties,
hierarchies and variables or parameters.
Step 6: Now its time to add tables into the Data foundation. You can add the
data tables from the left panel either by dragging and dropping or by searching
the table’s name, Add Objects icon.
Step 9: Now we will go to the “start join” section to link all the attributes views
with the data foundation (fact table). As you can see in the image below, we
have selected three attribute views in the Star Join section; AT_CUSTOMER,
AT_PRODUCTS and AT_TIME.
Three separate tables for the three attribute views will get add in the editor
pane.
Learn to Use SAP HANA Studio Administration Console
Step 10: We will join the fact table with the attribute view table with common
columns, as shown in the image below. We have joined the two tables (fact
table and attribute view) with the column CUSTOMERNUMBER.
Step 12: Next, we’ll define measures and dimensions for the table from the
Semantics section. You can tag the measure fields as measures from clicking
on the columns and then on the yellow icon on the bar (indicated by the blue
arrow). And similarly, tag the dimensions by selecting the attribute icon
shown by the red arrow.
Summary
We learned about one more Information View in SAP HANA which is the
Analytic View. We hope you are understanding the flow of logic as to why
these information views are created. In the next lesson, we will learn about a
more complex Information View that is Calculation View.
Any doubts or feedbacks regarding the SAP HANA Analytic View article?
Simply enter in the comment section.
You can also change the type of visualization from a bar graph to a bubble
chart, line chart, pie chart, etc.
Summary
We learned about the complex information view that is Calculation View, its
characteristics, scenario panel and steps to create Calculation View in SAP
HANA.
We hope you found our explanation helpful. In case of any queries related to
SAP HANA Calculation View Tutorial, drop your comments in the comment
box below.