<?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 Extending a pre-existing hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extending-a-pre-existing-hierarchy/m-p/158782#M33685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table loaded as follows:&lt;/P&gt;&lt;P&gt;LOAD NodeFullName,&lt;BR /&gt; node_name,&lt;BR /&gt; [Book Name] AS book_id,&lt;BR /&gt; [Node Leve1 1],&lt;BR /&gt; [Node Leve1 2],&lt;BR /&gt; [Node Leve1 3],&lt;BR /&gt; [Node Leve1 4],&lt;BR /&gt; [Node Leve1 5],&lt;BR /&gt; Depth,&lt;BR /&gt; Instrument&lt;BR /&gt;FROM&lt;BR /&gt;[Hierarchy.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;I now want to extend this hierarchy by mapping the value for the field Instrument onto [Node Level X], where X=Depth+1.&lt;BR /&gt;NB1 This is only necessary when the book_id field is non-empty. NB2 we only have data for Node Levels 1-4, so no extra&lt;BR /&gt;Node Levels need to be created. However, the Depth of the Hierarchy will need to be updated as well, plus the NodeFullName,&lt;BR /&gt;and the node_name. Example:&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;NodeFullName = Holland~Amsterdam~Zuid,&lt;BR /&gt; node_name = Zuid,&lt;BR /&gt; [Book Name] AS book_id = Zuid,&lt;BR /&gt; [Node Leve1 1] = Holland,&lt;BR /&gt; [Node Leve1 2] = Amsterdam,&lt;BR /&gt; [Node Leve1 3] = Zuid,&lt;BR /&gt; [Node Leve1 4] = '',&lt;BR /&gt; [Node Leve1 5] = '',&lt;BR /&gt; Depth = 3,&lt;BR /&gt; Instrument = Rob Cohen&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;NodeFullName = Holland~Amsterdam~Zuid~Rob Cohen,&lt;BR /&gt; node_name = Rob Cohen,&lt;BR /&gt; [Book Name] AS book_id = Zuid,&lt;BR /&gt; [Node Leve1 1] = Holland,&lt;BR /&gt; [Node Leve1 2] = Amsterdam,&lt;BR /&gt; [Node Leve1 3] = Zuid,&lt;BR /&gt; [Node Leve1 4] = Rob Cohen,&lt;BR /&gt; [Node Leve1 5] = '',&lt;BR /&gt; Depth = 4,&lt;BR /&gt; Instrument = Rob Cohen&lt;/P&gt;&lt;P&gt;Any suggestions are very welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 10:02:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-14T10:02:05Z</dc:date>
    <item>
      <title>Extending a pre-existing hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Extending-a-pre-existing-hierarchy/m-p/158782#M33685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table loaded as follows:&lt;/P&gt;&lt;P&gt;LOAD NodeFullName,&lt;BR /&gt; node_name,&lt;BR /&gt; [Book Name] AS book_id,&lt;BR /&gt; [Node Leve1 1],&lt;BR /&gt; [Node Leve1 2],&lt;BR /&gt; [Node Leve1 3],&lt;BR /&gt; [Node Leve1 4],&lt;BR /&gt; [Node Leve1 5],&lt;BR /&gt; Depth,&lt;BR /&gt; Instrument&lt;BR /&gt;FROM&lt;BR /&gt;[Hierarchy.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;I now want to extend this hierarchy by mapping the value for the field Instrument onto [Node Level X], where X=Depth+1.&lt;BR /&gt;NB1 This is only necessary when the book_id field is non-empty. NB2 we only have data for Node Levels 1-4, so no extra&lt;BR /&gt;Node Levels need to be created. However, the Depth of the Hierarchy will need to be updated as well, plus the NodeFullName,&lt;BR /&gt;and the node_name. Example:&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;NodeFullName = Holland~Amsterdam~Zuid,&lt;BR /&gt; node_name = Zuid,&lt;BR /&gt; [Book Name] AS book_id = Zuid,&lt;BR /&gt; [Node Leve1 1] = Holland,&lt;BR /&gt; [Node Leve1 2] = Amsterdam,&lt;BR /&gt; [Node Leve1 3] = Zuid,&lt;BR /&gt; [Node Leve1 4] = '',&lt;BR /&gt; [Node Leve1 5] = '',&lt;BR /&gt; Depth = 3,&lt;BR /&gt; Instrument = Rob Cohen&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;NodeFullName = Holland~Amsterdam~Zuid~Rob Cohen,&lt;BR /&gt; node_name = Rob Cohen,&lt;BR /&gt; [Book Name] AS book_id = Zuid,&lt;BR /&gt; [Node Leve1 1] = Holland,&lt;BR /&gt; [Node Leve1 2] = Amsterdam,&lt;BR /&gt; [Node Leve1 3] = Zuid,&lt;BR /&gt; [Node Leve1 4] = Rob Cohen,&lt;BR /&gt; [Node Leve1 5] = '',&lt;BR /&gt; Depth = 4,&lt;BR /&gt; Instrument = Rob Cohen&lt;/P&gt;&lt;P&gt;Any suggestions are very welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 10:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extending-a-pre-existing-hierarchy/m-p/158782#M33685</guid>
      <dc:creator />
      <dc:date>2011-03-14T10:02:05Z</dc:date>
    </item>
  </channel>
</rss>

