HierarchyHasOrphanedLeaves returns 1 if a hierarchy in a dimension has an orphaned element or returns 0 if there is no orphaned element in that hierarchy.
In the video, HierarchyHasOrphanedLeaves will be used to see if there are any orphaned elements in the Employee Hierarchies dimension.
TurboIntegrator
Version 11 and 12
HierarchyHasOrphanedLeaves(DimensionName, HierarchyName)