Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
I need to write the following as a Set Statement:
(RECORD_TYPE = 'BUYER' AND DATE = 'XX')
AND
(VAR1 = 'XX' OR VAR2='YY')
So in English, I want to create a set where you are a BUYER on a specific DATE and are either XX in variable 1 or YY on variable 2.
I think this should be simple however I can't get the correct syntax as the documentation is not very clear.
Thanks
Gareth
the first is not that difficult . . .but the second part I don't know . . . interesting . . .
e.g.
sum ( {< RECORD_TYPE = {'BUYER'}, DATE ={'XX'}>} if(VAR1 = 'XX' or VAR2 = 'YY', VALUE))
I agree.
Maybe, depending on the case, you would have to evaluate the variable:
sum ( {< RECORD_TYPE = {'BUYER'}, DATE ={'XX'}>} if($(VAR1) = 'XX' or $(VAR2) = 'YY', VALUE))