Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sir_12345
Partner - Contributor
Partner - Contributor

Exclude rows

Hi all,

I have this table and I want to exclude the pair of transactions where the one transaction is R and the other one is T, for each Customer that makes transaction in the same Branch at the same Date, when the Purchase is equal to Sale and vice versa at the corresponding rows. The same applies to CurrencyPur and CurrencySale.

I need to exclude only the pair of the transactions that have the above criteria. Do you have any ideas??

Sir_12345_0-1706888036100.png

Thanks in advance!

 

Labels (1)
2 Replies
qv_testing
Specialist II
Specialist II

It would be great if you could provide sample data.

Anil_Babu_Samineni

@Sir_12345 

I Assume Transaction here meaning Event.
Load Distinct
All columns here
From Table
Where Not Match(Event, 'T', 'R') and Purchase=Sales and CurrencyPur=CurrencySale;

PS. Here for this "or each Customer that makes transaction in the same Branch at the same Date", The distinct will deserve by default.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful