<?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: Something is going wrong with function Hierarchy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377447#M140725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to see your data to figure out where the problem is. My example (see attachment) works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 08:36:09 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-08-14T08:36:09Z</dc:date>
    <item>
      <title>Something is going wrong with function Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377446#M140724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am missing something but I did not find the solution and need help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table DATA have the property : one child have only one parent. One parent can have several children.&lt;/P&gt;&lt;P&gt;I am using function Hierarchy like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hierarchy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;parentid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;node&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;node&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,TreeView) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;parentid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;node&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;DATA; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I have on 'TreeView'&amp;nbsp; is currently :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Root&lt;/P&gt;&lt;P&gt;Root/&lt;/P&gt;&lt;P&gt;Root//&lt;/P&gt;&lt;P&gt;Root///&lt;/P&gt;&lt;P&gt;Root////&lt;/P&gt;&lt;P&gt;Root/////&lt;/P&gt;&lt;P&gt;Root//////&lt;/P&gt;&lt;P&gt;Root///////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I expected : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Root&lt;/P&gt;&lt;P&gt;Root/123&lt;/P&gt;&lt;P&gt;Root/123/95548&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 15:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377446#M140724</guid>
      <dc:creator />
      <dc:date>2012-08-13T15:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Something is going wrong with function Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377447#M140725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to see your data to figure out where the problem is. My example (see attachment) works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 08:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377447#M140725</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-08-14T08:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Something is going wrong with function Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377448#M140726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find in attachment my application (restricted data, deleted connection).&lt;/P&gt;&lt;P&gt;I noticed that then I use an infile it is working but I need to call the table directly from the database.&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377448#M140726</guid>
      <dc:creator />
      <dc:date>2012-08-14T09:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Something is going wrong with function Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377449#M140727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found three problems:&lt;/P&gt;&lt;P&gt;1) The data model is not good. See picture. The field "node" should exist in only one table.&lt;/P&gt;&lt;P&gt;2) You should have the root nodes as records of their own in the input to the Hierarchy prefix. The parent of a root should be NULL.&lt;/P&gt;&lt;P&gt;3) For some reason, the path is not generated correctly if the node names are numeric. This could be a bug and this is what causes your problem. But the work-around is simple: Use the Text() function for the node names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="20135" class="jive-image" alt="Model.jpg" src="https://community.qlik.com/legacyfs/online/20135_Model.jpg" /&gt;&lt;/P&gt;&lt;P&gt;In the attachment you can see that it works if you make these changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377449#M140727</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-08-14T09:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Something is going wrong with function Hierarchy</title>
      <link>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377450#M140728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the explanations.&lt;/P&gt;&lt;P&gt;It is working now&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 12:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Something-is-going-wrong-with-function-Hierarchy/m-p/377450#M140728</guid>
      <dc:creator />
      <dc:date>2012-08-14T12:10:12Z</dc:date>
    </item>
  </channel>
</rss>

