<?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: Last 3 month sales value in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118227#M18239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 14:39:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-19T14:39:43Z</dc:date>
    <item>
      <title>Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118220#M18232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help in calculating the last 3 full months sum in the script not in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be more than one transaction in a month and I want to sum all the previous three months(excluding the current month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data with the expected output attached for your kind reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118220#M18232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-18T18:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118221#M18233</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;Sum({&amp;lt;Cal_Date={"&amp;gt;=$(=Num(MonthStart(AddMonths(Max(Cal_Date),-4)))) &amp;lt;=$(=Num(MonthEnd(AddMonths(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Cal_Date&lt;/SPAN&gt;),-1))))"}&amp;gt;}Sales_Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 10:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118221#M18233</guid>
      <dc:creator>nasirsaikh</dc:creator>
      <dc:date>2018-10-19T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118222#M18234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the logic in the script not the set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 12:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118222#M18234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118223#M18235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly what you want but check if below will be of use&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>Fri, 19 Oct 2018 13:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118223#M18235</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-19T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118224#M18236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already tried these options before posting this question and didn't worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118224#M18236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118225#M18237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jebamalai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the attached (will also post code below as I have personal edition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;dim, Amount, DateField&lt;BR /&gt;A, 65.33, 26-Feb-2018&lt;BR /&gt;A, 130.76, 16-Mar-2018&lt;BR /&gt;A, 65.52, 03-Apr-2018&lt;BR /&gt;A, 130.94, 21-Apr-2018&lt;BR /&gt;A, 65.55, 09-May-2018&lt;BR /&gt;A, 261.81, 27-May-2018&lt;BR /&gt;A, 327.24, 14-Jun-2018&lt;BR /&gt;A, 65.59, 02-Jul-2018&lt;BR /&gt;A, 392.89, 20-Jul-2018&lt;BR /&gt;A, 523.83, 07-Aug-2018&lt;BR /&gt;A, 65.59, 25-Aug-2018&lt;BR /&gt;A, 131.04, 12-Sep-2018&lt;BR /&gt;A, 458.36, 30-Sep-2018&lt;BR /&gt;A, 65.62, 18-Oct-2018&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;dates:&lt;BR /&gt;Load Distinct&lt;BR /&gt; Monthstart(AddMonths(DateField,-3)) as StartDate,&lt;BR /&gt; MonthEnd(AddMonths(DateField,-1)) as EndDate,&lt;BR /&gt; DateField AS LinkDate&lt;BR /&gt;Resident data;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inner Join IntervalMatch (DateField)&lt;BR /&gt;Load&lt;BR /&gt; StartDate,&lt;BR /&gt; EndDate&lt;BR /&gt;Resident dates;&lt;/P&gt;&lt;P&gt;Join (dates)&lt;BR /&gt;Load&lt;BR /&gt; DateField,&lt;BR /&gt; dim,&lt;BR /&gt; Amount&lt;BR /&gt;Resident data;&lt;/P&gt;&lt;P&gt;datesaggr:&lt;BR /&gt;Load&lt;BR /&gt; LinkDate,&lt;BR /&gt; dim,&lt;BR /&gt; Sum(Amount) as ThreeMonth&lt;BR /&gt;Resident dates&lt;BR /&gt;group by LinkDate, dim;&lt;/P&gt;&lt;P&gt;Left Join (data)&lt;BR /&gt;Load&lt;BR /&gt; LinkDate as DateField,&lt;BR /&gt; dim,&lt;BR /&gt; ThreeMonth&lt;BR /&gt;resident datesaggr;&lt;/P&gt;&lt;P&gt;drop tables dates, datesaggr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118225#M18237</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-10-19T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118226#M18238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can just use Monthend and MonthEnd for add or subtract month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Cal_Date={"&amp;gt;=$(=Num(MonthStart(Max(Cal_Date),-4))) &amp;lt;=$(=Num(MonthEnd(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Cal_Date&lt;/SPAN&gt;),-1)))"}&amp;gt;}Sales_Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118226#M18238</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2018-10-19T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118227#M18239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118227#M18239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118228#M18240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nicely done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118228#M18240</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-19T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118229#M18241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - There &lt;EM&gt;may&lt;/EM&gt; be a neater solution. I'd been on the look out for an intervalmatch challenge for a while &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/118229#M18241</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-10-19T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month sales value in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/1610478#M445094</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Hello, My requirement is the same, but here I have&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT color="#FF0000"&gt;CALMONTH&amp;amp;'-'&amp;amp;CUSTOMER&amp;amp;'-'&amp;amp;MATERIAL&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;AS&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;SalesKey&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Can you help me with the script.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Thanks in advance&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 05:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-sales-value-in-Script/m-p/1610478#M445094</guid>
      <dc:creator>renuka_sasikumar</dc:creator>
      <dc:date>2019-08-08T05:47:17Z</dc:date>
    </item>
  </channel>
</rss>

