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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel29195
Contributor III
Contributor III

exclude values from field if exists in another field

Hello all,

i have this data : 

Daniel29195_0-1662115123054.png

 

my problem is that per product,  I want to get the sum of amountin column, for only the rows where  transid  doesnt exit in column refundid.

example:

transid = 1 , exists in the refundid column, thus the amountin for transid should be excluded from the sum.

 

i ve tried 

sum({

< transid= E({$ <transid={refundid}>})

,productid={1}>}

amountin)

but it didnt work,

 

any solution would be appreciated,

 

Labels (2)
1 Solution

Accepted Solutions
Daniel29195
Contributor III
Contributor III
Author

i found the solution ,

sum({   <   transid -= {  $(=concat(if(refundid<>0,refundid),','))   },  productid={1}>}      amountin)

 

Daniel29195_1-1662117724453.png

 

 

 

View solution in original post

1 Reply
Daniel29195
Contributor III
Contributor III
Author

i found the solution ,

sum({   <   transid -= {  $(=concat(if(refundid<>0,refundid),','))   },  productid={1}>}      amountin)

 

Daniel29195_1-1662117724453.png