<?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 calculate sum of last two months in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385388#M799609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much. &lt;/P&gt;&lt;P&gt;And kindly need your help on my problem in case having 1 more dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;date, sales, outlet&lt;/P&gt;&lt;P&gt;1/1/2017, 1, a&lt;/P&gt;&lt;P&gt;2/1/2017, 1, a&lt;/P&gt;&lt;P&gt;4/1/2017, 0, a&lt;/P&gt;&lt;P&gt;5/1/2017, 0, a&lt;/P&gt;&lt;P&gt;7/1/2017, 1, a&lt;/P&gt;&lt;P&gt;9/1/2017, 1, a&lt;/P&gt;&lt;P&gt;10/1/2017, 1, a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/1/2017, 0, b&lt;/P&gt;&lt;P&gt;2/1/2017, 1, b&lt;/P&gt;&lt;P&gt;3/1/2017, 1, b&lt;/P&gt;&lt;P&gt;4/1/2017, 1, b&lt;/P&gt;&lt;P&gt;5/1/2017, 0, b&lt;/P&gt;&lt;P&gt;6/1/2017, 0, b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/1/2017, 0, c&lt;/P&gt;&lt;P&gt;4/1/2017, 1, c&lt;/P&gt;&lt;P&gt;5/1/2017, 1, c&lt;/P&gt;&lt;P&gt;6/1/2017, 0, c&lt;/P&gt;&lt;P&gt;7/1/2017, 0, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 07:51:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-04T07:51:29Z</dc:date>
    <item>
      <title>How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385377#M799598</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;If I have one more dimension (employee), how to calculate sum of two last month for each employee?&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-family: inherit;"&gt;Tab:&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;LOAD * Inline [&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;Data , Month, Employee&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;2, 1, a&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;2, 1,b&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;4, 2,a&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;5, 2,c&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;1, 3,a&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;2, 4,b&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;/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;/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&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tu Nguyen&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-calculate-sum-of-last-two-months-in-script/m-p/1385377#M799598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385378#M799599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Tab:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Data , Month, Employee&lt;BR /&gt; 2, 1, a&lt;BR /&gt; 2, 1,b&lt;BR /&gt; 4, 2,a&lt;BR /&gt; 5, 2,c&lt;BR /&gt; 1, 3,a&lt;BR /&gt; 2, 4,b&lt;BR /&gt; ]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Left&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; (Tab)&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Employee&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Data&lt;/SPAN&gt;,-&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;),&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Data&lt;/SPAN&gt;,-&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;,2)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SumMonth&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Tab&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Employee&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184842_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385378#M799599</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385379#M799600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It work useful for that case.&lt;/P&gt;&lt;P&gt;I have another question.&lt;/P&gt;&lt;P&gt;I have sample data as below, so the question is in 3 previous days having sales or not?&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;month, sales&lt;/P&gt;&lt;P&gt;1, 1&lt;/P&gt;&lt;P&gt;2, 1&lt;/P&gt;&lt;P&gt;4, 0&lt;/P&gt;&lt;P&gt;5, 0&lt;/P&gt;&lt;P&gt;7, 1&lt;/P&gt;&lt;P&gt;9, 1&lt;/P&gt;&lt;P&gt;10, 1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expected result as image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test_ask.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184878_test_ask.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385379#M799600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T08:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385380#M799601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why month 8 sales 1 e months 9/10 sales 0&amp;nbsp; in Final Table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385380#M799601</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385381#M799602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&amp;nbsp; I miss data. The data load should be:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Data2:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;month, sales&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;1, 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2, 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;3, 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;4, 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;5, 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;6, 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;7, 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;8, 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;9, 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;10, 0];&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385381#M799602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385382#M799603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First sample data&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Data2:&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; month, sales&lt;BR /&gt; 1, 1&lt;BR /&gt; 2, 1&lt;BR /&gt; 4, 0&lt;BR /&gt; 5, 0&lt;BR /&gt; 7, 1&lt;BR /&gt; 9, 1&lt;BR /&gt; 10, 1]&lt;/SPAN&gt;;&lt;BR /&gt; Temp:&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Noconcatenate&lt;/SPAN&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Alt&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;M1&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Data2&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;desc&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; Data2;&lt;BR /&gt; Table:&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Concatenate&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; 0 &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;+&lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;()&lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;+&lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;() &amp;lt; &lt;SPAN style="color: #800000;"&gt;M1&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Left&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; (Temp)&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;),&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;))) &amp;gt; 0,1,0) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HavingSales_3_previous_month&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184843_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385382#M799603</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385383#M799604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2nd data sample (doesn't need to generate missing data)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Data2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; month, sales&lt;BR /&gt; 1, 1&lt;BR /&gt; 2, 1&lt;BR /&gt; 3, 0&lt;BR /&gt; 4, 0&lt;BR /&gt; 5, 0&lt;BR /&gt; 6, 0&lt;BR /&gt; 7, 1&lt;BR /&gt; 8, 1&lt;BR /&gt; 9, 0&lt;BR /&gt; 10, 0]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Left&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; (Data2)&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;),&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;))) &amp;gt; 0,1,0) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HavingSales_3_previous_month&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Data2&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385383#M799604</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385384#M799605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's great! It's helpful for me.&lt;/P&gt;&lt;P&gt;I have 2 question on this:&lt;/P&gt;&lt;P&gt;- If I apply this for a large table (about 500.000 rows), does it work well?&lt;/P&gt;&lt;P&gt;- If I have one more dimension ( employee - about 300.000 employees) and field [month] now is [date] ( data for 3 month, so about 90 date) =&amp;gt; total row is 27.000.000 rows, does it work well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385384#M799605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385385#M799606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Order By in Script (Load, no Select from DB) is very slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385385#M799606</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T10:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385386#M799607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is there any another way or solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385386#M799607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385387#M799608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table loaded already sorted.&lt;/P&gt;&lt;P&gt;However, in my script Order By of large table (&amp;gt; 30M rows) lasts 10/15 minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 11:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385387#M799608</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-28T11:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385388#M799609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much. &lt;/P&gt;&lt;P&gt;And kindly need your help on my problem in case having 1 more dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;date, sales, outlet&lt;/P&gt;&lt;P&gt;1/1/2017, 1, a&lt;/P&gt;&lt;P&gt;2/1/2017, 1, a&lt;/P&gt;&lt;P&gt;4/1/2017, 0, a&lt;/P&gt;&lt;P&gt;5/1/2017, 0, a&lt;/P&gt;&lt;P&gt;7/1/2017, 1, a&lt;/P&gt;&lt;P&gt;9/1/2017, 1, a&lt;/P&gt;&lt;P&gt;10/1/2017, 1, a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/1/2017, 0, b&lt;/P&gt;&lt;P&gt;2/1/2017, 1, b&lt;/P&gt;&lt;P&gt;3/1/2017, 1, b&lt;/P&gt;&lt;P&gt;4/1/2017, 1, b&lt;/P&gt;&lt;P&gt;5/1/2017, 0, b&lt;/P&gt;&lt;P&gt;6/1/2017, 0, b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/1/2017, 0, c&lt;/P&gt;&lt;P&gt;4/1/2017, 1, c&lt;/P&gt;&lt;P&gt;5/1/2017, 1, c&lt;/P&gt;&lt;P&gt;6/1/2017, 0, c&lt;/P&gt;&lt;P&gt;7/1/2017, 0, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 07:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385388#M799609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-04T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385389#M799610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understabd Your request,&lt;/P&gt;&lt;P&gt;Which is Your expected result ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 08:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385389#M799610</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-12-04T08:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate sum of last two months in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385390#M799611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I found solution, I run inline for every current date.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 04:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-sum-of-last-two-months-in-script/m-p/1385390#M799611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T04:58:54Z</dc:date>
    </item>
  </channel>
</rss>

