<?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: 3 Month Prior Sales in set-analysis/Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20066#M3329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I prefer using a Month Number in the calendar for these type of queries.&lt;/P&gt;&lt;P&gt; MonthNum=Year*12 + Month. &lt;/P&gt;&lt;P&gt;Now using this you can calculate the value in Set&lt;/P&gt;&lt;P&gt;Try&amp;nbsp; Sum({&amp;lt;MonthNum={Max(MonthNum)-3},Month=,Year=&amp;gt;}Sales)&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;Devyanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 06:52:32 GMT</pubDate>
    <dc:creator>devyanshu_gupta</dc:creator>
    <dc:date>2018-05-29T06:52:32Z</dc:date>
    <item>
      <title>3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20061#M3324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck in a problem where I need to present the 3 Month prior sales (including the 3rd Month) in a straight table , but im unable to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here im attaching the image where you can find the sample example of the problem stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3MonthProblem.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203673_3MonthProblem.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt; any sort of help is appreciate.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20061#M3324</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-28T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20062#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;Month-Year={"&amp;gt;=$(=AddMonths(Max(Month-Year),-3)) &amp;lt;$(=Max(Month-Year))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 11:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20062#M3325</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2018-05-28T11:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20063#M3326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried this , but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;I used this formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(Sum({&amp;lt;[Month-Year]={"&amp;gt;=$(=AddMonths(Max([Month-Year]),-3)) &amp;lt;$(=Max([Month-Year]))"}&amp;gt;}Sales)/1000,'$###.##k')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3MonthProblem1.0.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203674_3MonthProblem1.0.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 11:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20063#M3326</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-28T11:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20064#M3327</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;STRONG&gt;Above(Sum(Sales), 3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8242"&gt;Missing Manual - Above() and Below()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 13:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20064#M3327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-28T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20065#M3328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey this works if i dont make any selection from the month or year. &lt;/P&gt;&lt;P&gt;but as you see if i select a particular year i wont be able to see data for JAN FEB MAR as according to the formula there's nothing above it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3MonthProblem1.1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203748_3MonthProblem1.1.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any other alternative would also work .&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 06:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20065#M3328</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-29T06:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20066#M3329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I prefer using a Month Number in the calendar for these type of queries.&lt;/P&gt;&lt;P&gt; MonthNum=Year*12 + Month. &lt;/P&gt;&lt;P&gt;Now using this you can calculate the value in Set&lt;/P&gt;&lt;P&gt;Try&amp;nbsp; Sum({&amp;lt;MonthNum={Max(MonthNum)-3},Month=,Year=&amp;gt;}Sales)&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;Devyanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 06:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20066#M3329</guid>
      <dc:creator>devyanshu_gupta</dc:creator>
      <dc:date>2018-05-29T06:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20067#M3330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try using this expression, It din seem to work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthNumber={'Max(MonthNumber)-3'} ,Month=,Year=&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="3MonthProblem1.2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203749_3MonthProblem1.2.PNG" style="height: auto; width: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 07:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20067#M3330</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-29T07:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20068#M3331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this before where I used a resident load to bring the data back in as a comparative figure.&amp;nbsp; It gives more flexibility for doing period comparisons and as far as I know it's more efficient than a complex expression with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a simple model of how this could work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 07:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20068#M3331</guid>
      <dc:creator>rodjager</dc:creator>
      <dc:date>2018-05-29T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20069#M3332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &amp;gt; 0, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Month-Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),3)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;This seems to be working as expected.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 08:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20069#M3332</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-29T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20070#M3333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works too Rod , Thanks alot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 08:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20070#M3333</guid>
      <dc:creator>abhaytrip</dc:creator>
      <dc:date>2018-05-29T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Prior Sales in set-analysis/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20071#M3334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Above(Sum({&amp;lt;[Month-Year]&amp;gt;}Sales), 3) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 10:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Prior-Sales-in-set-analysis-Scripting/m-p/20071#M3334</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-29T10:59:19Z</dc:date>
    </item>
  </channel>
</rss>

