<?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: Hierarchy Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772078#M471788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Is it possible with this table??:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; ID, Name, ID2&lt;BR /&gt; A001, Tom, A012&lt;BR /&gt; A012, Dave, A025 &lt;BR /&gt; A025, Karl, A035&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 13:36:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-23T13:36:36Z</dc:date>
    <item>
      <title>Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772076#M471786</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;how i can build up an hierarchy load of this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; ID, Name&lt;BR /&gt; A001, Tom&lt;BR /&gt; B012, Dave&lt;BR /&gt; C043, Karl&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution must be ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A001&lt;/P&gt;&lt;P&gt;&amp;nbsp; |_ B012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |_C043&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Need help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772076#M471786</guid>
      <dc:creator />
      <dc:date>2015-02-23T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772077#M471787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Until and Unless you don't have parent child relationship between field values, you can't create hierarchy !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772077#M471787</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-23T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772078#M471788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Is it possible with this table??:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; ID, Name, ID2&lt;BR /&gt; A001, Tom, A012&lt;BR /&gt; A012, Dave, A025 &lt;BR /&gt; A025, Karl, A035&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772078#M471788</guid>
      <dc:creator />
      <dc:date>2015-02-23T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772079#M471789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's covered pretty well in the QV Designer help, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;The &lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;hierarchy&lt;/SPAN&gt; prefix is used to transform a &lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;hierarchy&lt;/SPAN&gt; table to a table that is useful in a QlikView data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;It can be put in front of a &lt;SPAN class="Bold"&gt;Load&lt;/SPAN&gt; or a &lt;SPAN class="Bold"&gt;Select&lt;/SPAN&gt; statement and will use the result of the loading statement as input for a table transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;The input table must be an adjacent nodes table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px; background-color: transparent;"&gt;Adjacent nodes tables are tables where each record corresponds to a node and has a field that contains a reference to the parent node. In such a table the node is stored on one record only but the node can still have any number of children. The table may of course contain additional fields describing attributes for the nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px; background-color: transparent;"&gt;The prefix creates an expanded nodes table, which normally has the same number of records as the input table, but in addition each level in the &lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;hierarchy&lt;/SPAN&gt; is stored in a separate field. The levels in an expanded nodes table can easily be used e.g. in a pivot table and the path field can be used in a tree structure. More details about adjacent nodes tables and expanded nodes tables can be found in the section &lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;Hierarchies&lt;/SPAN&gt; the QlikView Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;Usually the input table has exactly one record per node and in such a case the output table will contain the same number of records. However, sometimes there are nodes with multiple parents, i.e. one node is represented by several records in the input table. If so, the output table may have more records than the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;All nodes with a parent id not found in the &lt;SPAN class="Bold"&gt;nodeid&lt;/SPAN&gt; column (including nodes with missing parent id) will be considered as roots. Also, only nodes with a connection to a root node - direct or indirect - will be loaded, thus avoiding circular references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;Additional fields containing the name of the parent node, the path of the node and the depth of the node can be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;The syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;Hierarchy&lt;/SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;NodeID, ParentID, NodeName, [ParentName], [PathSource], [PathName], [PathDelimiter], [Depth]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;(loadstatement | selectstatement)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;NodeID&lt;/SPAN&gt; is the name of the field that contains the node id. This field must exist in the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;ParentID&lt;/SPAN&gt; is the name of the field that contains the node id of the parent node. This field must exist in the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;NodeName&lt;/SPAN&gt; is the name of the field that contains the name of the node. This field must exist in the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;ParentName&lt;/SPAN&gt; is a string used to name the new &lt;SPAN class="Bold"&gt;ParentName&lt;/SPAN&gt; field. If omitted, this field will not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;PathSource&lt;/SPAN&gt; is the name of the field that contains the name of the node used to build the node path. Optional parameter. If omitted, &lt;SPAN class="Bold"&gt;NodeName&lt;/SPAN&gt; will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;PathName&lt;/SPAN&gt; is a string used to name the new &lt;SPAN class="Bold"&gt;Path&lt;/SPAN&gt; field, which contains the path from the root to the node. Optional parameter. If omitted, this field will not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;PathDelimiter&lt;/SPAN&gt; is a string used as delimiter in the new &lt;SPAN class="Bold"&gt;Path&lt;/SPAN&gt; field. Optional parameter. If omitted, ‘/’ will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0px;"&gt;&lt;SPAN class="Bold"&gt;Depth&lt;/SPAN&gt; is a string used to name the new &lt;SPAN class="Bold"&gt;Depth&lt;/SPAN&gt; field, which contains the depth of the node in the &lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;hierarchy&lt;/SPAN&gt;. Optional parameter. If omitted, this field will not be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;Hierarchy&lt;/SPAN&gt;(NodeID, ParentID, NodeName) LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;NodeID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;ParentID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;NodeName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;Attribute&lt;/P&gt;&lt;P&gt;&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>Mon, 23 Feb 2015 13:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772079#M471789</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-02-23T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772080#M471790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TREE:&lt;/P&gt;&lt;P&gt;HierarchyBelongsTo(ID2, ID, Name, 'ancestorid', 'ancestor', 'layer')&lt;/P&gt;&lt;P&gt;load ID2, &lt;/P&gt;&lt;P&gt;ID, &lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt; resident [InlineTable];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772080#M471790</guid>
      <dc:creator />
      <dc:date>2015-02-23T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy Load</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772081#M471791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still Wrong... I have done little correction.. Use the same to make changes at your end.&lt;/P&gt;&lt;P&gt;Kindly use below script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, Name, ID2&lt;/P&gt;&lt;P&gt;A001, Tom, A001&lt;/P&gt;&lt;P&gt;A002, Dave, A001 &lt;/P&gt;&lt;P&gt;A003, Karl, A002&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hierarchy (NodeID, ParentID, Name, , Name, NodePath, '/', NodeDepth)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID as NodeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID2 as ParentID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a list box for NodePath and tick show as treeview from general tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-Load/m-p/772081#M471791</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-23T13:56:18Z</dc:date>
    </item>
  </channel>
</rss>

