Hi,
I've created a crosstab that gives me per location per client per year the volumes that they bought, and the total for all the locations so
year client total loc(1) loc(2) loc(3) ... loc(m)
2004 x 10000 1000 5000 4000 0
2004 y 15000 5000 0 6000 4000
....
this is the result based on a query that gives me
2004 x loc(1) 1000
2004 x loc(2) 5000
2004 x loc(3) 4000
2004 y loc(1) 5000
2004 y loc(1) 5000
2004 y loc(3) 6000
2004 y loc(m) 4000
....
Eery month there are new clients and new locations so it has to dynamical
My problem is that they want it in % so the result must finally be:
year client total loc(1) loc(2) loc(3) ... loc(m)
2004 x 10000 10% 50% 40% 0%
2004 y 15000 33,33% 0% 40% 26,67%
....
How can i created this, i've tried several solutions but without any results. Can anyone give me advice,
Thanx a lot
JJ
I've created a crosstab that gives me per location per client per year the volumes that they bought, and the total for all the locations so
year client total loc(1) loc(2) loc(3) ... loc(m)
2004 x 10000 1000 5000 4000 0
2004 y 15000 5000 0 6000 4000
....
this is the result based on a query that gives me
2004 x loc(1) 1000
2004 x loc(2) 5000
2004 x loc(3) 4000
2004 y loc(1) 5000
2004 y loc(1) 5000
2004 y loc(3) 6000
2004 y loc(m) 4000
....
Eery month there are new clients and new locations so it has to dynamical
My problem is that they want it in % so the result must finally be:
year client total loc(1) loc(2) loc(3) ... loc(m)
2004 x 10000 10% 50% 40% 0%
2004 y 15000 33,33% 0% 40% 26,67%
....
How can i created this, i've tried several solutions but without any results. Can anyone give me advice,
Thanx a lot
JJ