I'm developing a report to chart warranty sales as a % of total sales by quarter for year to date + the last 3 full years. The problem is the warranty sales year to date total is 0.00 while the year to date sales total is 76,000. When I pass the shared variable thru from the top level report to the subreport, my groupnumber returns 13 but since 0.00 / 76,000 = 0, it only shows 12 values. Here is the formula that is giving the error...
whileprintingrecords;
shared stringvar chartVal;
local stringvar temp1 := Left(chartVal, len(chartVal)-1);
tonumber(split(temp1,"^")[groupnumber]);
whileprintingrecords;
shared stringvar chartVal;
local stringvar temp1 := Left(chartVal, len(chartVal)-1);
tonumber(split(temp1,"^")[groupnumber]);