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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create parameter on results of running totals?

Status
Not open for further replies.

Cores

Programmer
Oct 17, 2007
92
CA
Hi,
CRXI SQL Server

We have an accounting report that has columns with running totals for fields - {#run_approved},{#run_paid}, {#run_cancelled},{#run_refund}.

The last right column has formula @run_balance:
{#run_approved} -{#run_paid}-{#run_cancelled} +{#run_refund}.

The results of @run_balance can be 0 or more than 0.
The client wants to create parameter on balance results - to select for ex. the rows with balances > 0.

Please point me in a right direction how to do this?

Thanks very much
 
Running totals are among the last things to be calculated by Crystal, whereas parameters come first. Is there a reason you can't use Summary Totals?

(If you're not already familiar with Crystal's automated totals, see FAQ767-6524.)

Even with summary totals, you can't control the selection, unless you use a subreport in the report footer. (That would also work with Running Totals, I think.)

Are you familiar with Crosstabs? Maybe they could give you the output you want.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
About all you would be able to do is conditionally suppress the running totals using a parameter, e.g.,

{@yourrunningtotalcalc} < {?Parm}

-LB
 
Thanks Madawc and lbass for your suggestions.

Sorry for late response - I was on vacation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top