Page 1 of 1

Tm1 Rule - Feeders for Current Rule

Posted: Mon Jan 28, 2019 5:52 pm
by manu0521
Hi ,

I am creating an averageCFYTD rule in my exchange rates cube dimension .

All it does is , checks the current month and say if it is august 2018 , then it takes June 2018 rate +July 2018 rate +August 2018 rate and divides by 3 and gets a rate .

I have the below rule , can anyone tell me how the feeders should look , I will be having 12 nested if statements in my rule based on month number . I am just showing 1. Below is showing for July month- takes 201812 - june rate + 201901 July rate and divides by 2

['AverageCFYTDRate']=N:if(Month(Date((DayNo(Today(1))-1),1))=7,(DB('Exchange Rates','Actual',!Currencies,'USD','Ending Rate',STR(Year(Date((DayNo(Today(1))-1),1)),4,0)|'12')+DB('Exchange Rates','Actual',!Currencies,'USD','Ending Rate',STR(Year(Date((DayNo(Today(1))-1),1))+1,4,0)|'01'))/2,0);

Any help is appreciated .

Re: Tm1 Rule - Feeders for Current Rule

Posted: Mon Jan 28, 2019 6:17 pm
by tomok
All a feeder does is flag a rule calculated cell as being non-empty so it doesn't matter how you derive the feeder as long as the end result is cells being fed where they should be. I would feed from Ending Rate:

Code: Select all

['Ending Rate'] => ['AverageCFYTDRate']