<?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 Re: creating a hierarchy structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581580#M216020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should definitely use a Hierarchy prefix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchy (UserID, ManagerID, UserName, ManagerName, UserName, Path, '/', Depth)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; User as UserID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Manager as ManagerID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; User as UserName&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[User,Manager&lt;/P&gt;&lt;P&gt;Satish,Murali&lt;/P&gt;&lt;P&gt;Murali,Jayesh&lt;/P&gt;&lt;P&gt;Abdul,Jayesh&lt;/P&gt;&lt;P&gt;Jayesh,Venkat&lt;/P&gt;&lt;P&gt;Aarti,Venkat&lt;/P&gt;&lt;P&gt;Venkat,];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the created fields both for a pivot table and a tree-view list box. See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Feb 2014 17:33:04 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-02-16T17:33:04Z</dc:date>
    <item>
      <title>creating a hierarchy structure</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581577#M216017</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 trying to create a hierarchy structure. My sample data is shown in the below table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;User&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Manager&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Satish&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Murali&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Murali&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Jayesh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Abdul&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Jayesh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Jayesh&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Venkat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Aarti&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Venkat&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating a hierarchy&amp;nbsp; using pivot table, but the structure created is incorrect as the manager name appears in user column.&lt;/P&gt;&lt;P&gt;The expected structure I am looking for is as below with the +/- symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Venkat&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Aarti&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;&lt;/TD&gt;&lt;TD class="xl65"&gt;Jayesh&lt;/TD&gt;&lt;TD class="xl65"&gt;Abdul&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl65"&gt;Murali&lt;/TD&gt;&lt;TD class="xl65"&gt;Satish&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581577#M216017</guid>
      <dc:creator>saurabh_karlewar</dc:creator>
      <dc:date>2014-02-13T12:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hierarchy structure</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581578#M216018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot quite think it out, but I think you need a LOOP as you will have to go throu all the records several times:&lt;/P&gt;&lt;P&gt;- look for a name (that is not present in the "User" column, so this person does not have a higher manager)&lt;/P&gt;&lt;P&gt;=&amp;gt; Take that name and read all the records where it is in the "Manager" column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; Read the name(s) in the "User" column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; Look for this name in the "Manager" column&lt;/P&gt;&lt;P&gt;(LOOP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581578#M216018</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-02-13T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hierarchy structure</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581579#M216019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not use a hierarchy? check it out in the manual or :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5334"&gt;Hierarchies&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581579#M216019</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-13T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: creating a hierarchy structure</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581580#M216020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should definitely use a Hierarchy prefix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchy (UserID, ManagerID, UserName, ManagerName, UserName, Path, '/', Depth)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; User as UserID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Manager as ManagerID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; User as UserName&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[User,Manager&lt;/P&gt;&lt;P&gt;Satish,Murali&lt;/P&gt;&lt;P&gt;Murali,Jayesh&lt;/P&gt;&lt;P&gt;Abdul,Jayesh&lt;/P&gt;&lt;P&gt;Jayesh,Venkat&lt;/P&gt;&lt;P&gt;Aarti,Venkat&lt;/P&gt;&lt;P&gt;Venkat,];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the created fields both for a pivot table and a tree-view list box. See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 17:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-hierarchy-structure/m-p/581580#M216020</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-16T17:33:04Z</dc:date>
    </item>
  </channel>
</rss>

