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

Can I underlay a group total?

Status
Not open for further replies.

OT2

Technical User
Jan 14, 2005
54
US
Hi, I am using CR11 to create a report, client has asked for three groups: vendor, docnumber and account. All my data is at the account level, and I have a sum of amounts by account that I would like to underlay so that it appears in line with the last item in the account group, ie:

Vendor
DocNumber
Account Amount1
Account Amount2
Account Amount3
Account Amount4 Amount Total *Would like to appear here
------- -------
Total Amount Total **appears here on the report

Please let me know if this is possible, the underlay function hasnt worked for me, perhaps theres a formula I can use? Thanks,
 
Create these two formulas

//place this formula (@Formula_1) in the header of
//doc number

WhilePrintingRecords;
numbervar x;
x := 0

//place this formula on the account line (details?)
//(@Formula_2)


WhilePrintingRecords;
numbervar x;
x := x + {amount}

Then conditionally suppress Formula_2 like this:

if @Formula_2 = sum of {Amount_Total} then false else true

Leave the amount total where it is and suppress it


 
Hi Robbie, formulas work, but the total appears at the top of the account group, to the right of Amount1 in my example above, any way I can get it to jump to the bottom?
 
Robbie, I got this to work, please disregard my previous post. Thank you! Looks awsome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top