Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Profit and Loss Statement Post Reply Post New Topic
Author Message
cgonza0612
Newbie
Newbie


Joined: 31 Oct 2012
Location: United States
Online Status: Offline
Posts: 2
Quote cgonza0612 Replybullet Topic: Profit and Loss Statement
    Posted: 01 Nov 2012 at 2:07am
I have a Crystal report that pulls from a view in  Dynamics GP database and an excel spreadsheet.
It pulls by salesperson. 
 
The only place that I can get the information to pull from the spreadsheet is in the section that has the Gross Profit calculation.   However, it does not pull the information from the spreadsheet if that Sales Person does not have any sales or Cost of Sales.   Also, if the Gross Profit is 0.00, it prints the section twice, so I added a suppress statement to suppress if 0.  But even if I take that off, it still does not print the spreadsheet field if the salesperson does not have any Sales or Cost of Sales.
 
The spreadsheet only has two fields,  employee id and salarary amount.
 
It is linked on employee id to the salesperson.
 
I need to get it to pull in the salary for that salesperson, even if they do not have any sales or cost of sales.
 
Any ideas?
 
Thanks
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 01 Nov 2012 at 6:02am
Is the salesperson info in one table in the database and the sales/cost of sales in another?  If that is the case, this has nothing to do with spreadsheet and everything to do with how your tables are joined together.  You need to join FROM the salesperson table TO the sales data table.  Then right-click on join and set it to a "Left Outer" join.  This way you'll get the sales person info even if there is no sales data.
 
-Dell
IP IP Logged
cgonza0612
Newbie
Newbie


Joined: 31 Oct 2012
Location: United States
Online Status: Offline
Posts: 2
Quote cgonza0612 Replybullet Posted: 01 Nov 2012 at 8:03am

Thank you.  That method removes all of the fields for these two saleperson ID's completely. 

Any other ideas?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 01 Nov 2012 at 10:07am
How are you grouping the report?  Tell me a bit more about how your data is set up.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.027 seconds.