Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i have the following SQL Code:
mySQL:
SELECT unique
FROM table1
WHERE (bitflag& 64) >> 6 = 1)
In the QlikView I want a flag:
Table:
Load unique,
if(si_flags & 64 >> 6=1, 'bitflag64', 'no bitflag64') as myflag;
SQL
Load *
from table1;
But I get not the same result.
Hi Marcus,
maybe you should try to "encapsulate" the Field?
if("si_flags & 64 >> 6"=1, 'bitflag64', 'no bitflag64') as myflag;
I tried ", ' and (. All do not work.
It seems that this is the solution:
if((si_flags >> 6 )=1, 'bitflag64', 'no bitflag64') as myflag;