<?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: addmonths and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388206#M486248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum({&amp;lt;Month = {"$(=month(addmonths(Max(Date),-1)))"},Year={'$(=Year(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;addmonths(Max(Date),-1))&lt;/SPAN&gt;)'} ,Date=&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 12:42:38 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-25T12:42:38Z</dc:date>
    <item>
      <title>addmonths and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388205#M486247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck on something and since I'm new to set analysis I dont know how to procced. I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt;Month = {"$(=month(addmonths(Max(Date),-1)))"},Year=,Date=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression basically SUMS the previous months "Sales". This works perfectly but when I only have a years data. But when I have sales for more than a year (i.e there are multiple Feb (2012 &amp;amp;2013) it sums the sales for both years. I just want the previous months sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 12:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388205#M486247</guid>
      <dc:creator />
      <dc:date>2013-03-25T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: addmonths and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388206#M486248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum({&amp;lt;Month = {"$(=month(addmonths(Max(Date),-1)))"},Year={'$(=Year(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;addmonths(Max(Date),-1))&lt;/SPAN&gt;)'} ,Date=&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 12:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388206#M486248</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-25T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: addmonths and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388207#M486249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks man, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like a charm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i work on my set analysis? I know practice. But do you know of any material or forums other than this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 12:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388207#M486249</guid>
      <dc:creator />
      <dc:date>2013-03-25T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: addmonths and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388208#M486250</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the attached exmaple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this will clear your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addmonths-and-set-analysis/m-p/388208#M486250</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-25T13:03:45Z</dc:date>
    </item>
  </channel>
</rss>

