I'm pretty new to using the feeders and I'm editing codes left by another developer. I noticed that the developer frequently used the DB function when feeding data inside the same cube. For instance:
Code: Select all
['adj','simulation 1','VN $']=n:if (db('Ventes',!produits,!routes,!rabais,!client,'bkd','simulation 1',!banner_div,!year_week,'VN $ Target')<>0,
db('Ventes',!produits,!routes,!rabais,!client,'bkd','simulation 1',!banner_div,!year_week,'VN $ Target') -
db('Ventes',!produits,!routes,!rabais,!client,'bkd','simulation 1',!banner_div,!year_week,'VN $'),0);
FEEDERS;
['bkd','simulation 1','VN $ Target']=>db('Ventes',!produits,!routes,!rabais,!client,'adj','simulation 1',!banner_div,!year_week,'VN $');
While I'm at it, I will ask another newbie question.
I added the following rules to the cube:
Code: Select all
['Bkd', 'Réel', 'BB$ Calc']= N: IF(['Bkd', 'Réel', 'BB$ Deb'] = 0, ['Bkd', 'Réel', 'BB$'], ['Bkd', 'Réel', 'BB$ Deb']) ;
FEEDERS;
['Bkd', 'Réel', 'BB$']=>['Bkd', 'Réel', 'BB$ Calc'];
['Bkd', 'Réel', 'BB$ Deb']=>['Bkd', 'Réel', 'BB$ Calc'];
Code: Select all
['Bkd', 'Réel', 'BB$ Calc']= N: IF(['Bkd', 'Réel', 'BB$ Deb'] > 0, ['Bkd', 'Réel', 'BB$ Deb'], ['Bkd', 'Réel', 'BB$']) ;
Thanks for you support.