PATHCONTAINS DAX Function (Parent-child)
Returns TRUE if the specified Item exists within the specified Path.
Syntax
Parameter | Attributes | Description |
---|---|---|
Path |
A string which contains a delimited list of IDs. |
|
Item |
A value to be found in the path. |
Return values
A value of TRUE if item exists in Path; otherwise FALSE.
Remarks
If Item is an integer number it is converted to text and then the function is evaluated. If conversion fails then the function returns an error.
Related articles
Learn more about PATHCONTAINS in the following articles:
-
Parent-Child Hierarchies
DAX does not directly support parent-child hierarchies. To obtain a browsable hierarchy in the data model, you have to naturalize a parent-child hierarchy. DAX provides specific functions to naturalize a parent-child hierarchy using calculated columns. The complete pattern also includes measures that improve the visualization of ragged hierarchies in Power Pivot. » Read more
Related functions
Other related functions are:
Last update: Jan 11, 2021 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
MSDN documentation: https://docs.microsoft.com/en-us/dax/pathcontains-function-dax