<?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 BOM Explosion using Hierarchy &amp; HierarchyBelongsTo in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230815#M82621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Same problem, still no solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone solve this yet? I'm trying to combine a Hierarchy with another HierarchyBelongsTo on the same source. The solution seems so close and yet so far away... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 14:38:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-03T14:38:25Z</dc:date>
    <item>
      <title>BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230811#M82617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to perform a bill of materials explosion in QV using Hierarchy &amp;amp; HierarchyBelongsTo. My data looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192pt; border-collapse: collapse;" width="256"&gt;&lt;COLGROUP&gt;&lt;COL span="4" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 48pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Parent&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Child&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Type&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;E&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;F&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;C&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;C&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;H&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal it to get a flat table depicting the total BOM structure for several hundred thousand parts (perhaps millions of parts). The resulting table would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 240pt; border-collapse: collapse;" width="320"&gt;&lt;COLGROUP&gt;&lt;COL span="5" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 48pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Parent&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Child&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Type&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Qty&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #ece9d8;" width="64"&gt;Level&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;C&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;8&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;E&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;F&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;C&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;H&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Make&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;G&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;H&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;Buy&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchy seems to get me close, but, I'm missing top level parent ID and am not sure how to calculate the expanded quantities. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230811#M82617</guid>
      <dc:creator />
      <dc:date>2010-07-22T14:13:17Z</dc:date>
    </item>
    <item>
      <title>BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230812#M82618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one have any ideas???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 17:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230812#M82618</guid>
      <dc:creator />
      <dc:date>2010-08-02T17:35:05Z</dc:date>
    </item>
    <item>
      <title>BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230813#M82619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls Try Attached File&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 14:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230813#M82619</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-10-06T14:53:15Z</dc:date>
    </item>
    <item>
      <title>BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230814#M82620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;anyone solved this problem....&lt;/P&gt;&lt;P&gt;could anyone tell me how to solve this issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 10:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230814#M82620</guid>
      <dc:creator />
      <dc:date>2011-03-02T10:00:37Z</dc:date>
    </item>
    <item>
      <title>BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230815#M82621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Same problem, still no solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone solve this yet? I'm trying to combine a Hierarchy with another HierarchyBelongsTo on the same source. The solution seems so close and yet so far away... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 14:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230815#M82621</guid>
      <dc:creator />
      <dc:date>2012-02-03T14:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230816#M82622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;Two points:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-list: Ignore; color: #333333; font-size: 10pt; font-family: &amp;amp;quot; Arial&amp;amp;quot; mso-fareast-font-family;"&gt;1)&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;You need to have this in two tables, since you can have several transactions on the same node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-list: Ignore; color: #333333; font-size: 10pt; font-family: &amp;amp;quot; Arial&amp;amp;quot; mso-fareast-font-family;"&gt;2)&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;You need to define a root node – i.e. a node with NULL as parent. I have added this to the source table, but this can be done in the script instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230816#M82622</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-03T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230817#M82623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thx for replying. &lt;/P&gt;&lt;P&gt;To meet my reporting requirements i need a BOM bridge table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;child, ancestor, Qty&lt;/P&gt;&lt;P&gt;A, A, 1&lt;/P&gt;&lt;P&gt;A, B, 2&lt;/P&gt;&lt;P&gt;A, C, 4&lt;/P&gt;&lt;P&gt;A, D, 8&lt;/P&gt;&lt;P&gt;B, B, 1&lt;/P&gt;&lt;P&gt;B, C, 2&lt;/P&gt;&lt;P&gt;B, D, 4&lt;/P&gt;&lt;P&gt;C, C, 1&lt;/P&gt;&lt;P&gt;C, D, 2&lt;/P&gt;&lt;P&gt;D, D, 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the report, child will relate to an article table and ancestor will relate to an invoice line table. So when i select A, i want to calculate the total sales qty amount even for invoice lines that where booked on B, C or D.&lt;/P&gt;&lt;P&gt;I don't think that the example you made solves this problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230817#M82623</guid>
      <dc:creator />
      <dc:date>2012-02-03T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230818#M82624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;I am fairly sure that the pivot table calculates exactly what you want. On the group for ‘A’, Qty’s for &lt;STRONG style="mso-bidi-font-weight: normal; text-decoration: underline;"&gt;all&lt;/STRONG&gt; its sub-nodes will be summed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;If you instead use HierarchyBelongsTo, you will get a bridge table which will give you an Ancestor list box, which could be useful, but it is not necessary for the summation. See new attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;"&gt;Further, if you put both the Ancestor and the Qty in the same table, you will double-count the sold units: the same unit will appear on several lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230818#M82624</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-03T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230819#M82625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ... but if you really want the bridge table with quantities in it, then just take the HierarchyBelongsTo table in my example and join it with the original transaction table. (Don't load Parent in the transaction table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230819#M82625</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-03T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230820#M82626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also did this myself, but how do i calculate how many times G is in A (from your example it should be 8)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, if i make a table graph with NodeID and AncestorID in it as dimensions and sum(Qty) as expression, the numbers don't give what i need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 16:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230820#M82626</guid>
      <dc:creator />
      <dc:date>2012-02-03T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230821#M82627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand where you think it is wrong. The pivot table in my example shows the same numbers as in the original data - which I assume is what it should. E.g. 'A' has 10 units and 'B' has 8. Do you have an example of where the result is wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 16:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230821#M82627</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-02-03T16:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230822#M82628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK i will try to test your example by adding some fake invoice lines to the data model. But only after the weekend, so thanks for helping me so far and have a good weekend yourself!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 16:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230822#M82628</guid>
      <dc:creator />
      <dc:date>2012-02-03T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Explosion using Hierarchy &amp; HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230823#M82629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are still active Henric...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to insert just a single root node or one for every distinct parent? How would the script look to do either?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 17:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/BOM-Explosion-using-Hierarchy-HierarchyBelongsTo/m-p/230823#M82629</guid>
      <dc:creator />
      <dc:date>2017-05-03T17:13:49Z</dc:date>
    </item>
  </channel>
</rss>

