<?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: Last Three months sales? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Three-months-sales/m-p/467504#M487382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukram,&lt;/P&gt;&lt;P&gt;When I have this kind of filter to do, I use counter in my calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in your case, you can add in the Sales table such a column: &lt;/P&gt;&lt;P&gt;(year(today())*12+num(month(today())))-(year(TransactionDate)*12+num(month(TransactionDate))) as MonthCounter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your chart, you can use a set analysis like this:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;MonthCounter={'&amp;lt;=$(=max(MonthCounter))&amp;gt;=$(=max(MonthCounter)-2)'}&amp;gt;}[Sales VAL])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 22:51:04 GMT</pubDate>
    <dc:creator>vincent_ardiet</dc:creator>
    <dc:date>2013-02-25T22:51:04Z</dc:date>
    <item>
      <title>Last Three months sales?</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Three-months-sales/m-p/467503#M487381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i trying to calculate last three months sales based on the selection.&lt;/P&gt;&lt;P&gt;suppose if i select Jan-2013 than i need to show the sales for last 3 months. (i,e: dec-2012 ,Nov-2012, Oct-2012).&lt;/P&gt;&lt;P&gt;but the main concern is based on&amp;nbsp; financial year which starts from April-May. &lt;/P&gt;&lt;P&gt;if i select 2012-Apr than last 3 months 2011-Mar ,2011-Feb ,2011-jan.&lt;/P&gt;&lt;P&gt;i have attached the qvw file , which contain financial year and financialMonth number and FQuarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope someone will help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 14:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Three-months-sales/m-p/467503#M487381</guid>
      <dc:creator />
      <dc:date>2013-02-25T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Last Three months sales?</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Three-months-sales/m-p/467504#M487382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukram,&lt;/P&gt;&lt;P&gt;When I have this kind of filter to do, I use counter in my calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in your case, you can add in the Sales table such a column: &lt;/P&gt;&lt;P&gt;(year(today())*12+num(month(today())))-(year(TransactionDate)*12+num(month(TransactionDate))) as MonthCounter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your chart, you can use a set analysis like this:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;MonthCounter={'&amp;lt;=$(=max(MonthCounter))&amp;gt;=$(=max(MonthCounter)-2)'}&amp;gt;}[Sales VAL])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 22:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Three-months-sales/m-p/467504#M487382</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2013-02-25T22:51:04Z</dc:date>
    </item>
  </channel>
</rss>

