<?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 Problem with Rolling 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737349#M263725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below variables and expressions to get rolling 12 months data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYearMonth=max({&amp;lt;Flag={'XXX'}&amp;gt;} Date( Date# ( Month&amp;amp;'-'&amp;amp;Year_No,'MMM-YYYY'),'MMM-YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(vMaxMonthYear_PY12)==date(AddMonths(vMaxYearMonth,-11),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;Year_No={$(vCY)},DATE=,WeekStart=,Month=,Year_No=,Month_Year={'&amp;gt;=$(vMaxMonthYear_PY12) &amp;lt;=$(vMaxYearMonth)'}&amp;gt;}aggr(sum({$&amp;lt;Year_No={$(vCY)},DATE=,WeekStart=,Month=,Year_No=,Month_Year={'&amp;gt;=$(vMaxMonthYear_PY12) &amp;lt;=$(vMaxYearMonth)'}&amp;gt;}D360.Revenue_Prop),CODE,Month_Year)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am not getting any value. my data at date level, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body tell me where i am doing mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 15:09:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-01T15:09:08Z</dc:date>
    <item>
      <title>Problem with Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737349#M263725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below variables and expressions to get rolling 12 months data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYearMonth=max({&amp;lt;Flag={'XXX'}&amp;gt;} Date( Date# ( Month&amp;amp;'-'&amp;amp;Year_No,'MMM-YYYY'),'MMM-YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(vMaxMonthYear_PY12)==date(AddMonths(vMaxYearMonth,-11),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;Year_No={$(vCY)},DATE=,WeekStart=,Month=,Year_No=,Month_Year={'&amp;gt;=$(vMaxMonthYear_PY12) &amp;lt;=$(vMaxYearMonth)'}&amp;gt;}aggr(sum({$&amp;lt;Year_No={$(vCY)},DATE=,WeekStart=,Month=,Year_No=,Month_Year={'&amp;gt;=$(vMaxMonthYear_PY12) &amp;lt;=$(vMaxYearMonth)'}&amp;gt;}D360.Revenue_Prop),CODE,Month_Year)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am not getting any value. my data at date level, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body tell me where i am doing mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737349#M263725</guid>
      <dc:creator />
      <dc:date>2014-10-01T15:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737350#M263726</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;It is really long expression, Very difficult to find error.&lt;/P&gt;&lt;P&gt;But still you can try like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Write your variable Name in text Object.&lt;/P&gt;&lt;P&gt;Did you get any value for it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxYearMonth=max({&amp;lt;Flag={'XXX'}&amp;gt;} Date( Date# ( Month&amp;amp;'-'&amp;amp;Year_No,'MMM-YYYY'),'MMM-YYYY'))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; (vMaxMonthYear_PY12)&lt;STRONG&gt;==&lt;/STRONG&gt;date(AddMonths(vMaxYearMonth,-11),'MMM-YYYY')&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am not getting why there is == in your variable&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737350#M263726</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-01T15:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737351#M263727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can use like this at calendar&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em; background-color: #f2f2f2;"&gt;At back end&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date&amp;gt;= AddMonths(Today(), -12), 1)as Last12MonthFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;At front end&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Last12MonthFlag={1}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Hope this Helps&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: inherit;"&gt;hirish&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 09:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rolling-12-months/m-p/737351#M263727</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-10-30T09:29:09Z</dc:date>
    </item>
  </channel>
</rss>

