<?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: previous amount compared to current amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052063#M353009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link: &lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 10:01:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-03T10:01:31Z</dc:date>
    <item>
      <title>previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052056#M353002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a little help.&lt;/P&gt;&lt;P&gt;I'm trying to do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the amount of the previous month and subtract that to the amount of the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;In january the amount was 31. Since there is no previous month, null is returend.&lt;/P&gt;&lt;P&gt;In februari the amount was 56. So if I would select february I would get 56 - 31 (month januari) = 45.&lt;/P&gt;&lt;P&gt;In march the amount was 93. So 93 - 56 (month february) = 37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to solve this in my script, but also want to see it how it's done in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find an example of my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Edited: 03-05-2016:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the attached files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052056#M353002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052057#M353003</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;STRONG&gt;Sum(Aggr(Above(Sum({&amp;lt;month&amp;gt;}beginSaldo)), month)) - Sum(beginSaldo)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052057#M353003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052058#M353004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I dont want to solve it in my chart. I want to solve it in my script. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052058#M353004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T15:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052059#M353005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate how you imagine to see these values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052059#M353005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T15:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052060#M353006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you mean, how I want the end result to be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;In january the amount was 31. Since there is no previous month, null is returend.&lt;/P&gt;&lt;P&gt;In februari the amount was 56. So if I would &lt;STRONG&gt;select&lt;/STRONG&gt; february I would get 56 - 31 (month januari) = 45.&lt;/P&gt;&lt;P&gt;In march the amount was 93. So 93 - 56 (month february) = 37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words if I select the current month, I get the amount of the current month and of the previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052060#M353006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052061#M353007</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;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(date) as MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;amount.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is page1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AggrTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(MonthYear = AddMonths(Peek('MonthYear'), 1), Total - Peek('Total'), Null()) as Diff;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(amount) as Total&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121928_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052061#M353007</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052062#M353008</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;I created a dataset, trying the same as you did above. But without succes.&lt;/P&gt;&lt;P&gt;I'm also trying to make a cumulative of all the transaction per customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know where it goes wrong. Is it the expression or the 'Order By' statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I upload files to the forum? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 10:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052062#M353008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052063#M353009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link: &lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 10:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052063#M353009</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052064#M353010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've edited the original file.&lt;/P&gt;&lt;P&gt;Please have a look at the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to accumulate all the transactions per customer.&lt;/P&gt;&lt;P&gt;And have a column that shows the difference. between the previous amount and the current amount.&lt;/P&gt;&lt;P&gt;if the debt has not being payed fully, then 'still in debt', else 'no more debt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 11:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052064#M353010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T11:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: previous amount compared to current amount</title>
      <link>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052065#M353011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where u able to look at the problem? I'm stuck &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; and really need help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;.&lt;/P&gt;&lt;P&gt;Many thanks in advance!&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 13:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-amount-compared-to-current-amount/m-p/1052065#M353011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T13:29:46Z</dc:date>
    </item>
  </channel>
</rss>

