Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My data have three columns:
Salesrep, Customer, Sales
RepA, CustomerA, 2
RepA, CustomerB, 4
RepB...
...
I would like to create a report by dimension: Salesrep & Customer. In one of the measures, I need to show avg sales by rep on the customer level as well, such as:
Salesrep, Customer, AvgSalesByRep
RepA, CustomerA, 3
RepA, CustomerB, 3
RepB...
...
What aggr function should I write here to implement this?
Thank you in advance!
Hi,
Try;
avg(TOTAL Sales)
Cheers,
Chris.
Hi there,
Sorry, I should have clarified this in the question. Rep A is not the only sales rep, so avg(Total Sales) wouldn't work.
Hi,
Ahh, try;
avg(TOTAL <Salesrep> Sales)
Cheers,
Chris.
No luck 😞 Each rep ends up with the same number
Hi,
Not sure I follow then;
Cheers,
Chris.
Yes you're right! I tried again and it worked. Thank you!