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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

BITAND...

In SET analysis, can I use BITAND like this or is my syntax wrong?   In the example below the Project Status is an integer value which can be 1,2,4,8,16,32 or 64

SUM({<ProjectStatus BITAND 48 >= {"48"}>}METRIC_COMPLETED)

Thanks in advance...

Syd

Labels (1)
2 Replies
JonnyPoole
Former Employee
Former Employee

I don't believe so , but i'm not sure which values (1,2,4,8,16,32,64)  you expect to bring back from this SET expression.  Can you elaborate what the intended filter would result in ?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

No, only a field name can be used on the left hand side. You'd have to use something like this instead:

SUM({<ProjectStatus= {"=ProjectStatus BITAND 48 >= 48"}>}METRIC_COMPLETED)


talk is cheap, supply exceeds demand