I have a field containing an int that represents flags
0 = No error 1 = Error 1 2 = Error 2 4 = Error 3 8 = Error 4
so if I have a value of 5, I know it is Error 1 and Error 3
I need to add custom columns for Errors 1-4. In Excel I use
=BITAND(Field, 1) to determine if Error 1 is present
=BITAND(Field, 2) to determine if Error 2 is present
=BITAND(Field, 4) to determine if Error 3 is present
=BITAND(Field, 8) to determine if Error 4 is present
How can I do this with a formula in salesforce report?
Thanks mark