<?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 Current Year vs Previous Year with a filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060650#M355091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem about set analysis.&lt;/P&gt;&lt;P&gt;In attached sample data.&lt;/P&gt;&lt;P&gt;I have a calendar with two years - 2014 and 2015.&lt;/P&gt;&lt;P&gt;I want to sum, for the selected year - 2015, an Amount for months with a flag = E -&amp;gt; sum({&amp;lt;Flag={'E'}&amp;gt;}Amount) -&amp;gt;OK!&lt;/P&gt;&lt;P&gt;For the previous year (respect to the selected one) I want to sum the Amount for the same months of the selected year - if they exist - disregarding the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Mar 2016 14:35:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-12T14:35:21Z</dc:date>
    <item>
      <title>Current Year vs Previous Year with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060650#M355091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem about set analysis.&lt;/P&gt;&lt;P&gt;In attached sample data.&lt;/P&gt;&lt;P&gt;I have a calendar with two years - 2014 and 2015.&lt;/P&gt;&lt;P&gt;I want to sum, for the selected year - 2015, an Amount for months with a flag = E -&amp;gt; sum({&amp;lt;Flag={'E'}&amp;gt;}Amount) -&amp;gt;OK!&lt;/P&gt;&lt;P&gt;For the previous year (respect to the selected one) I want to sum the Amount for the same months of the selected year - if they exist - disregarding the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 14:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060650#M355091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-12T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year vs Previous Year with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060651#M355092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;max year&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({$ &amp;lt;YEAR={$(=max(YEAR))}, FLAG={E}&amp;gt;} AMMOUNT)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and max-1 year&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({$ &amp;lt;YEAR={$(=max(YEAR)-1)}, MONTH=P({$ &amp;lt;YEAR={$(=max(YEAR))}, FLAG={E}&amp;gt;} MONTH)&amp;gt;} AMMOUNT)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 14:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060651#M355092</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-12T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year vs Previous Year with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060652#M355093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it's correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me how to manage the situation in which there are more customers? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attached new data with two records about Customer B.&lt;/P&gt;&lt;P&gt;In my example, Ammount of customer B must not be included in the sum baceuase he has not flag E for current year. So the results must be the same (97 and 44).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would like the calculation takes into account the situation of single customer and not globally. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So I want to consider, &lt;SPAN style="text-decoration: underline;"&gt;for each customer&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Current Year: ticket with flag =E;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Prevoius Year: ticket of the same month of current year disregarding flag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and then sum all available Ammount.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 09:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-vs-Previous-Year-with-a-filter/m-p/1060652#M355093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-14T09:42:27Z</dc:date>
    </item>
  </channel>
</rss>

