Need an help with how to write the feeders for the below rule .
I have a accounts recieveable cube which goes to sales cube to grab sales values for the common customer . The values are not being fetched when the balance for the account in AR cube is zero .
Below is my rule.
Code: Select all
['Last 3 Month Sales']=N:if(TIMST(DAYNO(TODAY)-1,'\M \Y')@=!Months ,
(
DB('Sales Detail', 'All Distributors', ATTRS('Months', !Months,'PriorMonth1'), !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cos
t Centers', 'All Teams', 'US Reporting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')
+ DB('Sales Detail', 'All Distributors', ATTRS('Months', !Months,'PriorMonth2'), !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cos
t Centers', 'All Teams', 'US Reporting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')
+ DB('Sales Detail', 'All Distributors',ATTRS('Months', !Months,'PriorMonth3') , !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cos
t Centers', 'All Teams', 'US Reporting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')),
(DB('Sales Detail', 'All Distributors', !Months, !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cost Centers', 'All Teams', 'US Re
porting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')
+DB('Sales Detail', 'All Distributors', ATTRS('Months', !Months,'PriorMonth1'), !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cos
t Centers', 'All Teams', 'US Reporting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')
+DB('Sales Detail', 'All Distributors',ATTRS('Months', !Months,'PriorMonth2'), !Currency, !Currencies,ATTRS('Customers SoldTo Only', !Customers SoldTo Only,'SoldToAlias'),'All Regions','All Regions' , 'All Regions','All Customer Types' ,'All Buying Groups', 'All Storage Locations', 'All Cost
Centers', 'All Teams', 'US Reporting Item Categories', 'US Reporting Billing Types', 'US Reporting Sales Order Types w ZDST', 'Full Revenue')
));
My current feeder for testing is feeding all
[]=>['Last 3 Month Sales'];
But this doesnot work when AR customer has zero balance , even if there is sales corresponding in sales cube.
Any help is appreciated , i am in the process of learning the basics for rules and feeders.