<?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 simple Hierarchy question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199902#M58638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Try to structure the script like this. Let me know whether it works as per your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;new:&lt;BR /&gt;Load Field-1,&lt;BR /&gt; Field-1 &amp;amp;'|'&amp;amp; Field-2 &amp;amp;'|'&amp;amp; Field-3 as Hierarchy,&lt;BR /&gt; Field-2,&lt;BR /&gt; Field-3&lt;BR /&gt; RESIDENT tablename;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;[&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 08:14:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-15T08:14:24Z</dc:date>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199899#M58635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table that with this layout:&lt;/P&gt;&lt;P&gt;id, idname, groupid, groupname, masterid, mastername&lt;/P&gt;&lt;P&gt;how can i use this with the Hierarchy function? i'v checked the manual, but i cant get this working.&lt;/P&gt;&lt;P&gt;can someone please paste a load script for me?&lt;/P&gt;&lt;P&gt;masterid contains the ultimate parent. but i want to do this based on the groupname and than up:&lt;/P&gt;&lt;P&gt;so output should be something like in a pivot:&lt;/P&gt;&lt;P&gt;idname, groupname, groupname, groupname (=mastername)&lt;/P&gt;&lt;P&gt;idname, groupname (=mastername)&lt;/P&gt;&lt;P&gt;etcetc&lt;/P&gt;&lt;P&gt;this is what i have so far... i dont get NameNode1...10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Hierarchy (NodeID, ParentID, NodeName, ParentName, ShortNodeName, PathName, ' - / - ', Depth)&lt;BR /&gt;LOAD NodeID,&lt;BR /&gt; ParentID,&lt;BR /&gt; NodeName,&lt;BR /&gt; Left(NodeName,3) as ShortNodeName,&lt;BR /&gt; NodeID as Attribute1;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TABLE;&lt;BR /&gt;&lt;BR /&gt;Ancestors:&lt;BR /&gt;HierarchyBelongsto (NodeID, ParentID, Node, TreeID, Tree, DepthDiff)&lt;BR /&gt;LOAD NodeID,&lt;BR /&gt; ParentID,&lt;BR /&gt; NodeName as Node,&lt;BR /&gt; NodeID as Attribute2&lt;BR /&gt;Resident ExpandedAdjacentNodes;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 20:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199899#M58635</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-04T20:47:14Z</dc:date>
    </item>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199900#M58636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;[Adjacent Nodes]:&lt;BR /&gt;LOAD NodeID, NodeName, NodeLocation, ParentID, ParentName, ParentLocation;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TABLE;&lt;BR /&gt;&lt;BR /&gt;[Hierarchy]:&lt;BR /&gt;HIERARCHY (NodeID,ParentID,L,ParentName,NodeID,Path)&lt;BR /&gt;LOAD&lt;BR /&gt; NodeID&lt;BR /&gt;,ParentID&lt;BR /&gt;,NodeName as L&lt;BR /&gt;,NodeID as PathSource&lt;BR /&gt;RESIDENT [Adjacent Nodes]&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;HierarchyBelongsTo (NodeID,ParentID,NodeName,CategoryTreeID, CategoryTree,DepthDiff)&lt;BR /&gt;LOAD NodeID,&lt;BR /&gt; NodeName,&lt;BR /&gt; ParentID&lt;BR /&gt;Resident [Adjacent Nodes];&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 00:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199900#M58636</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T00:29:02Z</dc:date>
    </item>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199901#M58637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if this syntax is specific to v9? I am trying in 8.5 and getting an error that the "file is not found"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;CostCenter:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Hierarchy&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Parent_Cost_Center_Cd;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;CFDW2_HYPER_TBLS.Hyper_Cost_Center_Hir_Hist; &lt;B&gt;SELECT&lt;/B&gt; Cost_Center_Cd, &lt;P&gt;Cost_Center_Desc,&lt;/P&gt;&lt;P&gt;Parent_Cost_Center_Cd&lt;/P&gt;Cost_Center_Cd, &lt;P&gt;Cost_Center_Desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Cost_Center_Cd, Parent_Cost_Center_Cd, Cost_Center_Desc)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 21:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199901#M58637</guid>
      <dc:creator />
      <dc:date>2010-01-05T21:15:36Z</dc:date>
    </item>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199902#M58638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Try to structure the script like this. Let me know whether it works as per your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;new:&lt;BR /&gt;Load Field-1,&lt;BR /&gt; Field-1 &amp;amp;'|'&amp;amp; Field-2 &amp;amp;'|'&amp;amp; Field-3 as Hierarchy,&lt;BR /&gt; Field-2,&lt;BR /&gt; Field-3&lt;BR /&gt; RESIDENT tablename;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;[&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 08:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199902#M58638</guid>
      <dc:creator />
      <dc:date>2010-01-15T08:14:24Z</dc:date>
    </item>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199903#M58639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amien!&lt;/P&gt;&lt;P&gt;I am waiting for your reply. Let me know does it works as per your expectation?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 08:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199903#M58639</guid>
      <dc:creator />
      <dc:date>2010-01-22T08:42:58Z</dc:date>
    </item>
    <item>
      <title>simple Hierarchy question</title>
      <link>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199904#M58640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dsjain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you are waiting for &lt;A class="ReplyButton"&gt;&lt;/A&gt; &lt;A&gt;&lt;IMG alt="" style="border-width:0px;float:left;margin-right:5px;" /&gt;&lt;/A&gt; &lt;STRONG&gt;&lt;A&gt;stewart.teed&lt;/A&gt;&lt;/STRONG&gt; to reply. i posted the answer to my problem in the second post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 20:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-Hierarchy-question/m-p/199904#M58640</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-22T20:01:50Z</dc:date>
    </item>
  </channel>
</rss>

