If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > dropping products with 0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-09, 12:34
dinosaur jockey dinosaur jockey is offline
Registered User
 
Join Date: May 2009
Posts: 1
dropping products with 0

I'm new to crystal reports and I'm trying to help a colleague. They are using crystal reports to generate reports from their data in accpac/sql.

They are running an inventory report, which lists several different quantities for each product. For example, warehouse A has 1000, warehouse B has 0, shipment in progress 2250, etc.

Right now the report returns every product they have. They want me to modify it, so that an item does not show up on the report if it has 0 in quantity for several different colums. So if columns A, B, and C have 0, completely remove the item from the report.

Is there any easy way to do this? I could probably write something in excel but they want it done in Crystal reports if possible.

Thank you in advance to anyone that might be able to help.
Reply With Quote
  #2 (permalink)  
Old 05-22-09, 13:38
trowe trowe is offline
Registered User
 
Join Date: Dec 2004
Location: Connecticut
Posts: 85
Make a calculated field that adds all the colums together - something like "ColumnA+ColumnB+ColumnC" if they're all numerical fields - and use that new field as the criteria for selecting records to appear on the report.
Reply With Quote
  #3 (permalink)  
Old 05-31-09, 02:30
Srinvb Srinvb is offline
Registered User
 
Join Date: May 2009
Posts: 5
Thumbs up

Select the colums for whichyou wanted to suppress whn zero.
right click-->Format Field-->Common tab-->Suppress (formula).
{fiels}=0. similarly do it for all the rest of the columns.

Finally if you wanted to suppress the whole record then select Section Expert-->suppress-->field1+field2+field3..=0
this will suppress the entire row(record).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On