I have a Cube with following dimensions:
Scenario
Time Period
Product
Location
Account
Measures
We have a some elements in the Scenario Dimension that are populated with Rules as a combination of Actual data and Forecast Data, so for each scenario, in a COntrol Cube, we keep the First Forecast Month ( for example 2021-03 ) and then we have a Rule as Below:
Code: Select all
[] = IF ( ATTRS ( 'Scenario', !Scenario, 'Scenario Type' ) @= 'Mix' ,
IF ( ELLEV ( 'Time Period' , !Time Period ),
IF ( !Time Period @< ATTRS ( 'Scenario', !Scenario, 'Forecast Start' ) ,
DB ('My Cube', ATTRS ( 'Scenario', !Scenario, 'Actual Base Scenario' ) , !Time Period , !Product , !Location , !Account, !Measures ) ,
DB ('My Cube', ATTRS ( 'Scenario', !Scenario, 'Forecast Base Scenario' ) , !Time Period , !Product , !Location , !Account, !Measures )
)
ConsolidateChildren ( 'Time Period' )
) ,
CONTINUE
) ;
Now we added some additional Hierarchies in the Time Dimension such as Years, Quarters, Months
They all share the same Leaf Time Periods.
The rule above works fine until one or more Hierarchies are placed in the View in PAW.
So for example if the User Places Year Hierarchy in the Rows and Month Hierarchy in the Columns, then the Rule above does not work as expected. So it just shows Actual data for all the months ( if my Forecast Start is 2021-03, we want to show Actuals only until 2021-02 and the Forecast for all other Time Periods)
Does anyone have any idea?