<?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 to chart accumulation not affected by selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357437#M618957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The syntax for the sortable aggr() dimensions is only available in recent QV12 releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You need to use another outer aggregation function, Sum() instead of Only() if you want to aggregate all possible products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If the sortable aggr() dimension syntax does not work, Qlik will bay default sort the dimension values (shpYear) in LOAD order, and in your case, LOAD order for shpYear comes in 2014,2016,2015,2017&lt;/P&gt;&lt;P&gt;That's why the accumulated values using the rangesum(above()) doesn't give the correct results.&lt;/P&gt;&lt;P&gt;You can fix it by creating a correct LOAD order in the script (using e.g. a shpYear field loaded first in the script with the correct chronological order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, use an asof-table approach:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached both approaches in the updated QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 09:07:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-05-17T09:07:22Z</dc:date>
    <item>
      <title>how to chart accumulation not affected by selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357434#M618954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a chart showing the yearly accumulative count on selected products.&lt;/P&gt;&lt;P&gt;For example here, the chart is showing the accumulative count for product TXZ600 from its year 2014 to 2017.&lt;/P&gt;&lt;P&gt;The accumulative count is 33 up to year 2017.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="accu_test1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163619_accu_test1.PNG" style="height: 470px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I select 2017 only, The chart is only showing the count of 4 for 2017.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="accu_test2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/163620_accu_test2.PNG" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to make the chart showing the accumulative count only based on the selection of product, not year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for helping out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 22:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357434#M618954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T22:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to chart accumulation not affected by selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357435#M618955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a recent QV version, you could try using the sortable aggr() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only(aggr(&lt;STRONG&gt;Rangesum(Above(count({1}Distinct SN),0,RowNo()))&lt;/STRONG&gt;,product,&lt;STRONG&gt;(shpDateYY,(NUMERIC,ASCENDING))&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="163622" alt="2017-05-17 00_50_13-QlikView x64 - [C__Users_Stefan_Downloads_Accu_test_2.qvw_].png" class="jive-image image-1" src="/legacyfs/online/163622_2017-05-17 00_50_13-QlikView x64 - [C__Users_Stefan_Downloads_Accu_test_2.qvw_].png" style="height: 469px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="163623" alt="2017-05-17 00_50_24-QlikView x64 - [C__Users_Stefan_Downloads_Accu_test_2.qvw_].png" class="jive-image image-2" src="/legacyfs/online/163623_2017-05-17 00_50_24-QlikView x64 - [C__Users_Stefan_Downloads_Accu_test_2.qvw_].png" style="height: 371px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 22:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357435#M618955</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-16T22:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to chart accumulation not affected by selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357436#M618956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression helps but with few problems.&lt;/P&gt;&lt;P&gt;1. the version of QV I'm using doesn't recognize &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(shpDateYY,(NUMERIC,ASCENDING))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. If I used &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Only(aggr(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rangesum(Above(count({1}Distinct SN),0,RowNo()))&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,product,&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;shpDateYY&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and no product selected, chart shows no data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="accu_test3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163626_accu_test3.PNG" style="height: 391px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. if a product is selected, the count doesn't match with the chart which has expression sum(aggr(count({1} Distinct SN),product,shpDateYY)) and "Full Accumulation" checked.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="accu_test4.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/163627_accu_test4.PNG" style="height: 399px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 23:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357436#M618956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T23:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to chart accumulation not affected by selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357437#M618957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The syntax for the sortable aggr() dimensions is only available in recent QV12 releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You need to use another outer aggregation function, Sum() instead of Only() if you want to aggregate all possible products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If the sortable aggr() dimension syntax does not work, Qlik will bay default sort the dimension values (shpYear) in LOAD order, and in your case, LOAD order for shpYear comes in 2014,2016,2015,2017&lt;/P&gt;&lt;P&gt;That's why the accumulated values using the rangesum(above()) doesn't give the correct results.&lt;/P&gt;&lt;P&gt;You can fix it by creating a correct LOAD order in the script (using e.g. a shpYear field loaded first in the script with the correct chronological order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, use an asof-table approach:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached both approaches in the updated QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 09:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-chart-accumulation-not-affected-by-selection/m-p/1357437#M618957</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-17T09:07:22Z</dc:date>
    </item>
  </channel>
</rss>

