i think you gotta place a ' around 719?
# general
l
i think you gotta place a ' around 719?
y
Tried that, same issue
message has been deleted
l
place the 1.2*0.65 into a parenthese
s
I beleive you need to END the statement
so just enter END at the end
l
and that too!
lol
y
I tried those combos, still not working! very strange
I get the same error..
l
quantity is a field in the result column right?
y
Oh i got it! I had to put a '=' instead of the 'is'
CASE WHEN {account.id} = 719 THEN {amount}/{quantity} ELSE {amount}/{quantity}/1.2*0.65 END
l
Good job mate!
y
haha thx
k
you probably want to include an nullif({quantity},0)
because you are doing division - if quantity is null or zero, then you can get divide by zero errors
might be better as
{amount}/nullif(nvl({quantity},0),0)
y
I have added this, good point