<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138436#M20665</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 am struggeling with hierarchy function in QV without getting close to my prefered result. I have two tables. One is relating names to IDs the other is relating the IDs with each other. I try to get a hierarchy level tree structure out of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to some helping input on a script solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215249_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2018 13:50:45 GMT</pubDate>
    <dc:creator>stefanmn</dc:creator>
    <dc:date>2018-10-05T13:50:45Z</dc:date>
    <item>
      <title>hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138436#M20665</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 am struggeling with hierarchy function in QV without getting close to my prefered result. I have two tables. One is relating names to IDs the other is relating the IDs with each other. I try to get a hierarchy level tree structure out of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to some helping input on a script solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215249_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138436#M20665</guid>
      <dc:creator>stefanmn</dc:creator>
      <dc:date>2018-10-05T13:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138437#M20666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15387603715235582" jivemacro_uid="_15387603715235582"&gt;
&lt;P&gt;RelTable:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;ParentID, ID&lt;/P&gt;
&lt;P&gt;2001, 3001&lt;/P&gt;
&lt;P&gt;4001, 2001&lt;/P&gt;
&lt;P&gt;4001, 5001&lt;/P&gt;
&lt;P&gt;4001, 6001&lt;/P&gt;
&lt;P&gt;5001, 3001&lt;/P&gt;
&lt;P&gt;, 4001&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(RelTable)&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;ID, Title&lt;/P&gt;
&lt;P&gt;2001, B&lt;/P&gt;
&lt;P&gt;3001, C&lt;/P&gt;
&lt;P&gt;4001, A&lt;/P&gt;
&lt;P&gt;5001, D&lt;/P&gt;
&lt;P&gt;6001, E&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;HTable:&lt;/P&gt;
&lt;P&gt;Hierarchy(ID, ParentID, Title, ParentTitle, Title, PathName, '\', Depth)&lt;/P&gt;
&lt;P&gt;load * resident RelTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="hierarchy.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215261_hierarchy.PNG" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 17:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138437#M20666</guid>
      <dc:creator>nsetty</dc:creator>
      <dc:date>2018-10-05T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138438#M20667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Nagesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your example is working for the simplified data. My data are not containing statements like you introduced in your example (" , 4001"), defining what is the top level of hierarchy. Any idea how to get over that obstacle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/hierarchy/m-p/138438#M20667</guid>
      <dc:creator>stefanmn</dc:creator>
      <dc:date>2018-10-08T15:34:07Z</dc:date>
    </item>
  </channel>
</rss>

