Conditions in expr (calculations)
I have a
The issue here is (it's the representative assigned to a ticket) that this will error if a representative has no tickets.
I tried to solve this with the
This returns
The resulting query also looks a bit weird (to me at least). It might be a problem that
Has anyone an idea?
calculation (taken from the getting started guide):The issue here is (it's the representative assigned to a ticket) that this will error if a representative has no tickets.
I tried to solve this with the
if function to no avail.This returns
100.0 for the total_tickets == 0 case but 0.0 for the rest.The resulting query also looks a bit weird (to me at least). It might be a problem that
open_tickets and total_tickets themselves are aggregates.Has anyone an idea?
