<?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: Subtract values for rolling months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376617#M140412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Loannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression is not working............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to have YEAR OVER YEAR Volume for 12 months,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan12 Vol- Jan11Vol, Feb12Vol- Feb12Vol...........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 11:22:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-14T11:22:55Z</dc:date>
    <item>
      <title>Subtract values for rolling months</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376613#M140408</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;I'm looking to subtract values from the current month with the Previous Year's same month, as in (May 2012 - May 2011) for a rolling period of 1 year. That is, the current month is May 2012, and its dynamic; I'm using a variable to capture both the dates but I'm not able to get the values for May 2011. Similarly I need the same for the previous 12 months. I'm using these values to plot a line graph to find the Trend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The series am looking for:&lt;/P&gt;&lt;P&gt;(May 2012 - May 2011), (Apr 2012 - Apr 2011) and so on, for 12 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376613#M140408</guid>
      <dc:creator />
      <dc:date>2012-08-09T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract values for rolling months</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376614#M140409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Sum({&amp;lt;MonthYear={"$(=AddMonths(MonthYear,-12))&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;assuming that MonthYear is your month field and Sales the value you are after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;Then limit the chart values to 12.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376614#M140409</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-09T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract values for rolling months</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376615#M140410</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;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the expression is not working, is there anything to do with the double quotes put before the dollar symbol? It treates the expression after the double quotes as field and when I remove it, its like a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Sales) - &lt;SPAN style="background-color: #ffffff; font-family: Arial; color: #636363; font-size: 12px;"&gt;Sum({&amp;lt;MonthYear={&lt;STRONG&gt;"&lt;/STRONG&gt;$(=AddMonths(MonthYear,-12))&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: #636363; font-size: 12px;"&gt;&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;Krishna&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 07:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376615#M140410</guid>
      <dc:creator />
      <dc:date>2012-08-14T07:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract values for rolling months</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376616#M140411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;true I forgot to close them. Sorry!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sum(Sales) - &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Sum({&amp;lt;MonthYear={&lt;STRONG&gt;"&lt;/STRONG&gt;$(=AddMonths(MonthYear,-12))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample application would help if the syntax is still incorect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 08:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376616#M140411</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-14T08:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract values for rolling months</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376617#M140412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Loannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression is not working............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to have YEAR OVER YEAR Volume for 12 months,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan12 Vol- Jan11Vol, Feb12Vol- Feb12Vol...........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 11:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-values-for-rolling-months/m-p/376617#M140412</guid>
      <dc:creator />
      <dc:date>2012-08-14T11:22:55Z</dc:date>
    </item>
  </channel>
</rss>

