In this exercise we will create our first View of type Dimension.
🎓 Dimension: A Dimension is a term which comes from the OLAP (Online Analytical Processing) and Starschema domain. It represents Master Data such as Business Partners, Products, Customers, Sales Organization. Master Data usually carries texts and descriptive attributes, which exist in multiple languages.
-
Navigate to the Repository Explorer
-
Click on Create - Graphical View Button to create a new view
-
Click on Details button and configure the following properties:
-
Drag and drop the table CSV_BusinessPartners into the canvas
-
Drag and drop the table CSV_Addresses into the canvas and drop it directly on the CSV_BusinessPartners Node.
-
A new Join Node and a Projection Node will created
-
Select the Join Node and map the column CSV_BusinessPartners.ADDRESSID with the column CSV_Addresses.ADDRESSID
-
Adjust the Join Type to Inner Join.
Note: Following Join Types are currently supported: Inner Join, Left Join, Right Join, Full Outer Join, Cross Join
-
You can also set the join cardinality:
- Exactly One (1)
- One (0..1)
- Many (*)
Note: The cardinality information is utilized in SAP HANA Cloud to optimize the query execution and for that also the overall performance.
With the projection node, you can exclude or restore columns from your model. Hence, they won't be available nor consumpable on the client side, such as SAP Analytics Cloud.
Id and Text: Master Data usually consists an identifier (e.g. Cost Center Id) and a textual description (Cost Center Name). Depending on the reporting requirement, users might want to display one or the other (or both) in the story. This particular semantic and relation between an Id and Text can be modelled in SAP Data Warehouse Cloud.
- Select the Output Node and navigate to the Attributes section and click on Edit Attriutes button:
- Adjust the following attribute properties:
-
Adjust the Hierarchy as following: