Print Page | Close Window

Profit and Loss Statement

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17895
Printed Date: 07 May 2024 at 3:58am


Topic: Profit and Loss Statement
Posted By: cgonza0612
Subject: Profit and Loss Statement
Date 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



Replies:
Posted By: hilfy
Date 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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: cgonza0612
Date 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?


Posted By: hilfy
Date 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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window