how to add both sum() and avg()?

54 Views Asked by At

I want to have both sum and avg metrics in the same table but I get an error...

enter image description here

My goal is to get a table with avg and the total sum, like:

> agent    avg()   sum()
> 
> agent1   3.34    35000
> 
> agent2   5.91    850

...

But I get this error: enter image description here

1

There are 1 best solutions below

2
On

If I do it manually it works:

enter image description here

I added:

enter image description here

Why would it work manually and not when I use the automatic avg() from the dropdown...?!