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

Crystal report 2 columns values

Status
Not open for further replies.

LBC2

MIS
Aug 28, 2012
13
US
My table is as follows
Sales|VendorNb|EmployeeNb|
I created a report showing sales by employee Nb if vendor Number is 11111.
Now I would like to modify my report to have 2 columns:
1 Column showing sales from vendor 11111
1 Column showing sales from other vendor items.

For example,
Employee Number
Total Sale Vendor 11111 Total Sales Others Vendors

Anybody would have a sample or some hint because I am having difficulty to do it using a sub report.
Thanks
Louis

( I am using Crystal XI)
 
Create two formulas side-by-side that you would sum by employee:

{@111111}
if {your VendorNb field} = "111111" then {your Sales field} else 0

{@not111111}
if {your VendorNb field} = "111111" then 0 else {your Sales field}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top