<?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: Prior Period / Last 6 Month Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072130#M937369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks!! It's working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 15:50:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-08T15:50:33Z</dc:date>
    <item>
      <title>Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072123#M937362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attach the QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am selecting the period the output is showing for current month and prior month. But if I am selecting month it's not showing prior period value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072123#M937362</guid>
      <dc:creator />
      <dc:date>2016-02-08T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072124#M937363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no data available for Year 2016 and Period 11 and 12 and that is why you are seeing 0's (or nulls in your case because Suppress When Null is checked on Presentation tab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="113898" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113898_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072124#M937363</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-08T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072125#M937364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because your selection in months in combination with the set expressions that sets the period to prior period results in an incompatible set. You can clear selections in month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Year = {$(vMaxYr)}&amp;nbsp; , Period = {$(vMaxPeriodH)}&lt;STRONG&gt;,Month=&lt;/STRONG&gt; &amp;gt;} qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or look into a different concept:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072125#M937364</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T14:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072126#M937365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !! It is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to calculate the last 6 months average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an example when you select Dec it must give avg from July - Dec , for Nov - Jun- Nov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072126#M937365</guid>
      <dc:creator />
      <dc:date>2016-02-08T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072127#M937366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either work with the AsOf table approach or using set analysis.&lt;/P&gt;&lt;P&gt;Since last 6 months can spread across multiple years, you should create a sequential counter in your script, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year*12+Period as PeriodNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can easily use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg({&amp;lt; Year = , Period =, Month=, PeriodNum = {"&amp;gt;=$(=Max(PeriodNum)-5)&amp;lt;=$(=Max(PeriodNum))"} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;gt;} qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072127#M937366</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072128#M937367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please amend this to the QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the source file for the QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072128#M937367</guid>
      <dc:creator />
      <dc:date>2016-02-08T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072129#M937368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just like I've shown above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072129#M937368</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072130#M937369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks!! It's working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072130#M937369</guid>
      <dc:creator />
      <dc:date>2016-02-08T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072131#M937370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Only prob is when selecting any month it's only taking that month value.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 17:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072131#M937370</guid>
      <dc:creator />
      <dc:date>2016-02-08T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072132#M937371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it won't take only this month's value, since I cleared the selection in month field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(TOTAL&amp;nbsp; {&amp;lt; Year = , Period =, &lt;STRONG&gt;Month=,&lt;/STRONG&gt; PeriodNum = {"&amp;gt;=$(=Max(PeriodNum)-5)&amp;lt;=$(=Max(PeriodNum))"} &amp;gt;} qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give an example that shows what you are telling using the sample QVW I've attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 17:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072132#M937371</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T17:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Period / Last 6 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072133#M937372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extremely Sorry. It's perfectly working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 17:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Period-Last-6-Month-Calculation/m-p/1072133#M937372</guid>
      <dc:creator />
      <dc:date>2016-02-08T17:48:18Z</dc:date>
    </item>
  </channel>
</rss>

