}[Amount]*-1) I would like it to" /> }[Amount]*-1) I would like it to" /> }[Amount]*-1) I would like it to"/>

Qlikview use IN rather than = in a variable in an expression

52 Views Asked by At

I have a variable in an expression that SELECTS bottles.

sum({$<[PCC] ={"$(=concat([MCC],'","'))"},[RCPT] ={'Bottle'}>}[Amount]*-1)

I would like it to be able to select where RCPT equals bottle OR laptop.

1

There are 1 best solutions below

1
Matt On BEST ANSWER

The IN values need to be contained in {'value1', 'value2', 'value3'....etc} but still using RCPT =

Sum({$<[PCC] ={"$(=concat([MCC],'","'))"},[RCPT] = {'Bottle', 'Laptop'}>}[Amount]*-1)