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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
FelipeG
Contributor II
Contributor II

Check if different row contains same value in columns

Hey guys! Hope you can help me with these problem i've been struggling with...

I have a table of operations:

Operation NumDateCompanyOp. TypeAmount
109/10/2020AppleBuy100
209/10/2020MicrosoftBuy200
209/10/2020IntelSell200
109/10/2020AppleSell100

 

I want to see all the operations that a company has done against themselves. In the example above I would end with:

109/10/2020AppleBuy100
109/10/2020AppleSell100

 

I can't mess with the script in this particular case, needs to be some sort of Set Analysis operation or similar.

Would really appreciate some help! 

Labels (3)
2 Replies
Kushal_Chawda
MVP
MVP

@FelipeG  try below

=sum({<Company=p({<[Op. Type]={'Buy'}>})*p({<[Op. Type]={'Sell'}>})>}Amount)
FelipeG
Contributor II
Contributor II
Author

It didn't work. Shows the same value than sum(Amount). Any idea??