Build Dimensions and Load Data Using a Rule File
Using a rule, you can build a dimension and load data from a text or other flat file.
Before you begin, you will need the following resources.
-
Access to an Essbase instance.
-
If you're not using a flat file as the source of data, you will need a connection and Datasource that have been set up in Essbase at the application level.
-
Dimension metadata file (sample exercise file:
dim-market.txt
) downloaded to your computer. -
Data file (sample exercise file: data-basic.txt ) downloaded to your computer.
Using the listed resources, you can now perform the tasks of building dimensions and loading data using a rule.
Build Dimensions Using a Rule File
You can edit and map dimensions to an Essbase outline using a rule, rather than manually building empty dimensions in the Essbase Outline editor. In this section, we address and illustrate building dimensions from a flat file, using a rule.
When you build using a rule, you define the hierarchical structure of dimensions and member metadata. You can create one or more dimensions using a single rule file, or use one rule file per dimension.
You can build a dimension to add or modify dimensions, but you can’t use it to delete an existing dimension.
Here, we illustrate an example of building dimensions, from a flat file, using rules. The process of loading data using SQL, or by streaming, is described in other topics.
Load Data Using a Rule File
-
Data values
-
Member names, aliases and formulas
-
Generation and level names
-
Data storage properties
-
Attributes and user—defined attributes
When you build an Essbase cube, data files and load data rule files are created in the cube directory. You can also use data and rules from a supported on-premises version of Essbase.
Both pivot data and row set flat file data format are supported.
When you load data, SUM, MIN, MAX, AVG, and COUNT operations are supported in data columns across rows. This supports big-data use cases in which Essbase cubes are created with upper-level members. You can drill through, from Essbase, to view the data at a more granular level.
Here, we illustrate an example of loading data from a flat file, using rules. The process of loading data using SQL, or by streaming, is described in other topics.