<?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 Set Analysis:Month Year sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146699#M25215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing below code in set analysis:(This takes 2008 May data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({ $&amp;lt;Year=, Month=&amp;gt; &amp;lt; Year = {"=$(=(Year(Today())-1)) =$(month(addmonths(today(),-1))"} &amp;gt;}Payments)&lt;/P&gt;&lt;P&gt;However,it is not working. I need 2008 May sum of Payments.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 16:40:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-12T16:40:40Z</dc:date>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146698#M25214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have three columns in my Excel source. (Year,Month,Payments)&lt;/P&gt;&lt;P&gt;I need to calculate sum of Payments on the basis of Year and Month column e.g.for Year=2008 and Month=Mar, Sum(Payment).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 16:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146698#M25214</guid>
      <dc:creator />
      <dc:date>2009-06-12T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146699#M25215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing below code in set analysis:(This takes 2008 May data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({ $&amp;lt;Year=, Month=&amp;gt; &amp;lt; Year = {"=$(=(Year(Today())-1)) =$(month(addmonths(today(),-1))"} &amp;gt;}Payments)&lt;/P&gt;&lt;P&gt;However,it is not working. I need 2008 May sum of Payments.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 16:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146699#M25215</guid>
      <dc:creator />
      <dc:date>2009-06-12T16:40:40Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146700#M25216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I propose an easier solution:&lt;/P&gt;&lt;P&gt;Create a Calculated Dimension (eiter calculated dimension or in the script) a field combining the year and month. (year * 100) + month = (2008 * 100) + 3 = 200803. Then create a simple expression sum(Payment).&lt;/P&gt;&lt;P&gt;Dimension Expression&lt;/P&gt;&lt;P&gt;200803 sum(Payment)&lt;/P&gt;&lt;P&gt;This should do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 17:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146700#M25216</guid>
      <dc:creator />
      <dc:date>2009-06-12T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146701#M25217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is that month and year will keep changing. e.g. in this month if it is 200803, next month report run will have 200804,etc.&lt;/P&gt;&lt;P&gt;I need a set exp or if exp like i have mentioned below to suffice my requirements:&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;=(Year(Today())-1 &lt;P&gt;)&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;=Month(AddMonths(Today(),-1)),open_accts,0 &lt;P&gt;))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 17:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146701#M25217</guid>
      <dc:creator />
      <dc:date>2009-06-12T17:54:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146702#M25218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(YEAR=year(today())-1 and MONTH=month(today())-1,Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146702#M25218</guid>
      <dc:creator />
      <dc:date>2009-06-12T18:22:05Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146703#M25219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not work. I am getting value as '0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146703#M25219</guid>
      <dc:creator />
      <dc:date>2009-06-12T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146704#M25220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the QVW file so I can have a look. Maybe I missunderstood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146704#M25220</guid>
      <dc:creator />
      <dc:date>2009-06-12T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Set Analysis:Month Year sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146705#M25221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is resolved.Actually in Excel data, Month is shown as "Jan,May" and expression Month(Today()) returns '5' so unable to match it. Now I ahve converted 5 as 'May' so it worked.&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-Year-sum/m-p/146705#M25221</guid>
      <dc:creator />
      <dc:date>2009-06-12T18:50:50Z</dc:date>
    </item>
  </channel>
</rss>

