Now I think I’m on the right track but would love for someone to tell me if I am correct or wrong and if so what should I do to correct the issue. Also, with my TI process below, I need some help with getting my subsets created. Now I know how to create them manually but I want to have them created within the TI process. Now I’m trying to create 4 subset, 3 of the subsets would be static and one subset would need a rule, I believe. Or some type of logic.
Here is what the cube looks like:
Code: Select all
############################
## Define Static Variables ##
############################
## Define Cube names ##
sCubSAPCosts = 'SAP_COSTS';
## Define Dimension Names ##
sDimCostElement = 'COSTELEMENT';
sDimCostCenter = 'COSTCENTER';
sDimOrder = 'ORDER';
sDimCurrency = 'CURRENCY';
sDimIntercompany = 'INTERCOMPANY';
sDimTimeline = 'TIMELINE';
sDimEntityBS = 'ENTITY_BS';
sDimStatus = 'PDD_Status';
sDimScenarioShort = 'SCENARIO_SHORT';
sDimSource = 'SOURCE';
## Define View Names ##
sViewSource = 'Ascend_Actuals_IC';
## Define Subset Names ##
sSubsetSource = sViewSource;
sSubsetDestination = sViewDestination;
############################
## Set up Actuals View from the SAP_COSTS Cube ##
############################
## Remove the Source view if it exist already.
IF(ViewExists(sAscendActualsIC,sViewSource) > 0);
ViewDestroy(sAscendActualsIC,sViewSource);
EndIf;
## Remove the subsets if they exist already. They will be dynamically recreated below.
IF(SubsetExists(sDimTimeline,sSubsetSource) > 0);
SubsetDestroy(sDimTimeline,sSubsetSource);
EndIf;
IF(SubsetExists(sDimIntercompany,sSubsetSource) > 0);
SubsetDestroy(sDimIntercompany,sSubsetSource);
EndIf;
IF(SubsetExists(sDimCurrency,sSubsetSource) > 0);
SubsetDestroy(sDimCurrency,sSubsetSource);
EndIf;
IF(SubsetExists(sDimScenarioShort,sSubsetSource) > 0);
SubsetDestroy(sDimScenarioShort,sSubsetSource);
EndIf;
## Create Source View
ViewCreate(sAscendActualsNonIC,sViewSource);
## Create Subsets ---- NEED HELP
## Assigned the subset to view --- NEED HELP
############################
## END TI PROCESS ##
############################
SCENARIO_SHORT - STATIC
INTERCOMPANY - STATIC
CURRENCY - STATIC
TIMELINE
Now the TIMELINE subset will be different as this subset should not be static and I’m not sure how to do this or where to start. I'm guessing I need a rule. What I would like to do is grab the current month and year and pull data 3 years back.
Here’s how I create this subset manually.
First I go to Timeline Dimension
Second I then open Timeline Dimension
Third I close all hierarchies
Fourth step I expand and open the “Timeline Fiscal Year” hierarchy
Fifth step I select the current FY year and 2 years prior. This is where I think I need to add a rule or sometype of logic.
Once selected I then click on the “Expand” button
After clicking the “Expand” button the lower level elements will be shown. Next, I click on “Filter by Level” button, in which I Select 0 then click OK.
Then I save the following subset as 3_Years_Monthly.
Now how do I do this in a TI process?
Now these are the only subsets I need for my view. Once the view is created with this set of data the next step I wanted to do is export this into a flat file. Can anyone provide me any example on how to do this when the view is created? Thanks!