Hi,
I'm using CRV11.
I have a main report with three output fields:
BuName Wave1 Wave2
Main report layout:
RH
PH
D - BuName Wave1 Wave2
Rfa - For a subreport
PF
I have a subreprot with two fields on it:
BuName InvCnt
Subreport layout (groups on BuName):
RH Supressed
GH1 - Surpressed
D - Surpresssed
GF1 BuName InvCnt
RF Surpressed
The main report returns 5 rows for 5 distinct BuNames. The subreport returns 5 rows for 5 distinct BuNames. Bunames in primary and subreport are the same and output on both reports is ordered the same.
I want to do some calculations in my main report using the Wave1 and Wave2 fields from the main report InvCnt field from the subreport.
I've attempted to do this using shared variables.
Main report has the following formula field called MainRptVar:
Shared NumberVar x;
Sub report has the following formula field called SubRptVar:
Shared NumberVar x;
x = DistinctCount ({USOPENINV2.RMDB_Id}, {@BU});
When I run the report and place the MainRptVar in the output section it has a zero value all the time for all 5 output rows.
If I go to the subreport and run it (and include in the output the formula SubRptVar) I see that it has the value of InvCnt that I want it to have and use in the main report.
I have attempted to link the reports together based upon BuName but that doesn't work. Still get zero values.
Any ideas?
Thanks in advance!
I'm using CRV11.
I have a main report with three output fields:
BuName Wave1 Wave2
Main report layout:
RH
PH
D - BuName Wave1 Wave2
Rfa - For a subreport
PF
I have a subreprot with two fields on it:
BuName InvCnt
Subreport layout (groups on BuName):
RH Supressed
GH1 - Surpressed
D - Surpresssed
GF1 BuName InvCnt
RF Surpressed
The main report returns 5 rows for 5 distinct BuNames. The subreport returns 5 rows for 5 distinct BuNames. Bunames in primary and subreport are the same and output on both reports is ordered the same.
I want to do some calculations in my main report using the Wave1 and Wave2 fields from the main report InvCnt field from the subreport.
I've attempted to do this using shared variables.
Main report has the following formula field called MainRptVar:
Shared NumberVar x;
Sub report has the following formula field called SubRptVar:
Shared NumberVar x;
x = DistinctCount ({USOPENINV2.RMDB_Id}, {@BU});
When I run the report and place the MainRptVar in the output section it has a zero value all the time for all 5 output rows.
If I go to the subreport and run it (and include in the output the formula SubRptVar) I see that it has the value of InvCnt that I want it to have and use in the main report.
I have attempted to link the reports together based upon BuName but that doesn't work. Still get zero values.
Any ideas?
Thanks in advance!