But now SAP have introduced a more powerful and flexible approach to modeling hierarchiesin calculation views using the graphical editor.Since SAP HANA 2.0 SPS03, the graphical editor of the calculation view now provides a newhierarchy function node dedicated togeneratingand providinganalytical operationson thegenerated hierarchies.The hierarchy function node does not generate hierarchies that are to be used in BI reportingfor navigation. For that you still use the semantic node types of hierarchy. The hierarchyfunctions provide plenty of rich metadata that fully describes the hierarchy in a lot of detail,calculating useful information. You can use this rich data to further explore the hierarchy andreturn answers to complex questions such as ‘How many layers of management are therebetween the Head of Department and the team members (hierarchy distance) and if there isonly one level, then how many peers (hierarchy siblings) does the team member have?' ThisUnit 3: Modeling Functions© Copyright. All rights reserved.132
cannot be achieved using the semantic node type hierarchy but this is possible with hierarchyfunctions. Put simply, the hierarchy function generates rich hierarchy metadata that is meantto be exposed and used in your analysis either projected as the final output of a calculationview or as input to various nodes inside a calculation node.There are two main types of hierarchy function that can be configured using this hierarchyfunction node:●Generator — generates the basic hierarchy metadata. This is required in order to performfunctions (below) but the generated metadata can also be used without a navigationfunction if only basic hierarchy information is required such as which level does anattribute belong to, or the parent attribute for each child.●Navigate — performs advanced analytical operations on the generated hierarchy toprovide additional metadata that is useful for deeper analysis, such as which attributes arethe farthest away from the top level parents?You can generate the hierarchy and then use the result as the input to the hierarchy functionin a single calculation view. In other words, in a data flow you would have two hierarchyfunction nodes. The lowest one generating the hierarchy and the next one performing anavigation function on the result.But a better approach would be to separate the generation from the navigate function byputting them in separate calculation views. You do this so that you are able to make changesto the generator without affecting the navigation. Plus it means many calculation views canreuse the same hierarchy generator result and so avoids redundancy as you will not have torepeat the hierarchy generation in each navigation calculation view.
Upload your study docs or become a
Course Hero member to access this document
Upload your study docs or become a
Course Hero member to access this document
End of preview. Want to read all 397 pages?
Upload your study docs or become a
Course Hero member to access this document
Term
Fall
Professor
NoProfessor
Tags
SAP HANA