<?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: Sum of Invoices of a month where first date is in between that month and the two previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268925#M862891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just used Sum(Amount)... I am not sure I understand your logic related to the first date. Would you mind expanding a little on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 09:46:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-04T09:46:16Z</dc:date>
    <item>
      <title>Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268918#M862879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi everyone, hope someone can help me cause I've been trying to achieve this for days and I couldn't get it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;What I'm trying to get is a pivot table with two dimensions; Year and Month. The expression I need is the sum of the invoices amount of all the customers which first date of invoice is between the last day of the month of the dimension and the first day of the two previous months of that value of the dimension. So for the Nov-2016 I need all the invoices in November which first Invoice Date is between 01/09/2016-30/11/2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;For example if I have the following values &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148260" alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148260_Captura.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;the pivot table I need is this one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148261" alt="Captura.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148261_Captura.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks in advance for your time.&lt;/SPAN&gt;&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/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268918#M862879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268919#M862881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your raw data looks like the 1st screenshot?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 02:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268919#M862881</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T02:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268920#M862882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny, I don´t understand pretty well what you're asking. In the 1st screenshot e.g. the value of 500 means the total sum of the invoices for the Customer A in the month of sep-2016. They are example values. Is that what you meant?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 02:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268920#M862882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T02:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268921#M862884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am trying to understand is how does your raw data looks like? Is it like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148263_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 02:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268921#M862884</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T02:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268922#M862886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ah ok, I get it. Excuse me again. No, they would be like this. The bold date means the first Invoice Date&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148265_Captura.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 03:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268922#M862886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T03:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268923#M862889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148236_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 03:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268923#M862889</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T03:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268924#M862890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah!! That's is what I'm looking for. I migth be wrong but I think I must use the P function to select all the customers with the first date in that period and get the sum of their invoices. What you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 03:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268924#M862890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T03:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268925#M862891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just used Sum(Amount)... I am not sure I understand your logic related to the first date. Would you mind expanding a little on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268925#M862891</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268926#M862892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok, I see. My fault, I didn't notice the difference between you table and mine. For example, if you take a&amp;nbsp; look at december in this table, you'll see a total amount of 400. In yours It is 750. That's because i don´t include Customer A and Customer B given the fact that their first invoice date belong to september, and&amp;nbsp; so they are not in the period of oct-nov-dec. PD.This table has the value of Dec correct.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148341_Captura.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268926#M862892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T17:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268927#M862893</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;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Min(TOTAL &amp;lt;Customer&amp;gt; Date) &amp;gt;= AddMonths(MakeDate(Year, Month), -2), Sum(Amount)), Year, Month, Customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148353_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 19:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268927#M862893</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T19:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Invoices of a month where first date is in between that month and the two previous</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268928#M862894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah It works. Thank you very much. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 21:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Invoices-of-a-month-where-first-date-is-in-between-that/m-p/1268928#M862894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T21:23:25Z</dc:date>
    </item>
  </channel>
</rss>

