Professional Documents
Culture Documents
Calculation View
Calculation View
Calculation View
A calculation view in SAP HANA is a virtual data model that allows you to perform
complex calculations on data from various sources. You can create graphical or SQL
Script-based calculation views using SAP HANA Studio or Eclipse 1.
Here is an example of a graphical calculation view that aggregates the sales amount
by product category and region:
calculation view: SALES_BY_CATEGORY_REGION
output columns: CATEGORY, REGION, AMOUNT
aggregation node: AGGREGATE_SALES
data source: SalesItems table
mapped columns: CATEGORY, REGION, AMOUNT
aggregation type: MAX for AMOUNT column
Here is an example of a SQL Script-based calculation view that returns the top 10
customers by revenue:
calculation view: TOP_CUSTOMERS
output columns: CUSTOMER_ID, CUSTOMER_NAME, REVENUE
SQL Script: