Cube1: FN_IncentiveRates
Dim1: FN_FiscalYear
Dim2: FN_IncentiveCode
Dim3: FN_BonusType
Cube2: FN_IncentiveSales
Dim1: FN_FiscalYear
Dim2: FN_Ledger
Dim3: FN_AccountingPeriod
Dim4: FN_SalesGroup
Dim5: FN_Incentive_Salary_Measure
Cube3: FN_IncentiveSalaries
Dim1: FN_AccountingPeriod
Dim2: FN_EmployeeDetails
Dim3: FN_FiscalYear
Dim4: FN_Incentive_Salary_Measures
In my FN_IncentiveSalaries cube I have managed to write the following rule. Is calculating a bonus incentive for a staff member based on whether Sales have been met for a Sales Group. I have gotten the rule work and return a value but when I put zero suppression on my results disappear I know this due to the feeder but I’m not sure how to write this any help would be appreciated.
Code: Select all
['3rd Quarter','Incentive']=C: if(DB('FN_IncentivesSales',!FN_FiscalYear,'Actual V Budget','3rd Quarter',ATTRS('FN_EmployeeDetails',!FN_EmployeeDetails,'Sales Group'),'Sales')>1,
['3rd Quarter','Transactions']* DB('FN_IncentiveRates',!FN_FiscalYear,ATTRS('FN_EmployeeDetails',!FN_EmployeeDetails,'Incentive Code'),'All Bonus Types'),stet);