I have a main report that has data from 2 years sales history - the main report is sorted by the sales from the most year by customer (group 1) then I'm using groupnumber to show the ranking.
Now, I want to show the previous year's ranking within the report as well. I added a subreport and sorted the sales by the previous year and used the groupnumber to rank.
The I created a shared variable in my main report and added it to the subreport.
No, in section expert of the subreport I did the following
suppress > x+2
whileprintingrecords;
shared numbervar cust;
{table.customer} <> cust
I did this to suppress the customer data except for the data matching the customer in the main report
But, this is not suppressing correctly - it is still showing all the results from the subreport.
Please Help!!
Thanks
Catherine