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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

a) In the Output panel of the Logical Join, right-click Restricted Columns, and choose New.<br />

b) Enter a name and description for the restricted column.<br />

c) From the Column dropdown list, select the column for which you want to apply a restriction.<br />

Caution: The column for which you apply a restriction must be defined as measure in the<br />

semantics node otherwise the validation will fail.<br />

d) Choose Add Restriction.<br />

e) In the Parameter field, select the column that you want to create a restriction for, then select the operator<br />

and value.<br />

f) Choose OK.<br />

Note: For a restricted column the aggregation type of the base column is applied.<br />

5. Define Attributes and Measures<br />

a) Select the Semantics node.<br />

b) In the Column panel, select the Local tab page, and change the type as attributes and measures.<br />

Note: The Shared tab page shows the attributes of the used attribute views. While generating the<br />

column views, the joined private attribute name is ignored and the shared attribute name is<br />

considered, therefore the joined private attribute is not shown on the Semantics node.<br />

Remember: If the MultiDimensional Reporting property of the analytic view is set to false, the view<br />

will not be available for reporting purposes. If the value is set to true, an additional column<br />

Aggregation is available to specify the aggregation type for measures.<br />

Note:<br />

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

Setting Up the Analytic Model<br />

You can choose to associate an attribute with another attribute, which describes it in detail. For<br />

example, when reporting via Label Mapping (also known as Description Mapping), you can<br />

associate Region_ID with Region_Text.<br />

Before SP05, you could associate an attribute with another attribute in a model. In the runtime<br />

object an .description column is generated and is shown during data preview. Now,<br />

from SP05 onwards the behavior is as follows:<br />

○ For an attribute (CUSTOMER) you can now maintain label mapping by selecting another<br />

attribute (TEXT) from the same model as "Label Column" in the Semantics node. The result is<br />

"TEXT" displaying as the label column in data preview. Note that the CUSTOMER.description<br />

column is not generated and is not shown in data preview anymore.<br />

○ If you have created an object using the old editor (which supported the old style of description<br />

mapping) and try to open it using the new editor you will see a new column<br />

CUSTOMER.description (as an attribute) which is hidden and disabled because this column<br />

cannot be used in other places such as parameter/variable, calculated column, restricted<br />

column and so on. You cannot maintain properties for this attribute for example, description.<br />

CUSTOMER.description displays in the data preview as long as you do not change it in the<br />

editor. You can change its name. After changing the name you can maintain its properties and<br />

use it like other attributes.<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!