<?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 BOM in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848979#M70169</link>
    <description>&lt;P&gt;Right now I am loading the table beforehand, then doing the HierarchyBelongsTo and dropping the original table. So now it seems like I only have to concatenate each root item once with itself as the parent. I think this should work, thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;! However if anyone has a different approach, please share them.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 15:11:05 GMT</pubDate>
    <dc:creator>noahfels</dc:creator>
    <dc:date>2021-10-19T15:11:05Z</dc:date>
    <item>
      <title>Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848574#M70133</link>
      <description>&lt;P&gt;I have a BOM which look like this:&lt;/P&gt;
&lt;P&gt;BOM:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Item_Parent, Item_Child, Amount&lt;BR /&gt;29M20, Z16, 1&lt;BR /&gt;29M20, Z17, 1&lt;BR /&gt;29M20, L00, 1&lt;BR /&gt;L00, R00, 2&lt;BR /&gt;R00, K10, 1&lt;BR /&gt;R00, K20, 1&lt;BR /&gt;R00, K30, 1&lt;BR /&gt;R00, K40, 1&lt;BR /&gt;20M20, L00, 1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;My goal is to calculate the quantity needed for each item below the one I select.&lt;/P&gt;
&lt;P&gt;E.g. if I select 29M20 then I want to know that I need 1xZ16, 1xZ17, 1xL00, 2xR00, 2xK10, 2xK20, 2xK30, 2xK40.&lt;/P&gt;
&lt;P&gt;I have tried using hierarchy loads but I don't get the desired result, perhaps I am using it wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 07:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848574#M70133</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848592#M70134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153277"&gt;@noahfels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the below Expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(concat(Amount&amp;amp;'X'&amp;amp; Item_Child,',') ,Item_Parent)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 07:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848592#M70134</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-10-19T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848599#M70135</link>
      <description>&lt;P&gt;In that case I only get the amount of the direct children, but I need to get the amounts and the link to all children_items below a parent_item.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 07:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848599#M70135</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T07:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848618#M70136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153277"&gt;@noahfels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;My bad, I was not able to get the requirement correct in the initial reply.&lt;/P&gt;
&lt;P&gt;Please create hierarchy like below. Hope this will solves your purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_0-1634630693057.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64704i876112AB9D4C9D1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_0-1634630693057.png" alt="abhijitnalekar_0-1634630693057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 08:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848618#M70136</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-10-19T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848635#M70138</link>
      <description>&lt;P&gt;Thanks for your reply, but this still doesn't solve the issue. If I select 29M20 now, I still do not get any information that this item includes 2 x R00 and therefore 2 x K10, K20, K30 and K40.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 08:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848635#M70138</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848637#M70139</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153277"&gt;@noahfels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am afraid that I am not able to understand the requirement properly.&lt;/P&gt;
&lt;P&gt;As per the inline-table, you have given the parent&amp;nbsp;&lt;SPAN&gt;29M20&amp;nbsp;have&amp;nbsp;1XL00,1XZ16,1XZ17. Please correct me if I am wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please share any diagram or table how you want the output&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 08:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848637#M70139</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-10-19T08:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848647#M70140</link>
      <description>&lt;P&gt;Correct&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49799"&gt;@abhijitnalekar&lt;/a&gt;&amp;nbsp;, but since one 29M20 includes one L00, therefore it also includes all child_items of L00 (i.e. 2 x R00). And R00 itself has four child_items (i.e. K10, K20, K30, K40). Therefore 29M20 includes 2 x R00 and 2 x (K10, K20, K30, K40). It is a bill of materials structur which is build like a hierarchy (tree). I think some form of a hierarchy load is needed.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 08:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848647#M70140</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T08:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848877#M70153</link>
      <description>&lt;P&gt;I think, your expected output is wrong.&lt;/P&gt;
&lt;P&gt;For 29M20, you should get -&amp;nbsp;&lt;SPAN&gt;1xZ16, 1xZ17, 1xL00, 2xR00, 1xK10, 1xK20, 1xK30, 1xK40.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try this,&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BOM:
HierarchyBelongsTo(Item_Child, Item_Parent, Amount, ParentName, Node, Depth)
LOAD *, Item_Child As NodeName;
Load * Inline [
Item_Parent, Item_Child, Amount
Root, 29M20
29M20, Z16, 1
29M20, Z17, 1
29M20, L00, 1
L00, R00, 2
R00, K10, 1
R00, K20, 1
R00, K30, 1
R00, K40, 1
20M20, L00, 1
Root, 20M20
];&lt;/LI-CODE&gt;
&lt;P&gt;Expressions:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Concat(Amount&amp;amp;'x'&amp;amp;NodeName, ', ')
=Sum(Amount)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV14.PNG" style="width: 642px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64743i37ADD1D9AB62A63E/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV14.PNG" alt="commQV14.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848877#M70153</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-10-19T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848956#M70163</link>
      <description>&lt;P&gt;This seems to be kind of what I am looking for, but I would have to concatenate an entry for each root item once, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 14:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848956#M70163</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848967#M70167</link>
      <description>&lt;P&gt;Yes. But the original Table wont be there after&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;HierarchyBelongsTo&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, you have to use Depth &amp;amp; Node combination to identify the Root.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848967#M70167</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-10-19T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy BOM</title>
      <link>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848979#M70169</link>
      <description>&lt;P&gt;Right now I am loading the table beforehand, then doing the HierarchyBelongsTo and dropping the original table. So now it seems like I only have to concatenate each root item once with itself as the parent. I think this should work, thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;! However if anyone has a different approach, please share them.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hierarchy-BOM/m-p/1848979#M70169</guid>
      <dc:creator>noahfels</dc:creator>
      <dc:date>2021-10-19T15:11:05Z</dc:date>
    </item>
  </channel>
</rss>

