Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to do a set analysis that sum the total of each customer for every row in a table.
Example:
DB:
CustomerID Year LineSalesAmount
A1 2014 100
A1 2015 300
A2 2012 500
A2 2014 700
A2 2015 300
I need to have:
CustomerID Year LineSalesAmount Total for each customer
A1 2014 100 400
A1 2015 300 400
A2 2012 500 1500
A2 2014 700 1500
A2 2015 300 1500
I try with set analysis and I read many post of community but I dont find how I can do this.
(I need the column 'Total for each customer ' to order the customers for their total turnover).
Please can you help me?
Thank you bery much.
Best regards.
SUM(TOTAL <CustomerID> LineSalesAmount)
SUM(TOTAL <CustomerID> LineSalesAmount)
Thank you very much!
There was so simple...!
Aggr(Sum(LineSalesAmount),CustomerID)
HI Giuseppe,
you could also try a pivot table then you don't get the customer total duplicated
Andy
See Attached
Thank you Andrew!
Tank you!