In Part 1 we did ISPARENT, in part 2 ISANCHESTOR.
ISCHILD
The ISCHILD function enables you to find the children of a member of a parent-child hierarchy, that is, all the members that are one hierarchical level below the specified member.
Presentation Layer Syntax:
ISCHILD(pc_presentation_hierarchy, member_identifier)
Example “hardcoded”:
Case When ISCHILD("Sales Person"."H5 Sales Rep",'24' ) Then 'YES' else 'NO' END
Example “Session Variable”:
Case When ISCHILD("Sales Person"."H5 Sales Rep",VALUEOF(NQ_SESSION.HierarchyUser) ) Then 'YES' else 'NO' END
Business Model and Mapping Layer Syntax:
ISCHILD(logical_dimension, member_identifier)
Example “hardcoded” :
Case When ISCHILD("13 - Hierarchy levels"."H5 Sales Rep",'24' ) Then 'YES' else 'NO' END
Example “SessionVariable”
FILTER("13 - Hierarchy levels"."F0 Sales Base Measures"."1- Revenue" USING ISCHILD("13 - Hierarchy levels"."H5 Sales Rep", VALUEOF(NQ_SESSION."HierarchyUser")))
Till Next Time
No comments:
Post a Comment