G
Guest
I am extracting sales data from my ERP program. The sales data is stored in
an array which I break out by month. There is also a year associated with it.
Basically my sales table appears as follows:
Customer# Year Sls01 Sls02 Sls03 Sls04 etc
1234 2006 100 150 200 300 ...
1234 2007 50 25 100 400
5678 2006 0 100 25 50
And so on. Here's my problem. I want to get YTD sales and a percentage
change in my customer footer. Where I need help is that I want to
programmatically compare the first 4 months of 2007 against the first 4
months of 2006. In May I want to compare the first 5 periods. I really don't
have any date information on the data other than year. Is there a way to
accomplish this without writing a huge expression? (I can't think of a way to
do it other than a nest of 12 IF statements)
Any help is greatly appreciated.
an array which I break out by month. There is also a year associated with it.
Basically my sales table appears as follows:
Customer# Year Sls01 Sls02 Sls03 Sls04 etc
1234 2006 100 150 200 300 ...
1234 2007 50 25 100 400
5678 2006 0 100 25 50
And so on. Here's my problem. I want to get YTD sales and a percentage
change in my customer footer. Where I need help is that I want to
programmatically compare the first 4 months of 2007 against the first 4
months of 2006. In May I want to compare the first 5 periods. I really don't
have any date information on the data other than year. Is there a way to
accomplish this without writing a huge expression? (I can't think of a way to
do it other than a nest of 12 IF statements)
Any help is greatly appreciated.