Hi,
I've a table listing data for different clients over the last two months
client year month Prod depot act instr
abc 2004 Dec BLUB 120 13 5
abc 2004 Dec TOC 110 10 4
abc 2005 Jan TOC 125 10 4
xyz 2004 Nov TOC 15 2 1
xyz 2004 Dec BLUB 13 1 10
xyz 2005 Jan BIM 1 2 6,5
what I would like to have is a new column, showing the difference between two last months, for each of the 3 "dimensions" (depot, activity, instructions).
That woulld be the minimu requirement.
Ideally, I need two show this evolution with a breakdown by product, over a longer period of time (last 12 months).
Some clues on this forum give me some insight: for instance making a join between the table with itself, and using crosstab queries. I'll have to make some tests.
However if someone had a similar problem and already have a good query (or module in VBA)I would gain a lot of time (and I am a bit under pressure...).
Thanks
ecompa
I've a table listing data for different clients over the last two months
client year month Prod depot act instr
abc 2004 Dec BLUB 120 13 5
abc 2004 Dec TOC 110 10 4
abc 2005 Jan TOC 125 10 4
xyz 2004 Nov TOC 15 2 1
xyz 2004 Dec BLUB 13 1 10
xyz 2005 Jan BIM 1 2 6,5
what I would like to have is a new column, showing the difference between two last months, for each of the 3 "dimensions" (depot, activity, instructions).
That woulld be the minimu requirement.
Ideally, I need two show this evolution with a breakdown by product, over a longer period of time (last 12 months).
Some clues on this forum give me some insight: for instance making a join between the table with itself, and using crosstab queries. I'll have to make some tests.
However if someone had a similar problem and already have a good query (or module in VBA)I would gain a lot of time (and I am a bit under pressure...).
Thanks
ecompa