fabpas wrote:The rule in the T(arget) cube is something like
['Measure1'] = DB('S', 'DI_' |ATTRS('DimTime', !DimTime, 'Year'), 'Measure2')*DB('VAT', ATTRS('DimTime', !DimTime, 'Year'),'value');
Meanwile, you can try feeding to the consolidated element: If DI_2012, feeds to 2012 (the consolidated element), it feeds all the leaf level elements under '2012'.
Like this. If your consolidated year is '2012', your feeder would be this.
Code: Select all
['Measure2'] => DB ('T', SUBST (!DimTime, 4, 4), 'Measure1' );
If your consolidated element was '2012 -\', your feeder would be
Code: Select all
['Measure2'] => DB ('T', SUBST (!DimTime, 4, 4) | ' -\' , 'Measure1' );
A cleaner way to do this would be to have 2 different time dims:
1. Year dim - for cube 'S' which has data only @ the granularity of years
2. Year-Month dim for cube T', which has data @ the granularity of month
This way, you can get rid of the DI_ convention for the input
Your rules would now be
in 'T' (having the Yr-Month dimension)
Code: Select all
['Measure1'] = DB('S', ATTRS('DimTime', !DimTime, 'Year'), 'Measure2')*DB('VAT', ATTRS('DimTime', !DimTime, 'Year'),'value');
in 'S' (having the Yr dimension), write this feeder
Code: Select all
['Measure2'] => DB ('T', DimTime , 'Measure1' );