Feeding the Second Statement
The second statement in the rule for the Depletion cube pulls data from the Inventory cube.
['Available']=DB('Inventory',!FishType,!Date,!DaysOld,'Quantity
in Stock - Kgs');
The statement requires an accompanying feeder in the rule for the Inventory cube. Again, the feeder can be constructed by inverting the calculation statement to arrive at the following:
['Quantity in Stock - Kgs']=>DB('Depletion',!FishType,!Date,!DaysOld,'Available');
Follow the steps below to add this statement to the rule for the Inventory cube.