📝 Note: This is part of the Fast Track and a mandatory exercise.
A view in SAP Data Warehouse Cloud provides you with several benefits:
- Graphical or script-based editor
- Define views on top of remote, replicated data sources, or tables
- Define unions and joins, rename and remove columns, add calculations and filters
- Create Analytical Datasets, Dimensions or Relational Datasets
- Create Parent-Child or Level-based hierarchies in Dimension views
- Define measures & attributes in Analytical Datasets
- In the Graphical View Builder, you can compute and display the corresponding SQL Statement
A View in SAP Data Warehouse Cloud allows you to leverage local tables, remote tables, or views and combine those into a new View. A View can also contain additional elements, such as filters and calculated columns and a view is consumable in SAP Analytics Cloud.
In this exercise, we will create our first view based on our previously created tables into an asset in SAP Data Warehouse Cloud, which then can be consumed in SAP Analytics Cloud.
-
Log On to your SAP Data Warehouse Cloud tenant.
-
Select the menu option Data Builder on the left-hand side.
-
On the left-hand side you can decide between:
- Repository: Here you have access to the local tables (imported data), Views, Intelligent Lookups and Shared Objects.
- Sources: Here you have access to tables and views from your connections.
-
Ensure you select the option Repository.
-
Open the list of Tables.
-
You are presented with the list of tables, which we created previously.
-
Drag and Drop the table Sales Transactions to the canvas.
-
You automatically will – in addition to the table you dragged to the canvas – receive the output view as well, in our example called View 1.
-
Ensure the option Details (top right corner) is enabled. Otherwise, click on the output view that was added, in our example View 1.
-
Here you can configure Properties for the final output:
- You can configure the Business Name as well as the Technical Name.
- You can configure the Type of Dataset.
- You can decide if the View can be consumed or not.
- You can choose which of the available Columns are shown or will be hidden.
- You can define additional Associations.
- You can provide details on the Business Purpose, which then will be available as part of the Business Catalog.
-
Enter Sales View – Analytical Dataset as Business Name.
-
The Technical Name will be generated based on the Business Name, but you can also change it and enter Sales_View__Analytical_Dataset.
-
In the panel on the right hand side, scroll down to the Attributes section.
-
Now open the context menu for the Attribute Profit
-
Repeat the steps for the Attributes Discount, Revenue, and Cost.
-
Now ensure you select the final output node called Sales View – Analytical Dataset.
-
Navigate to the Details on the right-hand side.
-
Scroll down to the Associations.
-
Select the option Association.
-
You are being presented with the list of Tables and Views from your Space.
-
Select the entry for TABLE Product [Local Table (Dimension)].
-
Click on the icon (top right corner) to expand the Details panel.
-
Ensure the Association is based on the column Product ID in both tables. In case the Association is not suggested or is defined on another column, you can delete the join and use a simple drag and drop motion to define a new one.
-
Click on the icon (top right corner) to collapse the Details panel.
-
In the Details panel now, click on the “More” option to navigate back to the main Properties window and select the analytical Dataset option.
💥 Important 💥
33. You can now continue and repeat the steps 24 - 32 for the other associations:
- TABLE: Sales Manager [Local Table (Dimension)]
- VIEW: Dimension Store [View (Dimension)] – not the local table
- VIEW: Time Dimension – Day [View (Dimension)] – not the local table
-
Ensure the Association for the Sales Manager table is based on the column Sales Manager ID in both tables.
-
Ensure the Association for the Dimension Store View is based on the column Store ID in both tables.
-
Ensure the Association for the time dimension is based on the columns Transaction Date and Date.
-
In the Details panel now, click on the “More” option to navigate back to the main Properties window and select the analytical Dataset option.
-
Save your View.
-
You will be asked to confirm the Business Name and Technical Name.
-
Click Save.
-
Deploy your View.
You have now created and deployed your first Analytical Dataset, which can now be consumed with SAP Analytics Cloud.
Continue to - Exercise 09: Business Layer - Dimension