scflode
AEAsh Elixir
•Created by scflode on 1/26/2023 in #support
Conditions in expr (calculations)
I have a
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?33 replies