DAX Parent & Child - PATHLENGTH function



Description

Returns the number of parents to the specified item in a given PATH result, including self.

Syntax

PATHLENGTH (<path>) 

Parameters

Sr.No. Parameter & Description
1

path

A text expression resulting from evaluation of a PATH function.

Return Value

The number of items that are parents to the specified item in a given PATH result, including the specified item.

Example

= PATHLENGTH(PATH(Employee[EmployeeID], Employee[ManagerEmployeeID])) 
dax_functions_parent_child
Advertisements