<?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: How to display rolling 12 month on chart using expressions only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287852#M403058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the "AsOfMonth" method might help in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See link: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252#comment-45154" title="https://community.qlik.com/docs/DOC-4252#comment-45154"&gt;https://community.qlik.com/docs/DOC-4252#comment-45154&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 05:58:47 GMT</pubDate>
    <dc:creator>michelle_le</dc:creator>
    <dc:date>2017-02-03T05:58:47Z</dc:date>
    <item>
      <title>How to display rolling 12 month on chart using expressions only</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287851#M403057</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 want to display a rolling 12 month line chart for each month by calculating last 12 months aggregation.E.g: if we are in 2016 Jan then we need aggregate 2015 Feb To 2016 Jan and display it for 2016 Jan like this we need to do for all the current year months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MVR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 05:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287851#M403057</guid>
      <dc:creator>vishnumusani</dc:creator>
      <dc:date>2017-02-03T05:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display rolling 12 month on chart using expressions only</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287852#M403058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the "AsOfMonth" method might help in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See link: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252#comment-45154" title="https://community.qlik.com/docs/DOC-4252#comment-45154"&gt;https://community.qlik.com/docs/DOC-4252#comment-45154&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 05:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287852#M403058</guid>
      <dc:creator>michelle_le</dc:creator>
      <dc:date>2017-02-03T05:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to display rolling 12 month on chart using expressions only</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287853#M403059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned by Michelle Le, AsOfMonth is also a good work around for rolling months,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative which I felt easy for me, is to create rolling periods in script and use Set in expression in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script, use the following logic in calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(39)&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;FiscalYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;AutoNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(39)&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;FiscalYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,2),1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;RollingPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;RollingPeriod&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;"&amp;gt;=$(=max(&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;RollingPeriod&lt;/SPAN&gt;)-11)&amp;lt;=$(=Max(&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;RollingPeriod&lt;/SPAN&gt;))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;SalesValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) in your chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;When you select any Rolling period, it will give you rolling 12 months from the selected period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hope this Helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;-Ganesh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 06:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287853#M403059</guid>
      <dc:creator>ganeshsvm</dc:creator>
      <dc:date>2017-02-03T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to display rolling 12 month on chart using expressions only</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287854#M403060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Michelle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing this information, I have gone thru this earlier as well, but it is not providing me the desired results as shown in attached snapshot in my original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MVR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 06:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287854#M403060</guid>
      <dc:creator>vishnumusani</dc:creator>
      <dc:date>2017-02-03T06:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to display rolling 12 month on chart using expressions only</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287855#M403061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;create a YearMonth field in your data table to simplify the calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;example: 201601,201602 and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;and vStartYearMonth = &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;NUM(year(Today())) &amp;amp; NUM(month(Today()),'00')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;and vEndYearMonth = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #ff6600;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Date(Addmonths( Date(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.33px; font-family: inherit;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;vStartYearMonth),'YYYYMM')&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit; color: #3d3d3d; background-color: #f2f2f2;"&gt;,-11),'YYYYMM')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Just ensure your Month variables are '00'&amp;nbsp; format meaning Jan is '01' and not '1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;You expression should then be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;SUM ( {&amp;lt; YearMonth = {"&amp;gt;=$(vStartYearMonth)&amp;lt;$(vEndYearMonth)"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;with YearMonth you will be compare months over different years example 201611 to 201710&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 07:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-rolling-12-month-on-chart-using-expressions-only/m-p/1287855#M403061</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-02-03T07:47:39Z</dc:date>
    </item>
  </channel>
</rss>

