Choosing a Data Source for a Calculation View


After completing this lesson, you will be able to:

  • Understand which data sources are supported by calculation views

Supported Data Source Types in Graphical Calculation Views

All calculation views have a data source assigned. This provides the input data that is processed by the calculation view.

The following is a list of the data source types that are supported in SAP HANA Cloud calculation views:

  • Row Table
  • Column Table
  • Virtual Tables
  • Calculation Views
  • SQL Views
  • Table Functions

Row or Column Tables

SAP HANA Cloud supports traditional row tables. It also supports SAP HANA Cloud optimized column tables. It makes no difference to a modeler whether the table is row or column and all modeling functions are available with both types. Column tables are optimized to provide you with a very fast read-performance, which makes it the most popular type of table use with calculation views.

Virtual Tables

A virtual table is a table that is part of the SAP HANA Cloud database and is mapped to a remote table outside of SAP HANA Cloud.

By including a virtual table in your calculation view, you reach external data sources from any location in your landscape. The data sources can be database tables, flat files, spreadsheets and more. You should always keep performance in mind when using virtual tables as their use can significantly impact response time.

Calculation Views

Calculation views are a popular data source for other calculation views. Developing data models using layers is recommended break up complex models. In addition, a calculation view can be used by other calculation views, so it makes sense to capture the data processing logic once and reuse many times to avoid redundancy.

SQL Views

SQL views have been around for a very long time and are created using the SQL language. These views might be present in your SAP HANA Cloud database as they are still popular with developers who may not have the skills to develop calculation views. They are a much simpler type of view compared to a calculation view but still provide the ability to combine data sources and add calculated columns.

Table Functions

Table functions can be used to define complex data sources using SQL Script. These data sources can then be consumed by a calculation view.

As a general rule, you should always try to use the standard functionality of the calculation view using the graphical editors. However, sometimes you might need to revert to SQL code to produce the desired outcome.

Log in to track your progress & complete quizzes