<?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 Product tree hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181126#M47264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check it below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 08:39:13 GMT</pubDate>
    <dc:creator>kaushalview</dc:creator>
    <dc:date>2011-01-24T08:39:13Z</dc:date>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181124#M47262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;I have an issue with product tree hierarchy.&lt;/P&gt;&lt;P&gt;(Important: my customer has QlikView version 8.2, and therefore the hierarchy and hierarchybelongsto cannot be a part of the solution because it is not supported yet in this version)&lt;/P&gt;&lt;P&gt;I have a tree table of products and components, in which some products can be components of other products:&lt;/P&gt;&lt;P&gt;Product Component Date&lt;/P&gt;&lt;P&gt;X 111 ...&lt;/P&gt;&lt;P&gt;X 222 ...&lt;/P&gt;&lt;P&gt;Y 333 ...&lt;/P&gt;&lt;P&gt;Y X ...&lt;/P&gt;&lt;P&gt;Z 444 ...&lt;/P&gt;&lt;P&gt;Z Y ...&lt;/P&gt;&lt;P&gt;Z X ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another table is the cost price of the leaves (components that never appear as products):&lt;/P&gt;&lt;P&gt;Component Price&lt;/P&gt;&lt;P&gt;111 1$&lt;/P&gt;&lt;P&gt;222 2$&lt;/P&gt;&lt;P&gt;333 3$&lt;/P&gt;&lt;P&gt;444 4$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to sum up the cost of the leaves, then the cost of the products.&lt;/P&gt;&lt;P&gt;X = 111+222=3$&lt;/P&gt;&lt;P&gt;Y=X+333=3$+3$=6$&lt;/P&gt;&lt;P&gt;Z=Y+X+444=6$+3$+4$=13$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it (without using hierarchy fucntion)? As you can see in the example, X must be calculated before Y, and the Y (and X) before Z.&lt;/P&gt;&lt;P&gt;(P.S. I have to add later some operations to each product and pay attention to last cost price date, but I can manage that)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Montal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 07:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181124#M47262</guid>
      <dc:creator />
      <dc:date>2011-01-24T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181125#M47263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have attached one hierarchy example without using hierarchy function.&lt;/P&gt;&lt;P&gt;cahck it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kaushal Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 08:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181125#M47263</guid>
      <dc:creator>kaushalview</dc:creator>
      <dc:date>2011-01-24T08:35:51Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181126#M47264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check it below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 08:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181126#M47264</guid>
      <dc:creator>kaushalview</dc:creator>
      <dc:date>2011-01-24T08:39:13Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181127#M47265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushal.&lt;/P&gt;&lt;P&gt;I'm familiar with this example, but it's not helping me because I have a complicated parent-child situation here... Thanks anyway!&lt;/P&gt;&lt;P&gt;Any other suggestions? Is the only option through SQL and not through QV script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 08:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181127#M47265</guid>
      <dc:creator />
      <dc:date>2011-01-24T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181128#M47266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have any one of you created tree hierarchies before QV 9.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 13:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181128#M47266</guid>
      <dc:creator />
      <dc:date>2011-01-24T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181129#M47267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Montal,&lt;/P&gt;&lt;P&gt;The only way I can see getting the correct results is to add X and Y as components in the price table.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181129#M47267</guid>
      <dc:creator />
      <dc:date>2011-01-24T19:42:39Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181130#M47268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;The problem is how to know that X should be calculated before Y (and added to the costing table)..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 11:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181130#M47268</guid>
      <dc:creator />
      <dc:date>2011-01-25T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Product tree hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181131#M47269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another way of explaining the solution. You would add X and Y to the component table as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product Component Date&lt;/P&gt;&lt;P&gt;X 111 ...&lt;/P&gt;&lt;P&gt;X 222 ...&lt;/P&gt;&lt;P&gt;Y 333 ...&lt;/P&gt;&lt;P&gt;Y X ...&lt;/P&gt;&lt;P&gt;Z 444 ...&lt;/P&gt;&lt;P&gt;Z Y ...&lt;/P&gt;&lt;P&gt;Z X ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another table is the cost price of the leaves (components that never appear as products):&lt;/P&gt;&lt;P&gt;Component Price&lt;/P&gt;&lt;P&gt;111 1$&lt;/P&gt;&lt;P&gt;222 2$&lt;/P&gt;&lt;P&gt;333 3$&lt;/P&gt;&lt;P&gt;444 4$&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X 111 + 222 = 3$ (this can be a calculation or static value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Y 333 + X = 6$ (this can be a calculation or static value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now when you join the Product table with the Component table the calculation or values will be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 18:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-tree-hierarchy/m-p/181131#M47269</guid>
      <dc:creator />
      <dc:date>2011-01-25T18:15:34Z</dc:date>
    </item>
  </channel>
</rss>

