Something along the lines of
Code: Select all
['Expense'] = N: DB('Cube 2', 'Element 1', ATTRS( 'Dimension2, !Dimension2, 'Source Element Name'), 'Element 3');
Code: Select all
['Expense'] => DB( if(ATTRS( 'Dimension2, !Dimension2, 'Source Element Name')@=!SourceDim, 'Cube 1', ''), !Dim1, !Dim2, !Dim3);
Does this make sense? Im sure others have written rules that were dynamic to attributes? How do you feed this? Our thoughts at this point are to create a rollup in the target dimension that contains all the elements that lookup their value based on the attribute and just overfeed that subtotal.
Does the logical expression have to contain only elements from source cube? Our issue is that we have to lookup the source element from the attribute of the target dimension.
Any help?