Forum Discussion

sanjanarama's avatar
sanjanarama
Icon for Resolver I rankResolver I
4 years ago
Solved

matrix display for heirarchy

I'm trying to display the heirarchy way to represent data, i have used path method , but im unable to display in visual

IDhirachynameparent IDglobal name
100Globalanullnull
101Globalbnullnull
102intermediatec101b
103countryd102c
104countrye105f
105intermediatef100a
106intermediateg105f



pathHeir = PATH(Sheet2[ID],Sheet2[parent ID])

want to display global ID and underneeth its heirarchy numbers.
  • JirkaZ's avatar
    JirkaZ
    4 years ago

    In the matrix visual formatting pane go to Row headers and turn off stepped layout. That should give you the desired view.

9 Replies

  • JirkaZ's avatar
    JirkaZ
    Icon for Solution Specialist rankSolution Specialist

    You should just be able to put both columns (ID and Parent ID) into the same row field of the matrix visual. The hierarchy should be created automatically.

    • sanjanarama's avatar
      sanjanarama
      Icon for Resolver I rankResolver I

      JirkaZ 
      I'm not getting desired result

       




      for example if i expand the matrix , it should look like this

      100Globala  
       105Intermediatef 
        106intermediateg
      • JirkaZ's avatar
        JirkaZ
        Icon for Solution Specialist rankSolution Specialist

        In that case create a separate "Level" columns for Level 1, Level 2, Level 3 using the output of the PATH function. For Level 1 you should use PATHITEM(yourpath, 1) etc.
        Then you'll have to create a hirearchy in your table (right click on Level 1 and select Create Hierarchy. Then add L2 and L3 to the same hierarchy.

         

        Finally add this hierarchy to your matrix rows area.