<?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 SalesPerson Hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181798#M47681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don' understand how to build a SalesPerson Hierarchy, always go the same error, i think i don't understand what it should be, i tried the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SalesPerson:&lt;BR /&gt;LOAD SalesPerson.SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID ,&lt;BR /&gt; SalesPerson.FullName,&lt;BR /&gt; %KEY_SalesPersonID AS SalesPersonID&lt;BR /&gt;RESIDENT TempSalesPerson;&lt;BR /&gt;DROP TABLE TempSalesPerson;&lt;/P&gt;&lt;P&gt;AdjacentNodes:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS NodeID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson;&lt;/P&gt;&lt;P&gt;DROP TABLE TempTerritory;&lt;/P&gt;&lt;P&gt;// create Expanded Nodes table&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent, NodeName, Path, '-')&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson;&lt;/P&gt;&lt;P&gt;// create ancestors table&lt;BR /&gt;SalesPersonyHierarchyBelognsTo:&lt;BR /&gt;HierarchyBelongsTo (NodeID,ParentID,NodeName,CategoryTreeID, CategoryTree)&lt;BR /&gt;LOAD NodeID,&lt;BR /&gt; NodeName,&lt;BR /&gt; ParentID&lt;BR /&gt;Resident SalesPersonHierarchy;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR:&lt;/P&gt;&lt;P&gt;HIERARCHY parameter NodeName (="NodeName") is not a valid field&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent, NodeName, Path, '-')&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 15:41:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-24T15:41:07Z</dc:date>
    <item>
      <title>SalesPerson Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181798#M47681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don' understand how to build a SalesPerson Hierarchy, always go the same error, i think i don't understand what it should be, i tried the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SalesPerson:&lt;BR /&gt;LOAD SalesPerson.SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID ,&lt;BR /&gt; SalesPerson.FullName,&lt;BR /&gt; %KEY_SalesPersonID AS SalesPersonID&lt;BR /&gt;RESIDENT TempSalesPerson;&lt;BR /&gt;DROP TABLE TempSalesPerson;&lt;/P&gt;&lt;P&gt;AdjacentNodes:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS NodeID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson;&lt;/P&gt;&lt;P&gt;DROP TABLE TempTerritory;&lt;/P&gt;&lt;P&gt;// create Expanded Nodes table&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent, NodeName, Path, '-')&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson;&lt;/P&gt;&lt;P&gt;// create ancestors table&lt;BR /&gt;SalesPersonyHierarchyBelognsTo:&lt;BR /&gt;HierarchyBelongsTo (NodeID,ParentID,NodeName,CategoryTreeID, CategoryTree)&lt;BR /&gt;LOAD NodeID,&lt;BR /&gt; NodeName,&lt;BR /&gt; ParentID&lt;BR /&gt;Resident SalesPersonHierarchy;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR:&lt;/P&gt;&lt;P&gt;HIERARCHY parameter NodeName (="NodeName") is not a valid field&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent, NodeName, Path, '-')&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; SalesPerson.SalesPersonID AS SalesPersonID,&lt;BR /&gt; SalesPerson.ParentEmployeeBusinessEntityID AS ParentID,&lt;BR /&gt; SalesPerson.FullName AS NodeName&lt;BR /&gt;RESIDENT SalesPerson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 15:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181798#M47681</guid>
      <dc:creator />
      <dc:date>2011-01-24T15:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: SalesPerson Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181799#M47682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try placing the tab where you have the "hierarchy" of first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 14:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181799#M47682</guid>
      <dc:creator />
      <dc:date>2015-08-21T14:58:25Z</dc:date>
    </item>
  </channel>
</rss>

