Feeder behaviour in multi-level hierarchy
Posted: Wed Aug 01, 2012 11:33 pm
Guys,
I'm getting used to SKIPCHECK and FEEDERS, but there's still a point concerning my rule. According to the script and images below, I can't figure out how to place FEEDERS correctly in order to get the same values as without FEEDERS.
--------------------------------------------------------------------------------------------
SKIPCHECK;
#------------------------------------------------------------ AUX
['qtd_metric'] = N: 1; C: STET;
#------------------------------------------------------------ ok, nota%
['nota_%_rm'] =
if (ELCOMPN('estrutura_imc', !estrutura_imc) >=1,
0,
(((['qtde_visitas_feitas'] / ['qtde_meta_visitas']) + (['qtde_contatos_feitos'] / ['qtde_meta_contatos']))/2)
);
#------------------------------------------------------------ ok, nota atual
['aux_nota_imc'] = if (ELLEV('estrutura_imc', !estrutura_imc) = 0,
If(['nota_%_rm'] >= 1,1,If(1 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.9,2,
If(0.9 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.8,3,
If(0.8 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.6,4,If(['nota_%_rm'] < 0.6,5,0))
)
)
),STET
);
['nota_imc'] = if (ELLEV('estrutura_imc', !estrutura_imc) = 0,
['aux_nota_imc'],
['aux_nota_imc']/['qtd_metric']
);
#------------------------------------------------------------ FEEDERS
FEEDERS;
['qtde_meta_visitas'] => ['nota_%_rm','qtd_metric','aux_nota_imc','qtd_metric'];
--------------------------------------------------------------------------------------------
Thanks in advance
I'm getting used to SKIPCHECK and FEEDERS, but there's still a point concerning my rule. According to the script and images below, I can't figure out how to place FEEDERS correctly in order to get the same values as without FEEDERS.
--------------------------------------------------------------------------------------------
SKIPCHECK;
#------------------------------------------------------------ AUX
['qtd_metric'] = N: 1; C: STET;
#------------------------------------------------------------ ok, nota%
['nota_%_rm'] =
if (ELCOMPN('estrutura_imc', !estrutura_imc) >=1,
0,
(((['qtde_visitas_feitas'] / ['qtde_meta_visitas']) + (['qtde_contatos_feitos'] / ['qtde_meta_contatos']))/2)
);
#------------------------------------------------------------ ok, nota atual
['aux_nota_imc'] = if (ELLEV('estrutura_imc', !estrutura_imc) = 0,
If(['nota_%_rm'] >= 1,1,If(1 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.9,2,
If(0.9 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.8,3,
If(0.8 > ['nota_%_rm'] & ['nota_%_rm'] >= 0.6,4,If(['nota_%_rm'] < 0.6,5,0))
)
)
),STET
);
['nota_imc'] = if (ELLEV('estrutura_imc', !estrutura_imc) = 0,
['aux_nota_imc'],
['aux_nota_imc']/['qtd_metric']
);
#------------------------------------------------------------ FEEDERS
FEEDERS;
['qtde_meta_visitas'] => ['nota_%_rm','qtd_metric','aux_nota_imc','qtd_metric'];
--------------------------------------------------------------------------------------------
Thanks in advance