How to FEED??? Going crazy...
Posted: Tue Feb 09, 2016 8:44 am
Hi
I am starting to loose my mind here. I am desperately trying to get a feeder to work but nothing seems to work. Am I experienced in TM1? No, not really. I could really need some help if anyone have the time.
The measure I would like to feed is called 'FC Sales USD'. That measure is defined like this:
['FC Sales USD'] = N:
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='100%',
(['FC Calculated sales'] * 1),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='90%',
(['FC Calculated sales'] * 0.9),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='60%',
(['FC Calculated sales'] * 0.6),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='30%',
(['FC Calculated sales'] * 0.3),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='10%',
(['FC Calculated sales'] * 0.1),
['FC Calculated sales'] * 1)))));
The measure 'FC Calculated sales' is defined like this:
['FC Calculated sales']=N:
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='US_Dummy_customer',
[Currency:'N/A','FC Calculated volume'] * DB('S_aggregate','USD','US_Dummy_Customer',!Month,!Year,!Plant,!Product aggregate,!Version,'Price'),
[Currency:'N/A','FC Calculated volume'] * ['Price']);
And finally, just to be sure you have everthing needed, 'FC Calculated volume' is defined like this:
['FC Calculated volume'] = N:
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='Dummy_customer',
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') * ['Dummy_currency','Dummy_customer','Dummy_plant','Volume key'],
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='US_Dummy_customer',
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') *
(DB('S_ aggregate','Dummy_currency',!Customer,'NA_Numerator','NA_Year_Numerator','Dummy_plant',!Product aggregate,!Version,'NA_Numerator_value') /
DB('S_aggregate','Dummy_currency',!Customer,!Month,'NA_Year_Numerator','Dummy_plant',!Product aggregate,!Version,'NA_Denominator')),
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') * DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,!Version,'Volume key')));
My first choice was to basically write the feeder like:
['FC Calculated sales'] => ['FC Sales USD']
...but it doesnt work. Have tried so many different options. Please help...
I am starting to loose my mind here. I am desperately trying to get a feeder to work but nothing seems to work. Am I experienced in TM1? No, not really. I could really need some help if anyone have the time.
The measure I would like to feed is called 'FC Sales USD'. That measure is defined like this:
['FC Sales USD'] = N:
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='100%',
(['FC Calculated sales'] * 1),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='90%',
(['FC Calculated sales'] * 0.9),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='60%',
(['FC Calculated sales'] * 0.6),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='30%',
(['FC Calculated sales'] * 0.3),
IF(DB('S_aggregate','USD',!Customer,'All Months',!Year,!Plant,!Product aggregate,!Version,'Calculated probability') @='10%',
(['FC Calculated sales'] * 0.1),
['FC Calculated sales'] * 1)))));
The measure 'FC Calculated sales' is defined like this:
['FC Calculated sales']=N:
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='US_Dummy_customer',
[Currency:'N/A','FC Calculated volume'] * DB('S_aggregate','USD','US_Dummy_Customer',!Month,!Year,!Plant,!Product aggregate,!Version,'Price'),
[Currency:'N/A','FC Calculated volume'] * ['Price']);
And finally, just to be sure you have everthing needed, 'FC Calculated volume' is defined like this:
['FC Calculated volume'] = N:
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='Dummy_customer',
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') * ['Dummy_currency','Dummy_customer','Dummy_plant','Volume key'],
IF(ATTRS('Product aggregate',!Product aggregate,'Volume_key') @='US_Dummy_customer',
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') *
(DB('S_ aggregate','Dummy_currency',!Customer,'NA_Numerator','NA_Year_Numerator','Dummy_plant',!Product aggregate,!Version,'NA_Numerator_value') /
DB('S_aggregate','Dummy_currency',!Customer,!Month,'NA_Year_Numerator','Dummy_plant',!Product aggregate,!Version,'NA_Denominator')),
DB('S_aggregate','N/A',!Customer,!Month,!Year,!Plant,ATTRS('Product aggregate',!Product aggregate,'Input_node'),!Version,'FC Volume') * DB('S_aggregate','Dummy_currency',!Customer,!Month,!Year,'Dummy_plant',!Product aggregate,!Version,'Volume key')));
My first choice was to basically write the feeder like:
['FC Calculated sales'] => ['FC Sales USD']
...but it doesnt work. Have tried so many different options. Please help...