Transpose columns and rows to transition data from various sources to an Essbase database. Transpose the columns before you start to work with the data in Integration Server.
Consider the following example in which you create multiple Essbase measures (Init_Sales, Subsequent_Sales, and Return_Sales) from a single database column (SALESTYPE).
The SALESACTUALS table contains the following columns:
You want to create the Essbase outline in the hierarchy illustrated in Figure 4, Accounts Hierarchy:
You want each SALESTYPE value to form the Essbase member: SALES to form the Init_Sales member, RETURNS to form the Return_Sales member, and SUBSEQUENT to form the Subsequent_Sales member. Create a view or table that transposes row values into column values, for example:
The following example of Oracle SQL defines the view shown in Table 7:
) Create view SalesActuals_vw as (Select ProdId, MktId, TimeId, decode (SalesType, 'Sales', Sales, 0) "InitSales", decode (SalesType, 'Returns', Sales, 0) "Returns", decode (SalesType, 'Subsequent', Sales, 0)"Subsequent" from SalesActuals )
After defining a new table or view, use it to create an OLAP model.