<?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 Table refering to itself in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719965#M258567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be very great if some one could tell me what's the best approach to refer a table to itself in data modeling to show some hierarchies in the user interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually,I have a table called Employee and it is referencing to itself using EmployeeBusinessID and ParentEmployeeBusinessID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 14:47:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-20T14:47:33Z</dc:date>
    <item>
      <title>Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719965#M258567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be very great if some one could tell me what's the best approach to refer a table to itself in data modeling to show some hierarchies in the user interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually,I have a table called Employee and it is referencing to itself using EmployeeBusinessID and ParentEmployeeBusinessID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719965#M258567</guid>
      <dc:creator />
      <dc:date>2014-06-20T14:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719966#M258568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Hierarcy in the table load while load the table might will help you for creating the hierarchy see example for that from the help same you can use in your table load but change the field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;Hierarchy(NodeID, ParentID, NodeName) LOAD&lt;/P&gt;&lt;P class="Code"&gt;NodeID, &lt;/P&gt;&lt;P class="Code"&gt;ParentID, &lt;/P&gt;&lt;P class="Code"&gt;NodeName,&lt;/P&gt;&lt;P class="Code"&gt;Attribute&lt;/P&gt;&lt;P class="Code"&gt;FROM data.xls (biff, embedded labels, table is [Sheet1$];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719966#M258568</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-20T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719967#M258569</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;Look at resident load and preceding load feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below posts.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/04/preceding-load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/522105"&gt;Re: Resident Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719967#M258569</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-20T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719968#M258570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your table contains a hierarchy (father-son) you can use hierarchy functions (take a look in the guide),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise split the list of data ointo 3 tables, repeating in each only the fields that link tables toghether&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 14:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719968#M258570</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-20T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719969#M258571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can use this function directly while fetching data from ms access ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can't I use a simple inner join to achieve hierarchy instead of any other functions (The same sql self join to refer a table to itself)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 15:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719969#M258571</guid>
      <dc:creator />
      <dc:date>2014-06-20T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719970#M258572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes and there is another way of doing this as you say inner join the tables with the help of any resident table will also help you to get desire table by the help of joins and resident table. Or you can do directly in one of the table also if the table fields has proper data by referring to the fields for this see the example load and create another field with concatenate them and after loading this table on the front end plot the field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hierarchy. And the properties select show as tree view and with separator | .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD DepId, Manager, EmployeeBusinessID, ParentEmployeeBusinessID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DepId &amp;amp; '|'&amp;amp; Manager &amp;amp; '|'&amp;amp; EmployeeBusinessID &amp;amp; '|'&amp;amp; ParentEmployeeBusinessID AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hierarchy&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;DepId, Manager, EmployeeBusinessID, ParentEmployeeBusinessID&lt;/P&gt;&lt;P&gt;AXL,M1,EPM1,A2&lt;/P&gt;&lt;P&gt;axl,M1,EMP2,S3&lt;/P&gt;&lt;P&gt;CWV,M2,EMP3,A4&lt;/P&gt;&lt;P&gt;CWV,M2,EMP4,D5&lt;/P&gt;&lt;P&gt;PUR,M3,EMP5,G6&lt;/P&gt;&lt;P&gt;PUR,M3,EMP6,F3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you get this type of field :-&lt;/P&gt;&lt;P&gt;&lt;IMG alt="HierarchyField.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60927_HierarchyField.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 15:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719970#M258572</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-20T15:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table refering to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719971#M258573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went with Hierarchy approach and it is working great &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;Thank you so much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 15:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-refering-to-itself/m-p/719971#M258573</guid>
      <dc:creator />
      <dc:date>2014-06-20T15:34:31Z</dc:date>
    </item>
  </channel>
</rss>

