cancel
Showing results for 
Search instead for 
Did you mean: 

No idea where to start......

Former Member
0 Kudos

I have one table that has several records. I am not sure how to structure a formula or other method of pulling the records I need for the following ;

"Select all warehouses and  locations and their qty for any part that has a negative qty in any of the warehouse/location configurations".

I can pull all warehouses and their quantities for each part but as soon as i indicate that i want parts that have neg. qty i only return that warehouse/location qty and not all information for that part id.

See attached.

Accepted Solutions (0)

Answers (2)

Answers (2)

abhilash_kumar
Active Contributor
0 Kudos

Hi Megean,

Here's what you need to do:

1) Go to the Database Expert > Add the existing table again. CR will add this table with an underscore suffixed to its name.

2) Go to the Links tab > setup and Inner Join on the ID fields between these two tables.

3) Go to the Report Menu > Selection Formulas > Record and use this code:

(

     {Table_1.ID} < 0

)

AND

Here {Table_1.ID} is the ID field in the new table you added.

The 'AND' at the end is for you to add any other filter conditions you may have in your existing report. If there aren't any, please remove the 'And' keyword.

-Abhilash

ido_millet
Active Contributor
0 Kudos

Group by Product and then by warehouse.
Use Report, Selection Formulas, Group... to impose a condition that the Minimum balance of a product across all warehouses is negative. That way, products with no negative balance will be removed.