Hi
I am guessing that all the items that you are feeding from are in the same dimension, presumbably your measures dimension? Assuming that I am right (and if not, then please post the structure of your cube), then if you want to feed from more than one thing in the same dimension then you need { } around the elements. However, in this case you only need to feed from Amount, so your feeder should be:
[ 'Amount' ] => [ {'Required $', 'Required FTE'} ];
Though personally I would write it as:
[ 'Amount' ] => [ 'Required $' ] ;
[ 'Amount' ] => [ 'Required FTE' ];
The reason is that you only need to know if Amount is non-zero to determine if there is a non-zero result that needs consolidating.
I think that you are getting the syntax error because Calculation Option is a string element and you are using it to feed a numeric element.
Regards
Paul Simon
DNA_DC wrote:Hello,
I am trying to run this code to compare a piece of text to select a particular calculation based on the "option" selected by the user but keep getting this error:
Error on Line 4: Syntax error on or before ['Calculation Option
Logical expression
Here is the code I am running
Code: Select all
FEEDSTRINGS;
Skipcheck;
['Required $' ] = IF(['Calculation Option'] @= 'FTE', ['Average Cost']*['Amount' ], ['Amount' ]);
['Required FTE'] = IF(['Calculation Option'] @= '$', ['Amount' ]/['Average Cost'], ['Amount' ]);
Feeders;
['Average Cost', 'Amount', 'Calculation Option'] => ['Required $', 'Required FTE'];
As always, any help is greatly appreciated.