Has anyone figured how to use IF or CASE functions in the frappe query builder? I see it’s possible to import the operation direction from pypika, but I’d like to be able to use this feature in a script report where imports aren’t possible. Any suggestions would be very welcome!
(Specifically, I’m trying to pivot a table. This could be done with subqueries, but pypika seems to have a significant bug with subqueries and where clauses.)