<?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 cumulative sum with multiple conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642343#M47870</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a list of invoices, with the invoice date, payment status, amount and if payment status = true also a payment date. Below is a small sample of the dataset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2019-11-03 om 19.07.59.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22807i2EECD3030CAC85BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2019-11-03 om 19.07.59.png" alt="Schermafbeelding 2019-11-03 om 19.07.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I would like a table with one row per month, which gives for each month the cumulative amount invoiced and the unpaid balance. For the unpaid balance I want to take into account the invoices that are still unpaid today (payment status = false) as well as the invoices that were not yet paid at the end of the period in the current row (so payment date &amp;gt; last day of the month for this row).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cumulative amount works fine with:&amp;nbsp;RangeSum(Above(Sum([Amount incl VAT]), 0, RowNo())). I'm struggling with the unpaid amount however, this doesn't seem to work:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;RangeSum(Above(Sum(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{$&amp;lt;[Payment Status]={'False'}&amp;gt;+&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$&amp;lt;[Payment Date.Calendar.Date]={"&amp;gt;$( monthend(max([Invoice Date.Calendar.Date])) )"}&amp;gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[Amount incl VAT]), 0, RowNo()&lt;/DIV&gt;&lt;DIV&gt;))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2019-11-03 om 19.15.46.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22809i79D11BC3D0D9DABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2019-11-03 om 19.15.46.png" alt="Schermafbeelding 2019-11-03 om 19.15.46.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to get this to work are highly appreciated! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2019 18:17:01 GMT</pubDate>
    <dc:creator>bvandenbossche</dc:creator>
    <dc:date>2019-11-03T18:17:01Z</dc:date>
    <item>
      <title>cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642343#M47870</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a list of invoices, with the invoice date, payment status, amount and if payment status = true also a payment date. Below is a small sample of the dataset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2019-11-03 om 19.07.59.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22807i2EECD3030CAC85BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2019-11-03 om 19.07.59.png" alt="Schermafbeelding 2019-11-03 om 19.07.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I would like a table with one row per month, which gives for each month the cumulative amount invoiced and the unpaid balance. For the unpaid balance I want to take into account the invoices that are still unpaid today (payment status = false) as well as the invoices that were not yet paid at the end of the period in the current row (so payment date &amp;gt; last day of the month for this row).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cumulative amount works fine with:&amp;nbsp;RangeSum(Above(Sum([Amount incl VAT]), 0, RowNo())). I'm struggling with the unpaid amount however, this doesn't seem to work:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;RangeSum(Above(Sum(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{$&amp;lt;[Payment Status]={'False'}&amp;gt;+&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$&amp;lt;[Payment Date.Calendar.Date]={"&amp;gt;$( monthend(max([Invoice Date.Calendar.Date])) )"}&amp;gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[Amount incl VAT]), 0, RowNo()&lt;/DIV&gt;&lt;DIV&gt;))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2019-11-03 om 19.15.46.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22809i79D11BC3D0D9DABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2019-11-03 om 19.15.46.png" alt="Schermafbeelding 2019-11-03 om 19.15.46.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to get this to work are highly appreciated! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642343#M47870</guid>
      <dc:creator>bvandenbossche</dc:creator>
      <dc:date>2019-11-03T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642408#M47884</link>
      <description>&lt;P&gt;With in the object, Can you add &lt;SPAN&gt;[Payment Date.Calendar.Date] and [Payment Status] as dimension and see?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 07:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642408#M47884</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-11-04T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642517#M47900</link>
      <description>&lt;P&gt;Hi, I'm not sure I understand your suggestion. If I add those 2 dimensions, I don't get a total per month anymore? Also, it has no effect on the outcome of my expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Knipsel.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22823i2D6F9C1C5B408E49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel.JPG" alt="Knipsel.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642517#M47900</guid>
      <dc:creator>bartvandenbossche</dc:creator>
      <dc:date>2019-11-04T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642538#M47904</link>
      <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(Above(

  Sum({$&amp;lt;[Payment Status] = {'False'}, [Payment Date.Calendar.Date] = {"&amp;gt;$(=MonthEnd(Max([Invoice Date.Calendar.Date])))"}&amp;gt;} [Amount incl VAT])

, 0, RowNo()))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642538#M47904</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642542#M47905</link>
      <description>&lt;P&gt;Hi, thanks for the suggestion, but that only returns 0's apparently...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Knipsel.JPG" style="width: 863px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22827i500D603CFC5EE3A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel.JPG" alt="Knipsel.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642542#M47905</guid>
      <dc:creator>bartvandenbossche</dc:creator>
      <dc:date>2019-11-04T13:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642552#M47907</link>
      <description>&lt;P&gt;Would you be able to share a sample to check this out?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642552#M47907</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642556#M47908</link>
      <description>&lt;P&gt;Sure, here is some sample data for 3 months.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/cumulative-sum-with-multiple-conditions/m-p/1642556#M47908</guid>
      <dc:creator>bartvandenbossche</dc:creator>
      <dc:date>2019-11-04T14:19:58Z</dc:date>
    </item>
  </channel>
</rss>

