Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Why doesn't IFERROR work for PATH errors?

There are several posts on dealing with errors that occur when using the PATH function in DAX.  All of the ones I've seen focus on fixing the data before trying to use PATH.  In my case, I'm using th...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Thank you for the information Anonymous .  The problem needs to be solved in two steps.  Step one is to make a Parent Search Id using LOOKUPVALUE, as follows:

     

    ParentSearchValue = 
      LOOKUPVALUE (
        [Id],
        [Id],
        [ParentId]
      )

    The LOOKUPVALUE function handles the failures.  Step two is to proceed with determining the PATH, using ParentSearchValue instead of ParentId.