This may actually work. I was able to select the two columns you had suggested and the numbers look right. I'm going to look into it some more, run the Reportmaster report and compare the two... Thanks for the suggestion!
In the meantime, here is the report definition from Reportmaster:
- The columns in this report from left to right are:
GROUP
REP
CUSTOMER
NAME
LY-YTD
CY-YTD
DIFFERENCE
LAST ORDER
- The report uses the S/A Transactions table
- Fields selected from that table are:
CUSTOMER
GROUP (Formula is characters 1 & 2 of the SALESPERSON field)
REP (Formula is characters 1-3 of the SALESPERSON field)
LY-YTD (Formula: IF D<=E-365 THEN A (A=Amount,D=date,E=End Date:))
CY-YTD (Formula: IF D>=S and D<=E then A (A=Amount, D=Date, S=Start Date:, E=End Date)
DIFFERENCE (Formula: ID D<=E-365 then -A else D>=S and D<=E then A (A=Amount, D=Date, S=Start Date:, E=End date:))
I believe the 'NAME' and '-DATE' fields are being pulled from the AR CUSTOMER table. That table is listed under RELATED DATA.
Under REPORT SELECTION for this report, the following formula is listed:
D>=S-365 and D<=E and I[1~3]<>"MIS"
D = Date
S = Start Date:
E = End Date:
I = Item
When I select PRINT REPORT, I get asked for the Start and End Date and then the report runs.
If all this is in Sales Analysis, then I would be happy to use that instead of GridView or Crystal. I'm not an ACCPAC or ADAGIO expert by any means. I'm simply trying to get all those Reportmaster reports I inherited ported overt to either GridView, Adagio or something else that's not DOS based.;-)
Cheers,
Andre