Hi
Still coughing up coffee after reading this from the previous post:
['Subs','Jan','2008']=>['Subs','Year','All_years'];
Which is basically the worst overfeeding you can do in this example, just to mention that you are unnecessarily feeding all years prior to 2008 as well.
You don't necessarily need to create a 'All Years' (or 'All Months' for that matter) to feed your rule, let alone that it is not recommendable to use especially ‘All Years’ in the first place.
The way you write a Feeder for this is also dependent on how many years out (in the future) you want to actually feed and I would put in a condition in your feeder which checks this.
If you need to push your Balance 20 Years out (eg in a Mining Model) then maybe you should consider a different way of writing your feeder.
I usually create a 'Time' cube which creates an Index for any Month-Year combination. This usually has the Year, Month and a Measure dimension. In this I also store the following and previous Month for a Month and the following and previous Year for a Month-Year combination. With that I can easily say that the month I need to feed from, say, Dec-2008 feeds Jan-2009 (or usually Opening Balance but that depends on whether you store the balance or the movement against the Month element) and also whether a month is in a certain range.
But let’s just say you only need to feed 5 Years because that was the scope of your Budget then a feeder like this will work just fine.
['Subs']=>DB(
IF(Range of Index comparison ,cubename,’’),DB(‘Time’, !Year, !Month, ‘Next Year’), DB(‘Time’, !Year, !Month, ‘Next Month’), ‘Subs’);
I have simplified the comparison of the indexes. It basically says: check whether the feeding month is greater or equal to Jan 2008 and less than say Dec 2012.
You could also leave 'Jan', '2008' in the left side which possibly would improve start up and rule save time but unless it is an issue I'd opt not to hard code a year in a rule.
If you do feel comfortable to have a go at conditional feeders and the above assumption of the scope is fitting then post the full dimensionality of your cube(s) and I am happy to assist.
Cheers