Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Question

Hello, I have this situation:

CustomerGroupToBeCashed
A12000

ToBeCashed formula: Sum(Credit) - Sum(Debit)

I have these movements:

CustomerCustomerGroupCreditDebit
PLUTOA120000
PIPPOA11000
PIPPOA10100

If I add a listbox with only the customer field I have the following situation:

Customer
PLUTO
PIPPO

Now the question is: How can I have in the list box only the presence of the PLUTO customer, I don't want the customers where the difference between credit and debit is zero.

Thanks.

4 Replies
swuehl
MVP
MVP

Try maybe something like

=aggr( if(sum(Credit)<>sum(Debit), Customer), Customer)

sujeetsingh
Master III
Master III

Swuel is right see the sample

IAMDV
Master II
Master II

Hi,

You need to solve this piece in the script instead of UI. I'm sharing part of the script and you can use the below script to integrate in your application.

//This code is incremental reload where we are filtering Customers where DR & CR amount are not equal

NoConcatenate

LOAD

Customer ,

New_Customer

where CR_Amount <> DR_Amount;

//This code is resident load where we are grouping DR & CR amount

Final:

LOAD Customer , Customer as New_Customer, Sum(Credit) AS CR_Amount, Sum(Debit) AS DR_Amount

Resident Test

Group by Customer;

If this is not clear... please share full script or sample application.

I hope this helps!

Cheers,

DV

Not applicable
Author

Thank you, I followed your suggestion slightly modified and it works.

=aggr( if(sum(Credit)<>sum(Debit), Customer, ''), Customer)


Many thank to everyone!!