<?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: Total over previous years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350571#M573863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Hi Deepak,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Absolutely BRILLIANT!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Could you please explain this syntax? Sum({&amp;lt;YEAR={"&amp;lt; $(vMaxYear)"},PERIOD=&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Many thanks, Gerard.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 09:44:14 GMT</pubDate>
    <dc:creator>g_f_bakker</dc:creator>
    <dc:date>2012-06-13T09:44:14Z</dc:date>
    <item>
      <title>Total over previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350569#M573861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;I have a question and I really need some help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;When I use a table in a bar chart with the columns YEAR, PERIOD and QTY, I want to do the following with one expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;If &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;YEAR &amp;lt; Max(YEAR) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;then (Total QTY of that Year) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Else Sum(QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Only the bar of Max(YEAR) must change when I put a selection on PERIOD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;My test file is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;Please help me, I think it’s something with the aggr function, but ..... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 09:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350569#M573861</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2012-06-13T09:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Total over previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350570#M573862</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;Try&amp;nbsp; out the attach application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 09:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350570#M573862</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-13T09:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Total over previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350571#M573863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Hi Deepak,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Absolutely BRILLIANT!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Could you please explain this syntax? Sum({&amp;lt;YEAR={"&amp;lt; $(vMaxYear)"},PERIOD=&amp;gt;}QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 7.5pt; font-family: Arial, sans-serif;"&gt;Many thanks, Gerard.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 09:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350571#M573863</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2012-06-13T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Total over previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350572#M573864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am storing the max(year) inside variable vMaxyear. And using set analysis iam checking if Year &amp;lt; vMaxYear&lt;/P&gt;&lt;P&gt;and ignore the selection for period (PERIOD=) then sum of quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 10:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350572#M573864</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-13T10:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Total over previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350573#M573865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Again, many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Gerard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 10:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-over-previous-years/m-p/350573#M573865</guid>
      <dc:creator>g_f_bakker</dc:creator>
      <dc:date>2012-06-13T10:55:40Z</dc:date>
    </item>
  </channel>
</rss>

