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.

By contrast, if you create an analytic view for one specific use case in which you want a particular attribute to<br />

behave differently than it does in the attribute view to which it belongs, you can define it as a private attribute.<br />

Measures<br />

Measures are simple measurable analytical elements. Measures are derived from analytic and calculation views.<br />

● Simple Measures<br />

A simple measure is a measurable analytical element that is derived from the data foundation.<br />

For example, PROFIT.<br />

● Calculated Measure<br />

Calculated measures are defined based on a combination of data from OLAP cubes, arithmetic operators,<br />

constants, and functions.<br />

For example, calculated measures can be used to calculate the total sales of a product across five regions, or<br />

to assign a constant value to a measure for a calculation.<br />

● Restricted Measure<br />

Restricted measures are used to filter the value based on the user-defined rules for the attribute values.<br />

● Counters<br />

Counters add a new measure to the calculation view definition to count the recurrence of an attribute. For<br />

example, to count how many times Product appears.<br />

Note:<br />

You can choose to hide the attributes and measures that are not required for client consumption. For<br />

example, for a complex calculation that is derived from a series of computations, you can hide the levels of<br />

computations that are not required for reporting purposes.<br />

6.2.2 Attribute Views<br />

Attribute views are used to model an entity based on the relationships between attribute data contained in<br />

multiple source tables.<br />

For example, customer ID is the attribute data that describes measures (that is, who purchased a product).<br />

However, customer ID has much more depth to it when joined with other attribute data that further describes the<br />

customer (customer address, customer relationship, customer status, customer hierarchy, and so on).<br />

You create an attribute view to locate the attribute data and to define the relationships between the various tables<br />

to model how customer attribute data, for example, will be used to address business needs.<br />

You can model the following elements within an attribute view:<br />

● Columns<br />

● Calculated Columns<br />

104<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!