<?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. :SalesPerson Hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181844#M47712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually , i have no clue what I am doing ,, but it tried this with the same error:&lt;/P&gt;&lt;P&gt;// create Expanded Nodes table&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent)&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 15:56:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-24T15:56:38Z</dc:date>
    <item>
      <title>SalesPerson Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181842#M47710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;Error I get:&lt;/P&gt;&lt;P&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:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181842#M47710</guid>
      <dc:creator />
      <dc:date>2011-01-24T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re. :SalesPerson Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181843#M47711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: bold"&gt;hello uwe,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;B&gt;I'm not sure but is it normal that you got "NodeName" 2 times in your Hierarchy Expression?&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; Hierarchy (SalesPersonID, ParentID, &lt;B&gt;NodeName&lt;/B&gt;, Parent, &lt;B&gt;NodeName&lt;/B&gt;, Path, '-')&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Arnaud&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 15:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181843#M47711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re. :SalesPerson Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181844#M47712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually , i have no clue what I am doing ,, but it tried this with the same error:&lt;/P&gt;&lt;P&gt;// create Expanded Nodes table&lt;BR /&gt;SalesPersonHierarchy:&lt;BR /&gt;Hierarchy (SalesPersonID, ParentID, NodeName, Parent)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 15:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SalesPerson-Hierarchy/m-p/181844#M47712</guid>
      <dc:creator />
      <dc:date>2011-01-24T15:56:38Z</dc:date>
    </item>
  </channel>
</rss>

