SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create a Dimension Graphical Calculation View (XS Advanced)

Create a graphical calculation view with a dimension data type.

Overview

🎓 intermediate 15 min. SAP HANAIntermediateSqlExpress Edition

You will learn

  • โœ”How to create a calculation view with a Dimension data type
  • โœ”How to perform the basic modelling operations, such as projections and joins
  • โœ”This tutorial is also available as a video
Thomas Jung T Thomas Jung December 15, 2022
Created by September 5, 2016
Contributors

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Tutorials: Import SHINE tables and data

Steps

Step 1 Create a new folder with a namespace
โ€”

Create a new file called models/.hdinamespace under /db/src.

Create namespace
Create namespace

Although there is no need to use namespaces in general, calculation views are consumed from external reporting tools best with namespaces

Use the following code in the file

JSON
{
    "name":    "db.models",
    "subfolder": "ignore"
}

Save and close the file.

If you do not see the file, go to View-> Show hidden files.

Step 2 Create a calculation view
+
Step 3 Join Products and Business Partners
+
Step 4 Join products, business partners and addresses
+
Step 5 Join products with texts
+
Step 6 Join products, business partners and addresses
+
Step 7 Finalize the projection
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Create a new folder with a namespace 2. Create a calculation view 3. Join Products and Business Partners 4. Join products, business partners and addresses 5. Join products with texts 6. Join products, business partners and addresses 7. Finalize the projection

Learn more →