<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432137#M161108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have one row per node. I.e. you should have a row also for node number 1 (with a blank or NULL as parent).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should be able to load the hierarchy using&lt;/P&gt;&lt;P&gt;Hierarchy (NodeID, ParentID, NodeName, ParentName, Child, Path, '/', Depth)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parent as ParentID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Child as NodeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Child as NodeName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you've done that, the tree structure is there in a List box (use the field "Path") and the quantity can be summed in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 15:01:19 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-11-01T15:01:19Z</dc:date>
    <item>
      <title>Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432135#M161106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with the Hierarchy load, and would surely need some help. The reference manual is not very extensive in this particular area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is aa&amp;nbsp; example with just a small amount of data, but it shows how my data set will look like. Basically it is a bill of material structure, where I want to first build the hierarchy and then add some features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am primarily focusing on 3 columns of data. First column contains all items that have a child (a structure that should be able to expand). Second column contains the child item and third column contains the quantity of the child that goes into the parent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="344" style="width: 287px; height: 227px; border: #000000 1px solid;" width="285"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Parent&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Child&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;0.5&lt;/TD&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gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, Item 1 consists of item 2, 100, and 101 while in turn, item 2 also is a parent. There are basically no limitations in how many items or how many levels there can be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to see is a tree structure that can be expanded for each parent, and also the possibility to select a child to see which parents it belongs to. In addition, I would also like to see the quantity within the tree structure (if possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a final tweak, it would be awesome if I could load a quantity that should be produced, and get the total required amount of all items in the hiearchy. As example; I load a production quantity of 1000 for item 1, meaning it will require 1000 units of item 2, while that would require 2000 units of item number 3 and so on and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this would be very much appreciated, even if it is not the entire solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached example is just in its beginning. First hick-up is that I cannot get all parents to load in level 1 unless I add them as childs with no parent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 09:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432135#M161106</guid>
      <dc:creator />
      <dc:date>2012-10-19T09:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432136#M161107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to bump this once, still hoping to get a tip or suggestion of how to start &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 13:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432136#M161107</guid>
      <dc:creator />
      <dc:date>2012-11-01T13:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432137#M161108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have one row per node. I.e. you should have a row also for node number 1 (with a blank or NULL as parent).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should be able to load the hierarchy using&lt;/P&gt;&lt;P&gt;Hierarchy (NodeID, ParentID, NodeName, ParentName, Child, Path, '/', Depth)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parent as ParentID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Child as NodeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Child as NodeName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you've done that, the tree structure is there in a List box (use the field "Path") and the quantity can be summed in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy/m-p/432137#M161108</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-11-01T15:01:19Z</dc:date>
    </item>
  </channel>
</rss>

