I have a dataset of sales data and I need to find the average order value of all customers. If I take the average of all orders the average is lower than expected. This is because a customer will make a large purchase one day and then maybe a smaller purchase a week later and the average formula thinks its two different customers.
So I'm trying to sum the sales values if the client ID is the same and then count is as one. And if there isnt a repeat customer, still use that value in the average.
Say you have a dataset like this:
ID Sales Value
A1 $1000
A2 $2000
A1 $100
A3 $4000
I want the formula to sum the two values of A1 but only count it as one observation. so the average should be $7100/3, not $7100/4
pls help
So I'm trying to sum the sales values if the client ID is the same and then count is as one. And if there isnt a repeat customer, still use that value in the average.
Say you have a dataset like this:
ID Sales Value
A1 $1000
A2 $2000
A1 $100
A3 $4000
I want the formula to sum the two values of A1 but only count it as one observation. so the average should be $7100/3, not $7100/4
pls help