Professional Documents
Culture Documents
1.4 Mejora en El Uso de Vistas
1.4 Mejora en El Uso de Vistas
HANA Modeling
Best Practices
Mayo, 2018
HANA Views
HANA View
Designer
But…
• Data is moved among engines if B1 semantic layer
a model mix different types of sits on top of
Calculation
views. E.g. Sales CalcView Calculation View
Views
using AnallyticView of AR Invoice (Graphic preferred)
and Credit.
• One Analytic View only allows
measures from one table.
Calculation Engine
Rules:
• Try to Use Calculation View for all Models, precisely graphical calculation
view shall be considered as the first option it can implement both
dimension and cube and more operation such as projection, union , join
etc.
• Avoid to use Attribute View and Analytic View, especially not to mix them
with Calculation View
Benefits:
• No data moved among different engines(Join engine, OLAP engine and
Calc Engine). All Data calculated in Calculation Engine
• No intermediate ETL table. No staging needed.
• Graphical calc view, view can be created as Cube or Dimension. And Cube can
be created in Star join mode.
s of s of
w i ew
n Vie n V
t io t io
u la pe la pe n ”
a l c ty io n” a lcu ty arJo
i
C e ns C St
/
“ D im
Attribute Views
BE
Analytic Views
U
Calculation View
• Compose a dimensional view “C Fact-Tables with
• Combines • Great flexibility for advanced use
with a series of attributes derived Attribute-Views to Star-Schema- • Approach to model custom
from a collection of tables or OLAP Cube-like objects for scenarios like
e.g. Master Data Views multidimensional reporting. - Combined use of Multiple-Fact
Highly re-used and shared in • Stores no aggregates and mass- Tables/Analytics Views
Analytic- and Calculation Views aggregates on the fly - Build Models on Normalized Data
Used to build Hierarchies • Hierarchies are key for multi- - Re-Use and stack views
Hierarchies are key elements in dimensional access (navigation, - Make use of custom scripted views
use with Analytic View for multi- filtering, slicing and aggregation)
dimensional reporting
Calculation Views
Multidimensional scenarios in Calculation Views Attribute View
Usage Scenario
Implement new multidimensional scenarios / new projects
Seek to refactor Attribute-/Analytic View scenarios
Note: As of SAP HANA SPS10 Calculation Views are not yet functional feature equivalent to Attribute- and Analytic Views (i.e. Temporal Join & Fuzzy search).
A G Y
Reduce Columns (use group by)
Calculation Views
Procedures
A B C D G Y
Join on Key or Indexed
Functions Columns
A B C
A B C
Column Store
Filter data as early as possible
¡Gracias! @ThiagomSAP