<?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: aggregation of filter selection for previous years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1587542#M43007</link>
    <description>have you tried the aggr function? sum(aggr(.......,yearmonth))</description>
    <pubDate>Mon, 03 Jun 2019 10:56:52 GMT</pubDate>
    <dc:creator>bramkn</dc:creator>
    <dc:date>2019-06-03T10:56:52Z</dc:date>
    <item>
      <title>aggregation of filter selection for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1587532#M43006</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;i have a question concerning filters and calculation of previous year values.&lt;/P&gt;&lt;P&gt;basic functinality is that you can select a yearmonth in the filter box and you get the correct values of the selection and the previous yearmonth in the bar chart&lt;/P&gt;&lt;P&gt;i use following code&lt;/P&gt;&lt;P&gt;=(Sum({&amp;lt;[0CALMONTH]={$(=Date(AddYears(Max([0CALDAY]), -1),'YYYYMM'))}&amp;gt;}SALES_1R1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this is working only for one selection. So i you selct more than one yearmonth, the current selection is aggregated correctly, but the respective previous years do net.&lt;/P&gt;&lt;P&gt;How can i change that or how can i aggregate the resprective previous years from the selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope my question is clear and someone can help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1587532#M43006</guid>
      <dc:creator>grisldopf</dc:creator>
      <dc:date>2024-11-16T05:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation of filter selection for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1587542#M43007</link>
      <description>have you tried the aggr function? sum(aggr(.......,yearmonth))</description>
      <pubDate>Mon, 03 Jun 2019 10:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1587542#M43007</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2019-06-03T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation of filter selection for previous years</title>
      <link>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1588197#M43058</link>
      <description>&lt;P&gt;thanks for your reply&lt;/P&gt;&lt;P&gt;unfortuantely it does not work and i guess its because i am using an expression as dimension&lt;/P&gt;&lt;P&gt;Qlik help says:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Each dimension in an&amp;nbsp;&lt;/SPAN&gt;Aggr()&lt;SPAN&gt;&amp;nbsp;function must be a single field, and cannot be an expression (calculated dimension)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but is works if i simply take sum(sales) for aggregation, but thats not my intention. I need to sum up all Sales for the year before the multiple filter selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i want to filter 201808, 201807 and 201806 (YYYYMM).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter.PNG" style="width: 152px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13161iC5840B7C97B74351/image-dimensions/152x139?v=v2" width="152" height="139" role="button" title="filter.PNG" alt="filter.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and i want to have in the chart the sum of all sales of current selection plus sum of all sales of the current selection minus 1 year so 201708+201707+201706&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it only works when selecting one&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;timeperiod (e.g. 201708), but not when selecting all three of them&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When i select all three time periods i stick to the maximum of timeperiods, but not the sum of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chart.PNG" style="width: 520px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13165iE4BB37CFA446DDEB/image-dimensions/520x255?v=v2" width="520" height="255" role="button" title="chart.PNG" alt="chart.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 13:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aggregation-of-filter-selection-for-previous-years/m-p/1588197#M43058</guid>
      <dc:creator>grisldopf</dc:creator>
      <dc:date>2019-06-04T13:28:08Z</dc:date>
    </item>
  </channel>
</rss>

