<?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 Last 12 Months Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862835#M301998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Dear Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I have a date column which is in number format. I want to display the sales of last 12 months including this month. April-15, Mar-15,.., May-14.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;My dimension would be say 'Item'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I want that date expression (which filters the particular month like april-15, mar-15,.....) to be in a variable so that, I can easily reduce one month by subtracting any value from that variable in the set expression. so that I need not write the date expression again and again in all the 12 months sales expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Please suggest any better way of doing it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Manideep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 04:18:56 GMT</pubDate>
    <dc:creator>manideep78</dc:creator>
    <dc:date>2015-04-07T04:18:56Z</dc:date>
    <item>
      <title>Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862835#M301998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Dear Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I have a date column which is in number format. I want to display the sales of last 12 months including this month. April-15, Mar-15,.., May-14.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;My dimension would be say 'Item'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I want that date expression (which filters the particular month like april-15, mar-15,.....) to be in a variable so that, I can easily reduce one month by subtracting any value from that variable in the set expression. so that I need not write the date expression again and again in all the 12 months sales expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Please suggest any better way of doing it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Manideep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 04:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862835#M301998</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T04:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862836#M301999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use this expression. put your date as place of TRANDATE(numeric field is fine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxDate1=Date(Max(TRANDATE))&lt;/P&gt;&lt;P&gt;vRollingDate1=AddMonths(Max([TRANDATE]),-11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;FinYear= ,FinMonth=,TRANDATE={"&amp;lt;=$(vMaxDate1) &amp;gt;=$(vRollingDate1)"}&amp;gt;}&amp;nbsp; Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vimlesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 04:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862836#M301999</guid>
      <dc:creator />
      <dc:date>2015-04-07T04:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862837#M302000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862837#M302000</guid>
      <dc:creator />
      <dc:date>2015-04-07T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862838#M302001</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;Create MonthNAme field in Script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(datefield) as MonthName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in expression write below set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;dateField={"&amp;gt;=$(=date(addmonths(today(),-11)))&amp;lt;=$(=date(today()))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or write&lt;/P&gt;&lt;P&gt;max(date) instead of today() if you want on selection basis.&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, 07 Apr 2015 06:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862838#M302001</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-07T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862839#M302002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could not take the max date, since my date field will have maximum date upto 2022 years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862839#M302002</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T06:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862840#M302003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need every month sales from this month to last 12 months. not the aggregated sum of all the last 12 months sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862840#M302003</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862841#M302004</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;Add MonthName as your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work.&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, 07 Apr 2015 06:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862841#M302004</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-07T06:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862842#M302005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dimension is Item&amp;nbsp; and I need sales for every month starting from this month to last 12 months and not aggregated sum for all the last 12 months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862842#M302005</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T06:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862843#M302006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont want to take monthname as dimension. I need to control it all in the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862843#M302006</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T06:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862844#M302007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;vMaxDate1=Date(Max(TRANDATE))&lt;/P&gt;&lt;P&gt;vRollingDate1=AddMonths(Max([TRANDATE]),-11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you will select 2022 then it will give result 2022 to 2021 .because you are making variable with your date.&lt;/P&gt;&lt;P&gt;don't use today for maxdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or send a sample file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vimlesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862844#M302007</guid>
      <dc:creator />
      <dc:date>2015-04-07T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862845#M302008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without any selection I want 12 months from 2015 to 2014 thought the max year is 2022. if current year is 2016 then 2016 to 2016 like that. the default year should be current year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862845#M302008</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2015-04-07T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862846#M302009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;then you fix the date in variable.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vimlesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 06:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months-Sales/m-p/862846#M302009</guid>
      <dc:creator />
      <dc:date>2015-04-07T06:51:53Z</dc:date>
    </item>
  </channel>
</rss>

