consolidating a dynamic subset via the rules file
Posted: Wed Jun 21, 2023 12:13 pm
I have a dynamic subset that is defined in the set editor using MDX, and I have created a subset calculation in a cube view to aggregate over this subset. If I click on the MDX View, I can see the code that has been used to create the calculation.
For reference, the subset definition is
and the calculation at the start of the MDX View is
Is there any way that I can replicate this calculation using a user-defined consolidation in the rules file? I want to be able to pick up the calculated value and reference it in another cube.
(Google has told me that custom rollups are a thing in other IBM packages, but as far as I can see they still don't exist in PAW. My backup plan is to create a process that iterates through the elements in the subset and calculates the total through repeated use of CellIncrementN, but it feels like a bit of a faff for what is essentially a quick data validation check.)
Thanks in advance...
For reference, the subset definition is
Code: Select all
EXCEPT(FILTER(DRILLDOWNMEMBER({[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]} , {[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]}) , [ABC_c_ActivityAssignment].[ABC_c_ActivityAssignment].[Driver Missing] <> "Y") , {[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]})
Code: Select all
WITH MEMBER [ABC_BudgetLine].[ABC_BudgetLine].[Driver Assigned(Sum)] AS SUM({DISTINCT({EXCEPT(FILTER(DRILLDOWNMEMBER({[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]} , {[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]}) , [ABC_c_ActivityAssignment].[ABC_c_ActivityAssignment].[Driver Missing] <> "Y") , {[ABC_BudgetLine].[ABC_BudgetLine].[Budget Line TOTAL]})})}), SOLVE_ORDER = 1, FORMAT_STRING = '#,##0.00;(#,##0.00)'
(Google has told me that custom rollups are a thing in other IBM packages, but as far as I can see they still don't exist in PAW. My backup plan is to create a process that iterates through the elements in the subset and calculates the total through repeated use of CellIncrementN, but it feels like a bit of a faff for what is essentially a quick data validation check.)
Thanks in advance...