Conditional Feeder Help
Posted: Mon Jun 15, 2015 7:10 pm
We have a cube where data is pulled from another cube based on an attribute.
Something along the lines of
It would seem that in this case we would need to write a conditional feeder in order to correctly feed the cube from the source.
No matter what we do we get an invalid string expression when trying to save the rule after adding the feeder. The only thing different about the cubes is the single dimension that we lookup the element name from the attribute.
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?
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?