Writing the Required Feeder
As with previous rules you've written, you now need to write a feeder that lets the consolidation engine know where there are rules-calculated values in the Plan cube.
Keeping in mind the Date/Month discrepancy reviewed above, the following feeder statement in the rule for the Production cube (recall that the feeder in an inter-cube rule always goes in the rule for the source cube) is accurate:
['Quantity Produced - Kgs']=>DB('Plan',!CakeType,!Date,'Planned
Production
Qty - Kgs');
For a given CakeType and Date, this feeder statement feeds Planned Production Qty - Kgs in the Plan cube when the Production cube contains a value for Quantity Produced - Kgs. Note that the DB function in the feeder statement references the Date dimension, which is not a member of the Plan cube. (Month is actually the second dimension of the Plan cube.) As with the calculation statement above, this works because the Date and Month dimensions share common element names.