SAP HANA variable creation example


Analytical view with parameter example

We will use a simple analytical view as an example which will guide us for the rest of the document.

The analytical view has been built from tables coming from a DWH sample schema.
The screenshots of the view and of the variable and parameters management have been realized with the HANA Studio release 1.0.25



The Customers attribute view contains information about customers of the company. The view also contains the last name, the customer country, city and education as attributes available at query time. The Customer_id is used as the key attribute for the join with the fact table. This view is defined on top of the Customer table.
The Products attribute view contains information about products. Will be presented only the product name and brand as attributes. Product_ID is the key attribute.
The fact table used here is the Sales_2006 table. There is the join between the Product_Id and the Customer_id with the attribute views and we exposed the Unit sales, Store cost and Store sales as measures.



Adding a parameter
Let's  use a couple of parameters to define a calculated measure where we can see the Store Sales in a different currency.
The target is to ask to the final user of the data to select in which currency the data has to be displayed.
First, in HANA Studio we open the Analytical view and we create a new variable.
The variable will be called “VARCURRENCY” of type currency and data type CHAR.




Finally let's define a new calculated measure called “Store_Sales_currency”.
This measure will be defined in the Expression Editor as the Store_sales measure which appears in the analytical view.



The Measure will refer to the parameter VARCURRENCY.



SAP HANA variables and parameters

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. This article data was thus nice. that is incredibly abundant helpful on behalf of me and affected by reading. Your data is incredibly hip to full to SAP HANA ADMIN Learners. we have a tendency to area unit providing the simplest SAP HANA ADMINISTRATION on-line coaching with full-fledged IT college.Administrators will use the SAP HANA studio, for
    example, to start out and stop services, to watch the system, to piece system settings, and to manage users and authorizations. The SAP HANA studio accesses the servers of the SAP HANA info by SQL
    sap hana online training

    ReplyDelete

Post a Comment

Popular posts from this blog

SAP Dashboard Error - Cannot find the BusinessObjects Enterprise report source. (LO 26608)

SAP HANA Introduction

SAP BusinessObjects 4.0 - Suite Presentation