Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

share variable

Status
Not open for further replies.
Feb 4, 2009
137
US
I have a main report and subreport share parameter

main report:
PH
RH:suppressed
GH: table1.provider - suppressed
Detail: suprressed
GH...get all total
RF: suppressed
PF

Report...Select formulas...record

{table1.clinic} = {?Clinic} and
{table1.procudure_date} >= {?Beg Date} and
{table1.procudure_date} <= {?End Date} and
{table1.status} =102


Subreport:
PH:suppressed
RH:suppressed
Detail: suprressed
RF: count of table1.codeid(number), sum of @fee(Number)
PF: suppressed

Report...Select formulas...record

{table1.clinic} = {?Clinic} and
{table1.procudure_date} >= {?Beg Date} and
{table1.procudure_date} <= {?End Date} and
{table1.status} =90 and {table1.or} =1 and {table1.class} =1

Result:
Count Fee
CHIP: 15 $900
Medicaid: 20 $755
Copay : 25 (from subreport) $250 (from subreport)
--------------------------------------------------------
Total: 60 $1,905

I need help on the share variables from subreport (copay count 25, and fee: $250) to get the grand total on the main report.
Please help, i'm very appreciated.
Thank you very much.
 
Are CHIP and Medicaid the provider group instances? Should there be only one set of values returned from the subreport (across all provider types)?

-LB
 
No,
table1 in the main report joined with tableins..with patientid
if tableins.ins = 1 then "CHIP" else
if tableins.ins = 2 then "MEDICAID" and so on...

So I cound those chip and medicaid based on...
if tableins.ins = 1 then 1 else 0
Then create a running total field on this field

Type of summary = sum
evaluate: checked "for each record"
reset: checked "on change of group" select group 1 " table1.provider"

 
No,
table1 in the main report joined with tableins..with patientid
if tableins.ins = 1 then "CHIP" else
if tableins.ins = 2 then "MEDICAID" and so on...

So I count those fields ... chip and medicaid based on...
if tableins.ins = 1 then 1 else 0
Then create a running total field on this field

Type of summary = sum
evaluate: checked "for each record"
reset: checked "on change of group" select group 1 " table1.provider"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top