<?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: Create an aging table with cummulative values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918642#M1218449</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;It seems to work, the only thing&amp;nbsp; that is not correct is (see the table below):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elpida_1-1649946182335.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77165iF7126B8A2BC467B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elpida_1-1649946182335.png" alt="elpida_1-1649946182335.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the value of 7,115 on the 1st day belongs to 0day because the repayment happened the same day that the product had been purchased. Same for the rest of the values which have a shift of diff+1.&lt;/P&gt;
&lt;P&gt;The calculations i Used for this pivot is:&lt;/P&gt;
&lt;P&gt;product_purchase_Date: from raw data,&lt;/P&gt;
&lt;P&gt;diff:&amp;nbsp;Date(Date#(pay_date, 'YYYYMMDD'), 'YYYY-MM-DD') - Date(Date#(loan_date, 'YYYYMMDD'), 'YYYY-MM-DD')&lt;/P&gt;
&lt;P&gt;Value:&amp;nbsp;RangeSum(Before(sum(payments)))&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 14:31:00 GMT</pubDate>
    <dc:creator>elpida</dc:creator>
    <dc:date>2022-04-14T14:31:00Z</dc:date>
    <item>
      <title>Create an aging table with cummulative values</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918060#M1218423</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to create a table in which I have the dates of products purchases in rows and the number of days from date purchases in columns.&amp;nbsp; As values, I have the payments that happened each date after the purchase.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;The products that are purchased on 2021-12-01: We had 300 payments on the date 2021-12-02 (i.e 1 day after the purchase). Following on date&amp;nbsp;2021-12-03 (i.e 2 days after purchase), we had&amp;nbsp; 400 payments, 300 from day 1 and 100 from day 2.&lt;/P&gt;
&lt;P&gt;I have tried some calculations but they do not work.&lt;/P&gt;
&lt;P&gt;Attached there is a sample of the format of the table, I want to reproduce.&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 13:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918060#M1218423</guid>
      <dc:creator>elpida</dc:creator>
      <dc:date>2022-04-13T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create an aging table with cummulative values</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918407#M1218435</link>
      <description>&lt;P&gt;Not knowing what your data looks like, I'll have to do some guesswork...&lt;/P&gt;&lt;P&gt;First, you should probably create a field "Delay" in the script, e.g.&lt;BR /&gt;Payment_Date - Purchase_Date as Delay&lt;/P&gt;&lt;P&gt;Then you can use this in a pivot table with&lt;BR /&gt;Dim1 (vertical dimension): Purchase_Date&lt;BR /&gt;Dim2 (horizontal dimension): Delay&lt;/P&gt;&lt;P&gt;If the number of payments is described by the expression Count(Payment), then you can create a measure called [Cumulative Payments] with the following definition:&lt;BR /&gt;RangeSum(Count(Payment), Before([Cumulative Payments]))&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 07:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918407#M1218435</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-04-14T07:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create an aging table with cummulative values</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918642#M1218449</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;It seems to work, the only thing&amp;nbsp; that is not correct is (see the table below):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elpida_1-1649946182335.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77165iF7126B8A2BC467B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elpida_1-1649946182335.png" alt="elpida_1-1649946182335.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the value of 7,115 on the 1st day belongs to 0day because the repayment happened the same day that the product had been purchased. Same for the rest of the values which have a shift of diff+1.&lt;/P&gt;
&lt;P&gt;The calculations i Used for this pivot is:&lt;/P&gt;
&lt;P&gt;product_purchase_Date: from raw data,&lt;/P&gt;
&lt;P&gt;diff:&amp;nbsp;Date(Date#(pay_date, 'YYYYMMDD'), 'YYYY-MM-DD') - Date(Date#(loan_date, 'YYYYMMDD'), 'YYYY-MM-DD')&lt;/P&gt;
&lt;P&gt;Value:&amp;nbsp;RangeSum(Before(sum(payments)))&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 14:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-aging-table-with-cummulative-values/m-p/1918642#M1218449</guid>
      <dc:creator>elpida</dc:creator>
      <dc:date>2022-04-14T14:31:00Z</dc:date>
    </item>
  </channel>
</rss>

