<?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 Hierarchy Problem - recursivity between two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-Problem-recursivity-between-two-tables/m-p/327773#M708578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a structure about Procuct Composition, with the following tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;/P&gt;&lt;P&gt;ID_Product, Info_Product, Type, Level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw_Material_Composition:&lt;/P&gt;&lt;P&gt;ID_Product, ID_Raw_Material, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubProduct_Composition:&lt;/P&gt;&lt;P&gt;ID_Product, ID_SubProduct, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relationships between Product and the other tables are 1 x N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, the ID_SubProduct should reference the ID_Product. A Product can be composed of a lot of raw materials and a lot of other products, and it can compose another products as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot rename this field to ID_Product, because this will cause a cyclic reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make this relationship ? Can Hierarchy resolve my problem ? How can I do that ?&lt;/P&gt;&lt;P&gt;Any help is much appreciated !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 19:19:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-06T19:19:00Z</dc:date>
    <item>
      <title>Hierarchy Problem - recursivity between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Problem-recursivity-between-two-tables/m-p/327773#M708578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a structure about Procuct Composition, with the following tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;/P&gt;&lt;P&gt;ID_Product, Info_Product, Type, Level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw_Material_Composition:&lt;/P&gt;&lt;P&gt;ID_Product, ID_Raw_Material, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubProduct_Composition:&lt;/P&gt;&lt;P&gt;ID_Product, ID_SubProduct, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relationships between Product and the other tables are 1 x N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, the ID_SubProduct should reference the ID_Product. A Product can be composed of a lot of raw materials and a lot of other products, and it can compose another products as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot rename this field to ID_Product, because this will cause a cyclic reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make this relationship ? Can Hierarchy resolve my problem ? How can I do that ?&lt;/P&gt;&lt;P&gt;Any help is much appreciated !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Problem-recursivity-between-two-tables/m-p/327773#M708578</guid>
      <dc:creator />
      <dc:date>2011-09-06T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Problem - recursivity between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Problem-recursivity-between-two-tables/m-p/327774#M708579</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 think Hierarchy could solve your problem - if you rename the ID_SubProduct as ID_Product and the ID_Product as something like 'Parent Product ID' in the Hierarchy statement ...see attached example with dummy data added as a possible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some kind of lookup to add the Sub Product Name to the Sub_Product_Composition might also make things simpler in the Hierarchy syntax (to match the example in the reference manual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Problem-recursivity-between-two-tables/m-p/327774#M708579</guid>
      <dc:creator>hdonald</dc:creator>
      <dc:date>2011-09-09T09:41:33Z</dc:date>
    </item>
  </channel>
</rss>

