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

Summing Two Columns 1

Status
Not open for further replies.

spacemanspiffy04

Programmer
Feb 10, 2006
24
US
Hi, I'm new to crystal reports, so this is probably really simple.

I have created a report that includes 2 columns that I would like to sum.

I would then like to display the summed column and hide the other two columns.

Any help would be gratly appreciated!

Thanks!
 
Create a formula:

sum({table.col1})+sum({table.col2})

This would be for the report footer. If you want to do this at a group level, you would add in a group condition, as in:

sum({table.col1},{table.groupfield})+sum({table.col2},{table.groupfield})

...and place it in the group header or footer. No need to put the columns themselves on the report at all.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top