Forum Discussion

nick-evans's avatar
nick-evans
Icon for Advocate I rankAdvocate I
8 years ago
Solved

How to build a tree/hierarchy based on IDs?

I have a site that has a structured hierarchy: Top Space - Child Space - Child Space - Child Space - Items   The depth of each space varies, so there can be any random number of subspaces/children...
  • erik_tarnvik's avatar
    erik_tarnvik
    8 years ago

    Because, given your original table Table1, all you would have to do would be 

    PATH(Table1[SpaceName], Table1[ParentName])

    You don't need to use the ID's, it will work perfectly fine with the textual columns as long as they are distinct.