Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Basic Record Selection Problem Post Reply Post New Topic
Author Message
pwjm
Newbie
Newbie


Joined: 10 Apr 2008
Online Status: Offline
Posts: 2
Quote pwjm Replybullet Topic: Basic Record Selection Problem
    Posted: 10 Apr 2008 at 11:56am
I'm new to CR and have what I assume is a simple problem.
 
I have grouped my data by Part. Each Part is listed at the Branches that stock it, and each record has two more fields: Quantity Onhand, and 12-Month Demand. I want to eliminate records in two ways:
 
1. If there is no Quantity Onhand, I want to eliminate the Part, but only from the Branch where there is no Quantity.
 
2. If there is any 12-Month Demand in any branch, I want to eliminate all instances of that part. I use the sum function to find the total 12-month demand for each part.
 
Using the Select Expert creates a catch-22. If I eliminate
"Single Selection" based on Quantity Onhand, I create the possibility that these records contain Demand, which is now excluded from the sum, so I end up with parts that do have Demand. On the other hand, if I eliminate "Group Selection" based on Quantity Onhand, I remove every record for each part that is out of stock at even a single branch.
 
I need CR to consider the Demand for Parts that I've eliminated based on zero Quantity, and I can't figure out how!
 
Here's an example of what my data looks like:
 
Part                 Branch   Qty OH        12M Demand
 
01234567        
01234567           10             0                      1
01234567           11             4                      0
 
76543210
76543210           20             6                      0
76543210           21             0                      0
 
I want to completely get rid of part 01234567 (because it has any demand) and I want to keep only the first record for 76543210.
 
Your help is greatly appreciated!
IP IP Logged
pwjm
Newbie
Newbie


Joined: 10 Apr 2008
Online Status: Offline
Posts: 2
Quote pwjm Replybullet Posted: 10 Apr 2008 at 1:17pm

NM



Edited by pwjm - 10 Apr 2008 at 1:24pm
IP IP Logged
Savan
Senior Member
Senior Member
Avatar

Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Quote Savan Replybullet Posted: 10 Apr 2008 at 11:16pm

if u want to remove the 01234567 for that branch 10 then u can write a formula  in section expert in formula section as follows. check the supress option and in formula section write the following formula

"12M Demand" > 0
 
This will supress the line where if it finds  the demand is greater than 0.
 
Thanks
Savan
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.031 seconds.