F
Flynny
G'day, I have a table in my database with the following fields:
Centre
Month
Sales
Budget
There are more fields but these are the only relevant ones. Basically the
table records sales and budget figures for each of our 71 centres. I could
not create a field for every month because the data goes back to July 99 and
also found it difficult to create a graph mapping sales against budget when
each month was a field, so I have done it that way.
Essentially I want to try and create a report that automatically does what I
manually do in Excel, which is a determination of a monthly award for the
best growth. Growth is determined for a particular month, lets say Dec 05, by
adding sales figures for the six months Jan 05 to June 05, then add Jul 05 x
growth factor of 1.5, then add Aug 05 x GF of 2.25 and so on to Nov 05 X GF
of 11.59, then divide the resulting figure by the total of the GF's, in this
case 37.17. This growth factor is then calcaluted as a percentage against
actual sales and the centre with the highest percentage wins the monthly
award - make sense, hope so.
So you can see that within the [month] field i need to calculate against
sales recorded for each month going back 12 months for each current month.
Crikey I hope this makes sense to someone. It does to me but I'm writing it.
Anyway, does anyone get what I am saying and if so, please advise of a
solution if there is one. Cheers.
Centre
Month
Sales
Budget
There are more fields but these are the only relevant ones. Basically the
table records sales and budget figures for each of our 71 centres. I could
not create a field for every month because the data goes back to July 99 and
also found it difficult to create a graph mapping sales against budget when
each month was a field, so I have done it that way.
Essentially I want to try and create a report that automatically does what I
manually do in Excel, which is a determination of a monthly award for the
best growth. Growth is determined for a particular month, lets say Dec 05, by
adding sales figures for the six months Jan 05 to June 05, then add Jul 05 x
growth factor of 1.5, then add Aug 05 x GF of 2.25 and so on to Nov 05 X GF
of 11.59, then divide the resulting figure by the total of the GF's, in this
case 37.17. This growth factor is then calcaluted as a percentage against
actual sales and the centre with the highest percentage wins the monthly
award - make sense, hope so.
So you can see that within the [month] field i need to calculate against
sales recorded for each month going back 12 months for each current month.
Crikey I hope this makes sense to someone. It does to me but I'm writing it.
Anyway, does anyone get what I am saying and if so, please advise of a
solution if there is one. Cheers.