<?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 do Rolling 12 months for latest 12 months with Two Dimensions: in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1932382#M1219018</link>
    <description>&lt;P&gt;Hi Sunny ,&lt;/P&gt;
&lt;P&gt;Please can you attach script in text file or can you create QVF for the same.&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 11:22:04 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2022-05-18T11:22:04Z</dc:date>
    <item>
      <title>How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280292#M857088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the sales growth for latest 12 months comparing with previous 12 month against&amp;nbsp; Yearmonth &amp;amp; brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Rolling 12 months for latest 12 months with Two Dimensions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Dimensions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. YearMonth&lt;/P&gt;&lt;P&gt;2. Brand&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Need show to latest 12 months &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Expressions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Formula&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;: (CY-PY)/PY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;CY&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; : Latest 12 months i.e.,&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;(Aug-15 to Jul-16)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PY&lt;/STRONG&gt; : Previous latest 12 months i.e.&lt;STRONG&gt;,(Aug-14 to Jul-15)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Expression &lt;/SPAN&gt;Am&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'MMM-YY'))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year=, Month=&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -23), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'MMM-YY'))"} ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year=, Month=&amp;gt;}Sales), 12)) - 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when iam using the second dimension (Brand) the expression part is not working and it showing like no data to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280292#M857088</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280293#M857089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr((Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'MMM-YY'))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year=, Month=&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -23), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'MMM-YY'))"} ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year=, Month=&amp;gt;}Sales), 12)) - 1, Brand, YearMonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151707_Capture.PNG" style="height: 278px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280293#M857089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280294#M857090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart only 8 months are displaying .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remaining 4 months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 11:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280294#M857090</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-02T11:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280295#M857091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not entirely sure, but can you check if this looks right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151713_Capture.PNG" style="height: 335px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 12:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280295#M857091</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280296#M857092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny there is some mis matching in the values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from my side iam sry i was a bit confused and make you to confused &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280296#M857092</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-02T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280297#M857093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so we need to wait to fix the issues at your end before we move forward?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280297#M857093</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T13:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280298#M857094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Sunny &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get back to you once i fix the issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 04:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280298#M857094</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-03T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280299#M857095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Requirement is quit bit complicated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate incremental share values against YearMonth &amp;amp; Brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. YearMonth&lt;/P&gt;&lt;P&gt;2. Brands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; Need show to latest 12 months&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formula: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Current Year Sale /&amp;nbsp; Current Year Total Sale)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;(Previous Year Sale / Previous Year Total Sale)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CY&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; : Latest 12 months i.e.,&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;(Aug-15 to Jul-16)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;PY&lt;/STRONG&gt; : Previous latest 12 months i.e.&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,(Aug-14 to Jul-15)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I wrote this expression,but the values are not correct&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr((Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'MMM-YY'))"},Year=, Month=, Brand=&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL {&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'MMM-YY'))"},Year=, Month=, Brand=&amp;gt;}Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Above(Sum({&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -23), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'MMM-YY'))"} ,Year=, Month=, Brand=&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL{&amp;lt;YearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -23), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'MMM-YY'))"} ,Year=, Month=, Brand=&amp;gt;}Sales),12)),Brand,YearMonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly have a look into the QVW&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 11:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280299#M857095</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-03T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280300#M857096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the correct values according to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 12:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280300#M857096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-03T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280301#M857097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; selection &lt;/P&gt;&lt;P&gt;year =2016, month=Jul, brand= uvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales= 472&amp;nbsp; Total Sales =39174&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Year :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales= 673 &lt;SPAN style="font-size: 13.3333px;"&gt;Total Sales =&lt;/SPAN&gt; 35427&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually:&lt;/P&gt;&lt;P&gt;(472/39174) -(673/35427) = -0.006948002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Wise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Current Year Sale /&amp;nbsp; Current Year Total Sale)-(Previous Year Sale / Previous Year Total Sale)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=-0.0110126988&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 12:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280301#M857097</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-03T12:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280302#M857098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to change the approach here because it seems that your data might have missing months within a brand where there are no sales available. I used the&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌ approach to overcome this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(YearMonth), 'MMM-YY') as YearMonth, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Brand, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[SAMPLE.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(YearMonth) AS Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Month(YearMonth)) AS MonthNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(YearMonth) AS Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By YearMonth;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AsOfCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT YearMonth as AsOfYearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; AddMonths(YearMonth, -12) as YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'PY' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Calendar;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (AsOfCalendar)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT YearMonth as AsOfYearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'CY' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Calendar;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152061_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AsOfYearMonth&lt;/P&gt;&lt;P&gt;2) Brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'CY'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL {&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'CY'}&amp;gt;}Sales),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Sum({&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'PY'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL {&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'PY'}&amp;gt;}Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 21:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280302#M857098</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-05T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280303#M857099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script change and expression is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only one issue is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year = 2015&lt;/P&gt;&lt;P&gt;month = July&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension in chart show from Aug-15 to Jul-16 instead of Aug-14 to Jul-15&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rr.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152144_rr.PNG" style="height: 294px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280303#M857099</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-06T11:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280304#M857100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Created AsOfMonth and AsOfYear for selections and added these to the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'CY'}&lt;SPAN style="color: #ff0000;"&gt;, AsOfMonth, AsOfYear&lt;/SPAN&gt;&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL {&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'CY'}&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, AsOfMonth, AsOfYear&lt;/STRONG&gt;&amp;gt;}Sales),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Sum({&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'PY'}&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, AsOfMonth, AsOfYear&lt;/STRONG&gt;&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL {&amp;lt;AsOfYearMonth ={"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(AsOfYearMonth), -11), 'MMM-YY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(AsOfYearMonth), 'MMM-YY'))"},Year=, Month=, Brand=, Flag = {'PY'}&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, AsOfMonth, AsOfYear&lt;/STRONG&gt;&amp;gt;}Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280304#M857100</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280305#M857101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Sunny i will make changes and do work on it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 12:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280305#M857101</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-06T12:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280306#M857102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny it is working fine and thank you very much&lt;/P&gt;&lt;P&gt;Cheers...!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 07:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280306#M857102</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-07T07:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280307#M857103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any chance of getting top brand per month??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1280307#M857103</guid>
      <dc:creator>hemanthaanichet</dc:creator>
      <dc:date>2017-02-07T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Rolling 12 months for latest 12 months with Two Dimensions:</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1932382#M1219018</link>
      <description>&lt;P&gt;Hi Sunny ,&lt;/P&gt;
&lt;P&gt;Please can you attach script in text file or can you create QVF for the same.&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 11:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-Rolling-12-months-for-latest-12-months-with-Two/m-p/1932382#M1219018</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-05-18T11:22:04Z</dc:date>
    </item>
  </channel>
</rss>

