cancel
Showing results for 
Search instead for 
Did you mean: 

Running totals problem with using shared variables

Former Member
0 Kudos

Hi there

I need to try and use the results of a shared variable within a running total in order to analyse my data, but I'm getting a message :-

"A running total cannot refer to a print time formula"

Anyone know how to get around this?

Many thanks

Louise

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Louise,

On what section are you trying to do display the totals from the shared variable?

If you're trying to display Grand Totals on the Report Footer, you would create a formula that looks like this:

Whileprintingrecords;

numbervar g_total;

shared numbervar variable_name;

g_total := g_total + variable_name;

Place this formula on the same section as the shared variable formula.

Create another formula and place this on the Report Footer:

Whileprintingrecords;

numbervar g_total;


-Abhilash