Dear Folks,
I am using Oracle 8i and CR XI R2 (11.5)
I have a simple summary report which gives me a summary view of YTD and LastYearYTD Sales.
Range of data that I am pulling: {SALE.INVOICE_DATE} IN YTD OR {SALES.INVOICE_DATE} IN LastYearYTD
I then group by the year field {SALES.YEAR}, and take the summary on the field {SALES.GROSS}. I get an output similar to:
YTD 2007
GROSS
--------
$450,500
YTD 2006
GROSS
--------
$330,050
What I want to do is to store the two different totals in two shared variables so that I can pass them along to another report.
I tried a bunch of things in the Formula Editor and Running Totals but to no avail.
Any suggestions?
I tried something like this:
if (GroupName ({SALES.YEAR})= totext(Year(currentDate))) then
Sum ({SALES.GROSS}, {SALES.YEAR})
to get the 2007 total but it simply gave me 0.
cheers,
mirogak
I am using Oracle 8i and CR XI R2 (11.5)
I have a simple summary report which gives me a summary view of YTD and LastYearYTD Sales.
Range of data that I am pulling: {SALE.INVOICE_DATE} IN YTD OR {SALES.INVOICE_DATE} IN LastYearYTD
I then group by the year field {SALES.YEAR}, and take the summary on the field {SALES.GROSS}. I get an output similar to:
YTD 2007
GROSS
--------
$450,500
YTD 2006
GROSS
--------
$330,050
What I want to do is to store the two different totals in two shared variables so that I can pass them along to another report.
I tried a bunch of things in the Formula Editor and Running Totals but to no avail.
Any suggestions?
I tried something like this:
if (GroupName ({SALES.YEAR})= totext(Year(currentDate))) then
Sum ({SALES.GROSS}, {SALES.YEAR})
to get the 2007 total but it simply gave me 0.
cheers,
mirogak