HierarchyContainsAllLeaves validates if a hierarchy contains all leaf elements in the dimension. If all are leaf elements, the function returns 1 (True), and if missing one or more leaf elements, it returns 0 (false).
In the video, HierarchyContainsAllLeaves will be used to validate Western Europe hierarchy from the Sales Region dimension and determine if it has all leaf elements in the dimension or not.
TurboIntegrator
Version 11 and 12
HierarchyContainsAllLeaves (DimName, HierName)