How do I write Feeders about "IF" condition for consolidation
Posted: Tue Oct 06, 2015 2:15 am
Hi All,
I'm Korea language user. so, my English is not good. understand me.
Let's get start! My situation.
first. when I did n't use "SKIPCHECK" and "FEEDERS" then ['TOT_Origin_Agent', 'Ratio(rest)'] cell was well showen consolidation calculation below First Red box of picture.

But. when I used "SKIPCHECK" and "FEEDERS" then ['TOT_Origin_Agent', 'Ratio(rest)'] cell was not showen consolidation calculation below second Red box of picture.

Anyone ansewer me. thank you.
I'm Korea language user. so, my English is not good. understand me.
Let's get start! My situation.
first. when I did n't use "SKIPCHECK" and "FEEDERS" then ['TOT_Origin_Agent', 'Ratio(rest)'] cell was well showen consolidation calculation below First Red box of picture.

But. when I used "SKIPCHECK" and "FEEDERS" then ['TOT_Origin_Agent', 'Ratio(rest)'] cell was not showen consolidation calculation below second Red box of picture.
Code: Select all
SKIPCHECK;
#TEU interface cube로 부터 Origin Agetn TEU 값을 가져옴
['TEU'] = DB('int_data', !Year, !Months, !Origin Agent, 'TOT_Destination_Agent', 'TOT_Container_Size', 'TOT_Container_Type', 'TEU');
['Ratio'] = ['TEU'] / ['TOT_Origin_Agent', 'TEU'];
#### Question coding #####
['Ratio(rest)'] = N:if( ['Ratio(aj)'] <> 0 , 0, ['Ratio']);
FEEDERS;
['TEU'] => ['Ratio'];
#### Questino coding ####
['Ratio(aj)'] => ['Ratio(rest)'];

Anyone ansewer me. thank you.