<?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: Help for Customer Hierarchy count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655274#M675074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evan and thank you very much!&lt;/P&gt;&lt;P&gt;Your app seems great but i got an error just by refreshing it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64293" alt="Sans titre.png" class="jive-image" src="/legacyfs/online/64293_Sans titre.png" style="width: 620px; height: 182px;" /&gt;&lt;/P&gt;&lt;P&gt;There is a problem with the variable vString i think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 07:02:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-13T07:02:31Z</dc:date>
    <item>
      <title>Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655270#M675070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;There is what i would like to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I have a table like this&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid rgb(0, 0, 0); width: 404px; height: 58px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Article&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Quantity&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="76" style="border: 1px solid rgb(0, 0, 0); width: 268px; height: 78px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;son customer&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9997&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9997&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9996&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9997&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9995&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9994&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64120_1.png" /&gt;&lt;IMG alt="2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64127_2.png" style="font-size: 10pt; line-height: 1.5em; max-width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I want to count the number of sons customers and divide the quantity with it.&lt;/P&gt;&lt;P&gt;There is what im looking for in this example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="81" style="border: 1px solid rgb(0, 0, 0); width: 407px; height: 83px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Article&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/2 = 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/2 = 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9996&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/3 = 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9995&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/3 = 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9994&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/3 = 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It should always take the lasts customers of the hierarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i do this? Maybe with the Hierarchy function or mapping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loïc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655270#M675070</guid>
      <dc:creator />
      <dc:date>2014-08-11T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655271#M675071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea???&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 06:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655271#M675071</guid>
      <dc:creator />
      <dc:date>2014-08-12T06:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655272#M675072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4823"&gt;Hierarchy in QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 06:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655272#M675072</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2014-08-12T06:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655273#M675073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="20140812_Allocating_only_by_end_node.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64279_20140812_Allocating_only_by_end_node.png" style="width: 620px; height: 276px;" /&gt;Hello Loic_dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an app that will break out sub-allocations of quantity based only on the number of end nodes&lt;EM&gt; (omit any middle nodes, or entries that are both parent &amp;amp; child)&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;The routine should dynamically contract or expand based on a varying number of hierarchy layers embedded in the source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, not sure if you wanted to ignore or include a single node, single layer entry from the calculations. I included them in the app, but if you want to remove them just edit the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 21:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655273#M675073</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-12T21:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655274#M675074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evan and thank you very much!&lt;/P&gt;&lt;P&gt;Your app seems great but i got an error just by refreshing it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64293" alt="Sans titre.png" class="jive-image" src="/legacyfs/online/64293_Sans titre.png" style="width: 620px; height: 182px;" /&gt;&lt;/P&gt;&lt;P&gt;There is a problem with the variable vString i think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 07:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655274#M675074</guid>
      <dc:creator />
      <dc:date>2014-08-13T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655275#M675075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello loic_dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded the posted application from this thread and reloaded.&amp;nbsp; Everything works fine for me, with an error free execution.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64335" alt="20140813_error_free.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64335_20140813_error_free.png" /&gt;&lt;/P&gt;&lt;P&gt;So can you test a few things?&amp;nbsp; Download an unmodified copy of the application from this thread, reload, and make note of any errors in a freshly downloaded copy.&amp;nbsp; Also, if you could activate a log script, that would start producing a debugging trail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you made any changes, no matter how minor, mention those.&amp;nbsp; Obviously you would want to start replacing the sample data from this thread with the real thing, but without seeing all your details maybe additional information is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formation of vString is delicate and complicated. If I edit a small segment in the vString formula, the reload can produce an error message similar to the one you have posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replacing a single quote syntax "chr(39)" with something like "Repeat(chr(39),20*$(vMaxNodes)-$(i))"&lt;/P&gt;&lt;P&gt;produces the following error message &lt;EM&gt;(which looks very similar to the one you generated)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64334" alt="20140813_forcing_error_in_vString.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64334_20140813_forcing_error_in_vString.png" style="width: 620px; height: 245px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655275#M675075</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-13T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655276#M675076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't modify anything and i still got this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the log script, it seems to be an error due to the quotes char yes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655276#M675076</guid>
      <dc:creator />
      <dc:date>2014-08-13T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655277#M675077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello loic_dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is interesting.. you can see when you compare between your log file and mine that one difference between our environments is the processing of quote characters, they seems to incur additional wrapping on your end. &lt;EM&gt;(In my log file it is not showing growing chains of single quotes)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've experienced applications that seem to require logic changes as the underlying nature of quote handling seems to "move around", but would definitely like more specifics on how to control these settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I just removed the dynamic resizing of the hierarchy depth and hardcoded it to a fixed range of 7 &lt;EM&gt;(which has to match the depth of the data set)&lt;/EM&gt;.&amp;nbsp; The automatic detection of the hierarchy depth seemed to work on your end, so maybe run the app once and exit after the hierarchy depth is determined, then edit your final hierarchy load statement upward or downward and then reload the full script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dynamic resizing is working fine on my machine but without understanding all the differences between our platforms, maybe you'll at least have the long method for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 15:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655277#M675077</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-13T15:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655278#M675081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evan,&lt;/P&gt;&lt;P&gt;Thank you for all the time you spend on my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other difference i see between our log files is on the table HIERARCHY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[HIERARCHY]:&lt;/P&gt;&lt;P&gt;Hierarchy(Child,Parent, Node)&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT [RAW]&lt;/P&gt;&lt;P&gt;3 fields found: Parent, Child, Node, &lt;STRONG style="text-decoration: underline;"&gt;19&lt;/STRONG&gt; lines fetched&lt;/P&gt;&lt;P&gt;10 fields found: Node1, Node2, Node3, Node4, Node5, Node6, Node7, Child, Parent, Node, &lt;STRONG style="text-decoration: underline;"&gt;19&lt;/STRONG&gt; lines fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[HIERARCHY]:&lt;/P&gt;&lt;P&gt;Hierarchy(Child,Parent, Node)&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT [RAW]&lt;/P&gt;&lt;P&gt;3 champs trouvés: Parent, Child, Node, &lt;STRONG style="text-decoration: underline;"&gt;38&lt;/STRONG&gt; lignes récupérées&lt;/P&gt;&lt;P&gt;10 champs trouvés: Node1, Node2, Node3, Node4, Node5, Node6, Node7, Child, Parent, Node, &lt;STRONG style="text-decoration: underline;"&gt;38&lt;/STRONG&gt; lignes récupérées&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre.png" class="jive-image" src="/legacyfs/online/64389_Sans titre.png" /&gt;&lt;/P&gt;&lt;P&gt;In my app, i got all the lines in double:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre.png" class="jive-image" src="/legacyfs/online/64388_Sans titre.png" style="width: 620px; height: 383px;" /&gt;&lt;/P&gt;&lt;P&gt;This is another strange point...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it may be a problem due the parameters which do not appears in your log file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikView Version:11.00.11154.0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU Target&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x86&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Operating System&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows 7 Professional&amp;nbsp; (32 bit edition)&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wow64 mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not using Wow64&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDAC Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.1.7600.16385&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDAC Full Install Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.1.7600.16385&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PreferredCompression&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableParallelReload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParallelizeQvdLoads&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoSaveAfterReload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BackupBeforeReload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableFlushLog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaveInfoWhenSavingFile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserLogfileCharset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OdbcLoginTimeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OdbcConnectionTimeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptWantsDbWrite&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; false&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptWantsExe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; false&lt;/P&gt;&lt;P&gt;14-08-2014 09:00:47:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LogFile CodePage Used:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1252&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 07:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655278#M675081</guid>
      <dc:creator />
      <dc:date>2014-08-14T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655279#M675084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Loic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does look like your rows are doubling.&amp;nbsp; It doesn't seem apparent to me what turns that on or off because we're running the same syntax.&amp;nbsp; What you can do is try the DISTINCT keyword in front of the hierarchy and see what that produces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIERARCHY (Child, Parent, Node)&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;DISTINCT * &lt;/STRONG&gt;RESIDENT [RAW]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if that brings your row counts back in line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logfile I posted was reduced to only the pertinent areas, the original does have those parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655279#M675084</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-14T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655280#M675086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok you're right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify the app to make it work on my machine.&lt;/P&gt;&lt;P&gt;I just modified the "chr(39)" by " ' " &lt;EM&gt;(without spaces, only the quote char) &lt;/EM&gt;and i don't have the same log file.&lt;/P&gt;&lt;P&gt;This time, the quote char does not repeat at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sure thing is that the treatment of the quote char on my machine is not the same than yours....but why....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need to make your app working on my machine, it seems absolutely perfect for my problem that I've been working for long long hours now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655280#M675086</guid>
      <dc:creator />
      <dc:date>2014-08-14T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655281#M675089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Loic_dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad we worked on this because I've had this nagging feeling there is something about the hierarchy function that is off, but just couldn't put my finger on it.&amp;nbsp; I've had inconsistent results in the past where that whole process of trying to loop through the values and chain them together and detect the depth, it wasn't necessary.&amp;nbsp; Everything is clear now and all that needs to be done is engage the later parameters of this function, however... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't use the EXACT CORRECT arguments for hierarchy, the true capabilities of the function remain concealed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To exacerbate the problem, the documentation of the hierarchy function in the manual has 3 issues: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It is incomplete&lt;/LI&gt;&lt;LI&gt;It contains inaccuracies&lt;/LI&gt;&lt;LI&gt;It cites no functional code examples that illustrate its fully intended form &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that looping of code that was happening in the prior version of the apps in this thread, where its trying to create a chain of concatenation of the hierarchy tiers and add a delimiter?&amp;nbsp; That is basically trying to emulate what the hierarchy function would be doing if the later parameter arguments were applied, but with a lot more code, complexity, and convolution.&amp;nbsp; Toss it out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a newer and more brief version, that does the same thing as before, but the entire chain assembly happens in the hierarchy function.&amp;nbsp; However I'm going to follow with a post that illustrates the disconnect from documentation and functionality, god only knows how many would-be adopters of QlikView this divergence of "reality" vs. "perception" has scared off or discouraged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revised copy attached:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655281#M675089</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-14T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655282#M675090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="20140814_Results_to_expect_when_using_hierarchy.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64474_20140814_Results_to_expect_when_using_hierarchy.png" style="width: 620px; height: 318px;" /&gt;&lt;BR /&gt;My experiences are showing during testing that, if the script is attempting to use hierarchy() parameters #6 [PathName] and #7 [PathDelimiter] and #8[Depth], that parameter #5 is not an optional argument.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;If you validly populate Arguments#1-#3 and any of #6-#8 without populating argument #5, the script will proceed through without error but parameters #6-#8 will be ignored&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Argument #5 [PathSource] - Is a required argument if you intend to produce a node path from the results of the hierarchy() function&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of a&amp;nbsp; value created for a node path would be a delimited chain like:&lt;/P&gt;&lt;P&gt;'Server\MyDocuments\MyPhotos'&lt;/P&gt;&lt;P&gt;'Division1~UnitAlpha~Squad3'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Argument #5 references the field name from the source table that contains the values that will be used to build the node path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Argument #5 is omitted, no node path will be created and arguments passed in #6 through #8 will have no impact on script generation&lt;EM&gt; (i.e. you cannot leave argument #5 blank, supply a literal field name for argument #6 and expect a node path constructed off of argument #3 using the field name supplied in argument #6)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If argument #5 is populated, and argument #6 is blank, the node path created will appear in the results table as a new field name called [Path].&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If argument #5 is populated, and argument #6 is populated, the node path field generated in the results table will not use the default name [Path], but instead use the field name specified in argument #6&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If argument #5 is populated, you may then use argument #7 to assign a path node delimiter of your choosing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64468" alt="20140814_Hierarchy_documentation.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64468_20140814_Hierarchy_documentation.png" style="width: 620px; height: 361px;" /&gt;&lt;IMG __jive_id="64469" alt="20140814_Hierarchy_tested_syntax.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64469_20140814_Hierarchy_tested_syntax.png" style="width: 620px; height: 194px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 16:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655282#M675090</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-14T16:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Customer Hierarchy count</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655283#M675091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evan,&lt;/P&gt;&lt;P&gt;Thank you very much man, this is perfect!&lt;/P&gt;&lt;P&gt;Very helpful work on the Hierarchy function!&lt;/P&gt;&lt;P&gt;Great job, you rock!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Loïc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 08:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-Customer-Hierarchy-count/m-p/655283#M675091</guid>
      <dc:creator />
      <dc:date>2014-08-18T08:01:25Z</dc:date>
    </item>
  </channel>
</rss>

