I’m running into an error “operator does not exist: boolean <> text when I include two custom columns in a Custom expression for filtering.
My custom columns are both supposed to be booleans but it seems one of them both is not read/understood as a boolean.
case(
[Is New World] = True
AND notNull([Last Consumed Quota ID]),
True,
[Is New World] = False
AND notIn([Status], 22, 21, 18, 5),
True,
False
)
case(notNull([Last Consumed Quota ID]), True, False)
The the filter formula is
[Has Consumed from Quota ID is true or old world] !=
[Last Consumed Quota ID]
Combining the above runs into the error.
If I wrap the formula in a text function, the SQL runs ok but the results are wrong.
text(
[Has Consumed from Quota ID is true or old world]
) !=
text([Last Consumed Quota ID])
Not sure if there is a way to make sure boolean types are the outcome of a custom column without having to write the question in native SQL. Perhaps there are limitations with booleans on the query editor?