<?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 Rolling 12 MoM comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-MoM-comparison/m-p/479255#M1135555</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 need a help on QoQ comparison of my Inventory numbers.&lt;/P&gt;&lt;P&gt;If I want to compare sales figure of my portfolio on MoM (Nov'13 vs. Nov'12) with rolling 12 months, I created following two expressions&lt;/P&gt;&lt;P&gt;Expression 1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -11), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0), 'MMM-YY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -23), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), -12), 'MMM-YY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is giving correct comparison of MoM figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to compare Inventory, I cant sum the numbers, I have to pick up sum of inventory no of a maximum week. Say for example, If I am tracking inventory for Oct'13, I will report only last week inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Inventory :&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(if([Fiscal Week Ending]=Aggr(Nodistinct Max([Fiscal Week Ending]),[Year]),TOTAL_INV,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Now I want to compare these two things, showing MoM comparison of Invenory figures for rolling 12 months and Inventory would be subject to max week inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope , I have able to explain this problem properly.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 09:25:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-05T09:25:07Z</dc:date>
    <item>
      <title>Rolling 12 MoM comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-MoM-comparison/m-p/479255#M1135555</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 need a help on QoQ comparison of my Inventory numbers.&lt;/P&gt;&lt;P&gt;If I want to compare sales figure of my portfolio on MoM (Nov'13 vs. Nov'12) with rolling 12 months, I created following two expressions&lt;/P&gt;&lt;P&gt;Expression 1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -11), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0), 'MMM-YY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -23), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), -12), 'MMM-YY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is giving correct comparison of MoM figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to compare Inventory, I cant sum the numbers, I have to pick up sum of inventory no of a maximum week. Say for example, If I am tracking inventory for Oct'13, I will report only last week inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Inventory :&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(if([Fiscal Week Ending]=Aggr(Nodistinct Max([Fiscal Week Ending]),[Year]),TOTAL_INV,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Now I want to compare these two things, showing MoM comparison of Invenory figures for rolling 12 months and Inventory would be subject to max week inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope , I have able to explain this problem properly.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 09:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-MoM-comparison/m-p/479255#M1135555</guid>
      <dc:creator />
      <dc:date>2013-11-05T09:25:07Z</dc:date>
    </item>
  </channel>
</rss>

