<?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: Comparing selected data with previous data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431302#M1154854</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; Try below function to get the previous month data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider you have Month,Year and Date as field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 08:02:00 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-03-12T08:02:00Z</dc:date>
    <item>
      <title>Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431301#M1154853</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 have a table with Revenue numbers with dates and months. I want to compare the selected Revenue numbers with the previous Revenue numbers. (SELECTED_REV / PREVIOUS_REV) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. if i have selected Mar then I would like to Compare Revenue in March compared to Revenue in Feburary (MAR_REV / FEB_REV). If the user sellects March and April then it should be compared with Jan and Feb. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to hard code it for any fixed duration. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 07:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431301#M1154853</guid>
      <dc:creator />
      <dc:date>2013-03-12T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431302#M1154854</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; Try below function to get the previous month data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider you have Month,Year and Date as field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 08:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431302#M1154854</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-12T08:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431303#M1154855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for&amp;nbsp; a single selection but when I choose multiple months then it doesnt give the correct answer. The QVW file is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431303#M1154855</guid>
      <dc:creator />
      <dc:date>2013-03-12T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431304#M1154856</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; Its right. This expression will be for one month selection only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; what you exactly want to do, will you please describe with example.&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>Tue, 12 Mar 2013 09:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431304#M1154856</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-12T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431305#M1154857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to find the percentage increase in Sales. So if the user selects Feb then it should display the percantage growth of sales over Jan (this can be done with the expression you provided). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the user will also be selecting multiple months. Lets say Apr, May and June. In this case i want to see Sales of Jan, Feb and Mar so i can find out the percentage growth of sales. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431305#M1154857</guid>
      <dc:creator />
      <dc:date>2013-03-12T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431306#M1154858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using the above function. This has one disadvantage: the first selected month can't be compared with the previous one. If you need that you'll have to create an 'AsOf' table. See attached qvw for both options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 10:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431306#M1154858</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-12T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing selected data with previous data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431307#M1154859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. You guys have somewhat answered the question but it still doesnt work with multiple selections. But ill try to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 12:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-selected-data-with-previous-data/m-p/431307#M1154859</guid>
      <dc:creator />
      <dc:date>2013-03-12T12:01:47Z</dc:date>
    </item>
  </channel>
</rss>

