PATHITEM

PATHITEM Returns the item at the specified position from a string resulting from evaluation of a PATH function. Positions are counted from left to right.


Syntax

PATHITEM(path, position[, type])

Parameters

path – A text string in the form of the results of a PATH function.

position – An integer expression with the position of the item to be returned.

type – (Optional)An enumeration that defines the data type of the result:

TEXT 0 – Results are returned with the data type of text. (default)
INTEGER 1 – Results are returned with the data type of integer.

Return Value

The identifier returned by the PATH function at the specified position in the list of identifiers. Items returned by the PATH function are ordered by most distant to current.


Reference Data

https://docs.microsoft.com/en-us/dax/dax-function-reference

DAX Functions / Parent and Child Functions / PATHITEM