|
发表于 2014-3-21 01:15:00
|
显示全部楼层
Hi
Say ATTRS('Dim_CuentasBalance',!Dim_CuentasBalance, 'Cartera') returns other N Level accounts and there is a one to one relationship then all you need to do is create another attribute ( 'Cuentas para ser alimentado') that stores the account that needs to be fed for these (the ones that are referenced by the ATTRS('Dim_CuentasBalance',!Dim_CuentasBalance, 'Cartera')) N Level accounts.
Example (Account 4321 is an N level element):
If
ATTRS('Dim_CuentasBalance','1234, 'Cartera')='4321'
then this should be the case
ATTRS('Dim_CuentasBalance','4321', 'Cuentas para ser alimentado')='1234'
And this should work:
['Moneda de Origen','Presupuesto','Saldo']=>
DB('Cbw_Cartera',ATTRS('Dim_CuentasBalance',!Dim_CuentasBalance, 'Cuentas para ser alimentado'),
!Dim_Entidad,!Dim_Moneda,!Dim_BCorporativoResto,!Dim_A帽o,!Dim_Mes,!Dim_Conversion,!Dim_Versiones,'Saldo')
If your rule picks up a consolidated value from the account in ATTRS('Dim_CuentasBalance',!Dim_CuentasBalance, 'Cartera') it is a bit more tricky as the Feeder engine will never check an attribute which sits against that consolidation, because a consolidation on the left hand side of a feeder is a 'short cut' for all it's children.
In that case you would need to fill the 'Cuentas para ser alimentado' attribute for the children of that consolidation.
Say '4321' from above is a consolidation and its children are 4321.01 and 4321.02, then the attribute for the two latter elements should be filled with '1234' and this should hold true:
ATTRS('Dim_CuentasBalance','4321.01', 'Cuentas para ser alimentado')='1234'
ATTRS('Dim_CuentasBalance','4321.02', 'Cuentas para ser alimentado')='1234'
There feeder would stay the same.
Maybe you also read some threads here on conditional feeding which could be applied here (the condition being that there is also a %) but I have left it out to hopefully simplify things.
I hope this gets you going.
BTW, when you say "tried several ways" it also helps to post the feeder statement you have tried already. |
|