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.

120<br />

c. To add a measure, from the context menu, choose Add as Measure.<br />

Note: You can choose to associate a measure with the currency or unit of measure. To do so,<br />

select the measure and in the Properties panel select Measure Type.<br />

d. If you want to create calculated attributes, perform the following substeps:<br />

a. In the Output pane, right-click Calculated Attributes.<br />

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

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

d. On the Key tab, define the formula for the calculated attribute as follows:<br />

a. Select a data type for the calculated attribute from the dropdown list.<br />

b. Enter the length and scale.<br />

c. Select the required attributes, operator, and function.<br />

d. To check the validity of the formula, choose Validate.<br />

e. Choose Add.<br />

e. To add a Description to the calculated attribute, write the formula as above.<br />

e. If you want to create calculated measures, do the following:<br />

a. In the Output pane, right-click Calculated Measures.<br />

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

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

b. Select the required Aggregation Type.<br />

c. If you want to hide the measure while previewing data, choose Hidden.<br />

d. Select the required data type.<br />

e. Enter the length and scale.<br />

f. Define the measure by selecting the required measures, operator, and function.<br />

g. Choose Validate.<br />

h. Choose OK.<br />

Note: You can choose to rename the attributes, calculated attributes, measures, and calculated<br />

measures of the view using the Rename button in the Output panel toolbar. However, renaming a<br />

field can impact other objects that reuse the field as the new name is not reflected in the other<br />

objects.<br />

Optional Step: Creating Counters<br />

To obtain the number of distinct values of an attribute, do the following:<br />

1. In the Output pane, right-click Counters.<br />

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

3. Choose Add Attribute.<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!