28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Type Description<br />

Date (available in Calculation View only) Use this when the value of a parameter is in a date format, for<br />

example, to specify the date during currency conversion.<br />

Static List Use this when the value of a parameter comes from a userdefined<br />

list of values.<br />

Derived From Table (available in Analytic View and Graphical<br />

Calculation View)<br />

Use this when the value of a parameter comes from a table<br />

column based on some filter conditions and you do not need<br />

to provide any input at runtime.<br />

Empty Use this when the value of a parameter could be anything<br />

from the selected data type.<br />

Direct Type (available in Analytic View) Use this to specify an input parameter as currency and date<br />

during currency conversion.<br />

In the case of analytic views, all input parameters are mandatory. However, in the case of calculation views, each<br />

type of input parameter can be either mandatory or non-mandatory. For a mandatory input parameter, it is<br />

necessary to provide a value at runtime. However, for a non-mandatory input parameter, if you do not specify a<br />

value at runtime, the data for the column in which the input parameter is used remains blank.<br />

Note: You can check whether an input parameter is mandatory or not from the properties of the input<br />

parameter in the Properties pane.<br />

Procedure<br />

● If you want to create a formula to analyze the annual sales of a product in various regions, you can use<br />

Year and Region as input parameters.<br />

● If you want to preview a sales report with data for various countries in their respective currency for a<br />

Analytic View<br />

particular date for correct currency conversion, you can use Currency and Date as input parameters.<br />

1. In the Output panel of the Data Foundation or Logical Join node, right-click the Input Parameters node.<br />

Note: You can also create input parameters at the Semantics node level, using the Create Input<br />

Parameter option in the Variables/Input Parameters panel.<br />

2. From the context menu, choose New.<br />

126<br />

a. Enter a name and description.<br />

b. Select the type of input parameter from the Parameter Type dropdown list.<br />

Note:<br />

○ For the Column type of input parameter, you need to select the attribute from the dropdown<br />

list. At runtime the value for the input parameter is fetched from the selected attribute's data.<br />

○ For an input parameter of type Derived from Table, you need to select a table and one of it's<br />

column as Return Column whose value is then used as input for the formula calculation. You<br />

can also define conditions to filter the values of Return Column in the Filters panel. For<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up the Analytic Model

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!