Show Only Items Short

JNM

New Member
Joined
Jan 24, 2012
Messages
35
Fact table - Sales Lines, linked to lookup Item table with Quantity on Hand (QOH) value in column b. Pivottable shows all sales lines grouped by order. Item A is in Order 1 with a quantity of 5, Item A is in Order B with a quantity of 5. QOH is 5, therefore both orders are short, even though there is enough to fill one. Item B and C are on both orders, but there is plenty on hand. The end result in the pivot table should show both orders with only Item A as rows. Is this possible? I've got over 30 hours into this and have yet to get it to work correctly.

My last thought is to create a separate table of Items short and use a value of 1 if short and 0 if not and link that table to the sales lines, then calculate sales lines on only 1s. Will need to give that a try.

Appreciate any suggestions.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The separate table idea worked. Added a measure calculate filtered to 1s (items short), then added a "related" column to the saleslines tables with the values short, measure summing those and added to pivottable and it's just what was needed!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top