<?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: SET Expression does not able show amount for previous year ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668433#M539305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QV doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 04:11:14 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2014-08-13T04:11:14Z</dc:date>
    <item>
      <title>SET Expression does not able show amount for previous year ?</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668432#M539304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table , i am using below expression, is working fine :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year) - $(=if(max(month) = 1, 1, 0)))}, month = {$(=num(month(addmonths(max(YearMonth), -1))))}&amp;gt;}&amp;nbsp; Invoice_Amt_SGD/1000) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is when the number increase to 7 , it display null :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=max(year) - $(=if(max(month) = 1, 1, 0)))}, month = {$(=num(month(addmonths(max(YearMonth), -7))))}&amp;gt;}&amp;nbsp; Invoice_Amt_SGD/1000) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one advise me how to check where it the error ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 03:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668432#M539304</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-08-13T03:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: SET Expression does not able show amount for previous year ?</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668433#M539305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QV doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 04:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668433#M539305</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-08-13T04:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: SET Expression does not able show amount for previous year ?</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668434#M539306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is returning Dec 2014 as year condition your extracting is returning 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {$(=num(year(addmonths(max(YearMonth), -7))))}, month = {$(=num(month(addmonths(max(YearMonth), -7))))}&amp;gt;}&amp;nbsp; Invoice_Amt_SGD/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your other caluclations also according to the above expression. Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark this as correct, if your result is as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 05:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668434#M539306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-13T05:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET Expression does not able show amount for previous year ?</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668435#M539307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help , with out it i will not be able to figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Expression-does-not-able-show-amount-for-previous-year/m-p/668435#M539307</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-08-13T11:47:38Z</dc:date>
    </item>
  </channel>
</rss>

