So I have two(relevant) tables one that lists products bought and another that lists inventory level in storage. I wrote a query that calculates average rate that we use inventory at, and another that states most recent inventory level. Now to make that information useful I need to combine it together.
I need to estimate today's inventory level I am rather certain that formula for that should be:
(Most recent inventory level) - (days since inventory was measured) * ( average usage rate) = Estimates inventory level
The problem is that when I try to include records from both queries( one that states most recent counted inventory, and one that calculates depletion rate) the final query instead of matching items applies each record form the queries to each record from the other query, I'll illustrate:
My notation "Level" - recent Inventory level, "usage" - average usage, A B C - different items
What I want
Level of A Usage of A
Level of B Usage of B
Level of C Usage of C
What I get
Level of A Usage of A
Level of A Usage of B
Level of A Usage of C
Level of B Usage of A
Level of B Usage of B
Level of B Usage of C
Level of C Usage of A
Level of C Usage of B
Level of C Usage of C
I will upload the access file late I just need more time before I reduce size of it to fit upload requirements.
Thanks!