write feeders in rules using DB function

Post Reply
sunitha
Posts: 8
Joined: Wed Apr 14, 2010 10:45 pm
OLAP Product: tm1
Version: 9.4
Excel Version: 2003

write feeders in rules using DB function

Post by sunitha »

Hi,

I'm trying to write a rule,using two external (lookup) cubes to calculate the amount, please help me how to write the feeders for the following rule.

['amount']=N:DB('inve_Vol',!d_month,!d_year,!d_version,!inv_type,!inv_ca,'quantity') * DB('inv_rates',!d_month,!d_year,!d_version,'Unit Price');

when i try to trace the calculation and feeders in tm1 view the values are not fed and calculated.

regards,
Sunitha
User avatar
kielmc
Posts: 22
Joined: Tue Jun 24, 2008 6:17 pm
OLAP Product: TM1
Version: 10.2.2 FP4
Excel Version: 2013
Location: Birmingham, AL

Re: write feeders in rules using DB function

Post by kielmc »

['amount']=N:DB('inve_Vol',!d_month,!d_year,!d_version,!inv_type,!inv_ca,'quantity') * DB('inv_rates',!d_month,!d_year,!d_version,'Unit Price');
Since this is simple multiplication, you can feed from either factor, using 'quantity' in the 'inve_Vol' cube or 'Unit Price' in the 'inv_rates' cube.

something like this:

#feeder in 'inv_Vol' cube
['quantity'] => DB('rule cube', dim1, dim2, ..., 'amount');

or

#feeder in 'inv_rates' cube
['Unit Price'] => DB('rule cube', dim1, dim2, ..., 'amount');
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: write feeders in rules using DB function

Post by Andy Key »

...but as Quantity is more sparse than Price, use the feeder from the cube with Quantity to avoid overfeeding.
Andy Key
Post Reply