<?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: How can I flag leaf nodes in a hierarchy? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-flag-leaf-nodes-in-a-hierarchy/m-p/262492#M98822</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 about adding the parent nodes to a mapping table and flagging any child nodes that are not in that table ?,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Parents:&lt;/P&gt;&lt;P&gt;MAPPING LOAD ParentNodeID,&lt;/P&gt;&lt;P&gt;0 as NotLeaf&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;HTable.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTable:&lt;/P&gt;&lt;P&gt;LOAD NodeId, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodePath, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeCode, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParentNodeID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RootNodeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map_Parents',NodeId,'1') as LeafFlag&lt;/P&gt;&lt;P&gt;FROM HTable.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Qlikview Hierarchy load, instead of a normal load, if you want the 'expanded' node table format - see attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 06:34:59 GMT</pubDate>
    <dc:creator>hdonald</dc:creator>
    <dc:date>2011-09-15T06:34:59Z</dc:date>
    <item>
      <title>How can I flag leaf nodes in a hierarchy?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-flag-leaf-nodes-in-a-hierarchy/m-p/262491#M98821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all. So I have a table that is a hierarchy, although I'm not loading it as a hierarchy table in QlikView. The table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NodeId,&lt;/P&gt;&lt;P&gt;NodeName,&lt;/P&gt;&lt;P&gt;NodePath, // Delimited string including all nodes down to this one, e.g., Top\Branch\Branch\Leaf&lt;/P&gt;&lt;P&gt;NodeCode, // Numerical version of the above, e.g., 1.2.2.4&lt;/P&gt;&lt;P&gt;ParentNodeId,&lt;/P&gt;&lt;P&gt;RootNodeIt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there a way for me to create a derived IsLeaf flag field? I'm assuming I'll have to run it through the hierarchy load first to get that. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-flag-leaf-nodes-in-a-hierarchy/m-p/262491#M98821</guid>
      <dc:creator />
      <dc:date>2011-09-14T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I flag leaf nodes in a hierarchy?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-flag-leaf-nodes-in-a-hierarchy/m-p/262492#M98822</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 about adding the parent nodes to a mapping table and flagging any child nodes that are not in that table ?,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Parents:&lt;/P&gt;&lt;P&gt;MAPPING LOAD ParentNodeID,&lt;/P&gt;&lt;P&gt;0 as NotLeaf&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;HTable.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTable:&lt;/P&gt;&lt;P&gt;LOAD NodeId, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodePath, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeCode, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParentNodeID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RootNodeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map_Parents',NodeId,'1') as LeafFlag&lt;/P&gt;&lt;P&gt;FROM HTable.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Qlikview Hierarchy load, instead of a normal load, if you want the 'expanded' node table format - see attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-flag-leaf-nodes-in-a-hierarchy/m-p/262492#M98822</guid>
      <dc:creator>hdonald</dc:creator>
      <dc:date>2011-09-15T06:34:59Z</dc:date>
    </item>
  </channel>
</rss>

