<?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: AGGR in expression different when loading from qvd in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760352#M58787</link>
    <description>&lt;P&gt;try sending this message to the qlik bug group&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikBug/gh-p/qlikbug" target="_blank"&gt;https://community.qlik.com/t5/QlikBug/gh-p/qlikbug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 14:49:41 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2020-11-10T14:49:41Z</dc:date>
    <item>
      <title>AGGR in expression different when loading from qvd</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760316#M58784</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come across some odd behaviour and wondering if anyone experienced similar.&amp;nbsp; I have created some logic in a table and then using a graph I have a front end expression which calculates the remaining amounts across the time groups.&lt;/P&gt;&lt;P&gt;Once I checked the logic I stored it into a qvd and dropped the original table.&amp;nbsp; I loaded from the qvd and the chart is different, even though it uses the same expressions and the number of values in the qvd are the same as the original.&amp;nbsp; The actual values in the qvd are the same but the expression I am using does not work the same way when loading from a qvd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bc5891_0-1605016616470.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43906i14CFEC29C71384D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bc5891_0-1605016616470.png" alt="bc5891_0-1605016616470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the expression is as follows:&lt;/P&gt;&lt;P&gt;AGGR(&lt;BR /&gt;sum(total &amp;lt;SCH_EVENT_TYPE&amp;gt;{&amp;lt;SCH_YEAR_GROUP = {'Within Yr'}&amp;gt;}SCH_AMOUNT)/1000000&lt;BR /&gt;-&lt;BR /&gt;RangeSum(Above(sum(SCH_AMOUNT)/1000000, 0, RowNo()-1))&lt;BR /&gt;, SCH_EVENT_TYPE, SCH_YEAR_GROUP)&lt;/P&gt;&lt;P&gt;in this I am taking the full value of the initial amount at the first time interval, and then in the next time intervals I only display the remaining values, i.e. the number should always decrease over time.&amp;nbsp; When loading the exact same thing from the qvd though I get the following chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bc5891_1-1605016831257.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43907iDDD98FD4883A9B80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bc5891_1-1605016831257.png" alt="bc5891_1-1605016831257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question is:&amp;nbsp; has anyone come across this sort of behaviour before, is it a bug?&lt;/P&gt;&lt;P&gt;I cannot share the application but can assure you that the only difference between the two charts is that one is from a qvd and the other is not, both have the same number of rows and fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 22:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760316#M58784</guid>
      <dc:creator>bc5891</dc:creator>
      <dc:date>2021-12-21T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR in expression different when loading from qvd</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760352#M58787</link>
      <description>&lt;P&gt;try sending this message to the qlik bug group&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikBug/gh-p/qlikbug" target="_blank"&gt;https://community.qlik.com/t5/QlikBug/gh-p/qlikbug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760352#M58787</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2020-11-10T14:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR in expression different when loading from qvd</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760630#M58803</link>
      <description>&lt;P&gt;The order of your values may change by your method. This is caused through the way Qlik handles and stored the data (a symbol-table for each field with only distinct values and a data-table which only contains binary pointer to the symbol-table).&lt;/P&gt;&lt;P&gt;Because of the fact that you are using an interrecord-function and rowno() within your expression it may impact the result. Further there is an issue with your expression because the aggr() missed an outer aggregation and behaved here like a (calculated) dimension.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 09:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760630#M58803</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-11T09:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR in expression different when loading from qvd</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760632#M58804</link>
      <description>&lt;P&gt;Thank you for your response Marcus.&amp;nbsp; So in essence the loading from qvd changes the ordering which changes the output of the chart?&amp;nbsp; I would need to load resident from the qvd and replicate the initial ordering?&lt;BR /&gt;&lt;BR /&gt;In terms of the AGGR function, could you expand a little please, should there be an additional AGGR then?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 10:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760632#M58804</guid>
      <dc:creator>bc5891</dc:creator>
      <dc:date>2020-11-11T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR in expression different when loading from qvd</title>
      <link>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760706#M58811</link>
      <description>&lt;P&gt;Not only the storing could change the order else also the new loading. If a field is loaded Qlik checked for each value if it already exists within the symbol-table - if not it adds the value there and adds 1 to the max. value of the binary pointer and put this pointer value in the record of the data-table but if this value already exists the system-table won't be touched unless to pick the appropriate pointer-value to put it into the data-table, too. Therefore the order of the field-values depends on the load-order within the whole script and it's not related to the tables in which they were loaded.&lt;/P&gt;&lt;P&gt;With an outer aggregation was something like the following meant:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(&lt;/STRONG&gt;aggr(YourExpression)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 12:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/AGGR-in-expression-different-when-loading-from-qvd/m-p/1760706#M58811</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-11T12:52:06Z</dc:date>
    </item>
  </channel>
</rss>

