Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Amount Due - Paid amount?? Please help me out

Hi,

I hope somebody can help me out. I have the following straight tabel in Qlikview:

                                                       

CompanyInvoicenumberDescriptionDateExp. DateInvoice amountAmount Due
421 - Dell11111Part of payment 1-2-2010 -1.325,89
421 - Dell11111Rent  october 20141-2-20101-3-20103.957,35
Total Debtors2.631,46

What I want is the following:


Amount due = Amount Due - Invoice amount from the first example

                                         

CompanyInvoicenumberDescriptionDateExp. DateInvoice amountAmount Due
421 - Dell11111Rent  october 20141-2-20101-3-20103.957,352.631,46
Total Debtors2.631,46

thank you in advance

1 Solution

Accepted Solutions
sunny_talwar

Is this what you want? PFA

Best,

S

View solution in original post

4 Replies
chrismarlow
Specialist II
Specialist II

Not sure you are going to get exactly the format you are after, but this may be a start. I think in your straight table you need all of the fields except Company and Invoice Number to be expressions.

The dates would be Max(the relevant field).

For Description use FirstSortedValue(Description, -[Exp. Date]).

For the Amount Due add the original Amount Due and Invoice Amount together inside the Sum (might have issues with nulls).


sunny_talwar

Is this what you want? PFA

Best,

S

Not applicable
Author

Almost, I only want the last line in your example:

421 - Dell11111Rent October 201401/02/201001/03/20103957.352631.46

To be more clear I don't want to see part of the payment anymore.

sunny_talwar

I am guessing you are going to use some kind of criteria to decide which line to keep and which one to remove. Is it always the most recent date that will be kept and rest of the line items will be removed?

Best,

S