DAX Parent & Child - PATHLENGTH function


Advertisements

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

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements