S
Sidnei B Cordeiro
Can somebody help me with this subject? My client tracks monthly exchange
for Euro and UK Pound, and relates the values to its purchases. He wants to
know the % variation of the value he pays for a item, lets say in six or
four months periods, and compare it to the currency variation. I have two
tables that looks like this:
tbl_Exchange
Date Euro UK Pound
01/01/04 75 50
02/01/04 77 52
03/01/04 78 51
04/01/04 79 53
tbl_Purchase
Item# Date US$
1010 01/01/04 20
1010 02/01/04 21
1010 03/01/04 22
1010 04/01/04 23
What my client wants to see, in a graphic chart, is that while the price for
item 1010 had increased 15%, Euro had varied 5,3% and Pound had varied 6%.
The client also wants to report variable range of time (quarterly, four, six
months or even one, two years).
I think using a multidimensional array would be a solution, but I can't
figure how to do this. Directly in the query, passing the number of month as
parameters, is also dificult, because I can't query the previous value (and
this would be a group query).
Can somebody help me? Can this be done in query? Or a PivotTable/PivotChart
would be a better choice?
for Euro and UK Pound, and relates the values to its purchases. He wants to
know the % variation of the value he pays for a item, lets say in six or
four months periods, and compare it to the currency variation. I have two
tables that looks like this:
tbl_Exchange
Date Euro UK Pound
01/01/04 75 50
02/01/04 77 52
03/01/04 78 51
04/01/04 79 53
tbl_Purchase
Item# Date US$
1010 01/01/04 20
1010 02/01/04 21
1010 03/01/04 22
1010 04/01/04 23
What my client wants to see, in a graphic chart, is that while the price for
item 1010 had increased 15%, Euro had varied 5,3% and Pound had varied 6%.
The client also wants to report variable range of time (quarterly, four, six
months or even one, two years).
I think using a multidimensional array would be a solution, but I can't
figure how to do this. Directly in the query, passing the number of month as
parameters, is also dificult, because I can't query the previous value (and
this would be a group query).
Can somebody help me? Can this be done in query? Or a PivotTable/PivotChart
would be a better choice?