Tm1 Complex Rule
Posted: Tue Jun 06, 2017 3:25 pm
Hi ,
I have a Account Receivable cube (AR Cube)which has customers and balances by month .
I also have a sales cube which has customers with sales data by months .
I need to calculate the last 3 month sales and last 6 month sales in AR cube using a rule from sales cube based on the value selected from the months in AR cube .
Say if user views April 2017 data in AR cube I need to go to sales cube and for the customer get the last three month sales which would be MAR , Feb and Jan 2017 .
As of now I have an attributes in my month element as prior month and I use
[3Month Sales] = DB(Prior month,sales ,customer) + DB((Prior month(Prior Month),sales ,customer) +DB((Prior month(Prior Month(Prior Month)),sales ,customer) .
since the 3 months we pick might change based on user selection of month in AR cube , i cannot create a dynamic 3 months subset for months .
I need to do the same for 6 months as well .
Is there a better approach or should I load back Sales data as well in to AR cube , which will be an overhead if there is any changes in sales data then we have to reload both .
Thanks,
I have a Account Receivable cube (AR Cube)which has customers and balances by month .
I also have a sales cube which has customers with sales data by months .
I need to calculate the last 3 month sales and last 6 month sales in AR cube using a rule from sales cube based on the value selected from the months in AR cube .
Say if user views April 2017 data in AR cube I need to go to sales cube and for the customer get the last three month sales which would be MAR , Feb and Jan 2017 .
As of now I have an attributes in my month element as prior month and I use
[3Month Sales] = DB(Prior month,sales ,customer) + DB((Prior month(Prior Month),sales ,customer) +DB((Prior month(Prior Month(Prior Month)),sales ,customer) .
since the 3 months we pick might change based on user selection of month in AR cube , i cannot create a dynamic 3 months subset for months .
I need to do the same for 6 months as well .
Is there a better approach or should I load back Sales data as well in to AR cube , which will be an overhead if there is any changes in sales data then we have to reload both .
Thanks,