FIX(@GENMBRS("Time",4),"Plan", &YEAR1)"Inventory"(If(@ISMBR(JAN))"Inventory" = @MDSHIFT("Inventory",-1,Years,,11,"Time",,-1,Scenarios,) + "New Inventory" ;ELSE"Inventory" = @PRIOR("Inventory",1) +"New Inventory";ENDIF)ENDFIX;The @MDSHIFT function goes back one year, goes down 11 members in the Time dimension, and then goes up onemember on the scenario dimension. In the above example the "Plan" member is listed just below the"Forecast" member on the scenario dimension.How can I create a global "Prior Period Chg" calculation?In order to create a 'global' prior period chg calculation, you should first create an additional dimension which can beused for global calculations.If you already have a metrics type dimension, you can use this formula to calculate the prior period chg for anyintersection in the cube. This example displays the formula for a cube which has a separate Time and Yearsdimension.IF(@ISGEN("Time",4))If(@ISMBR(JAN))Amount - @MDSHIFT("Amount",-1,Years,,11,"Time",);ELSEAmount - @PRIOR("Amount",1);ENDIF;ELSEIF (@ISGEN("Time",3))If(@ISMBR(Q1))Amount- @MDSHIFT("Amount",-1,Years,,3,"Time",(Q1,Q2,Q3,Q4));ELSEAmount -@PRIOR("Amount",1,Q1:Q4);ENDIF;ELSEAmount - @MDSHIFT("Amount",-1,Years,);ENDIF;What causes database fragmentation?Essbase database fragmentation occurs when blocks are "re-written" within the database. Not all "re-writes" to a cubewill cause fragmentation. Listed below are some behaviors that can cause Essbase fragmentation.
Sending data to a dense dimension that previously did not have any data- This occurs when you have a writeback cube where users are adding new data to a dense dimension, such as adding data to the current monthor adding data to an account that previously did not have any data. (Assuming that time and accounts aredense)
Loading data into a cube - Load rules can also cause database fragmentation if they are not set up properly.When loading data into Essbase, you always want to sort the data so that sparse dimensions are representedfirst in the data loads. The sorting of data files/sources has a huge impact on Essbase performance andfragmentation. Rule of thumb: make sure that the data source is sorted by the columns that represent thesparse dimensions first.
Adding incremental data to a cube- Adding the "current month's data" to an Essbase cube can causefragmentation if the time dimension is tagged as dense.Fragmentation has a huge impact on cube performance. There are two ways to "un-fragment" an Essbase cube. Oneis to clear and reload the data into the cube. The other is to cause Essbase to perform a dense restructure. How can I easily create global calculations?The power of OLAP cubes and Essbase is truly realized with ease of creating calculations. OLAP cubes were created forin depth analysis and speedy queries. The easiest way to create 'global' calculations in Essbase is to createa new dimension which contains all of the global calculations.