<?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 How to calculate previous month data with current selected one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221349#M74167</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 a field year contains jan,feb,mar........with sum(sales) as another field.&lt;/P&gt;&lt;P&gt;i need to calculate the difference between current selected month and previous month.(ie)if i selected feb month then the result should find difference between jan and feb.....&lt;/P&gt;&lt;P&gt;pls,help me out thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Sep 2010 06:23:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-29T06:23:28Z</dc:date>
    <item>
      <title>How to calculate previous month data with current selected one</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221349#M74167</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 a field year contains jan,feb,mar........with sum(sales) as another field.&lt;/P&gt;&lt;P&gt;i need to calculate the difference between current selected month and previous month.(ie)if i selected feb month then the result should find difference between jan and feb.....&lt;/P&gt;&lt;P&gt;pls,help me out thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 06:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221349#M74167</guid>
      <dc:creator />
      <dc:date>2010-09-29T06:23:28Z</dc:date>
    </item>
    <item>
      <title>How to calculate previous month data with current selected one</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221350#M74168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several ways to do this. The best methods use set analysis. Within set analysis, then, there are several different approaches. For example: &lt;EM&gt;sum(&lt;/EM&gt; {$&amp;lt;MonthYear = {$(#=Only(MonthYear)-1)}&amp;gt;} Sales &lt;EM&gt;)&lt;/EM&gt;. This was taken directly from the Help file; search for "set analysis" for more details and other ideas (the above is not the simplest solution in your case).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 08:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221350#M74168</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-29T08:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous month data with current selected one</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221351#M74169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;P&gt;Use given expression for ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PMTD=sum({$Year={$(=max(Year)-$(=if(max(Month)=1,1,0)))},Month={$(=Month(addMonths(Max(orderDate),-1)))}&amp;gt;}Sales)&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;Regrads&lt;/P&gt;&lt;P&gt;Kaushal Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 12:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-month-data-with-current-selected-one/m-p/221351#M74169</guid>
      <dc:creator>kaushalview</dc:creator>
      <dc:date>2011-05-12T12:58:26Z</dc:date>
    </item>
  </channel>
</rss>

