instantOLAP Online documentation 2.2.7 - Attribute

Attribute

Type

Constant String

Since

2.0

Description

Dimensions can be bound in two different ways, with or without attributes.

If you leave this property empty, the dimension defined in the Dimension property will be bound directly (without attribute) to the database (to the SQL-expression defined in the SQL-Expression property). To bind dimensions "directly" means that the cube will search keys with IDs matching the return-value of the SQL-Expression when loading the data. Because all keys have IDs this will bind all keys in a dimension (at all hierarchy levels, including the root key).

But usually you don't want to bind all hierarchy levels with the same SQL-expression to the database and you don't want to bind the root-key of a dimension:

Both can be easily done with attributes. Instead of binding the complete hierarchy to a SQL-expression, only keys with a special attribute are bound (the name of the attributes must be defined in this property). Then the SQL-generator only maps keys having this attributes and searches for keys by their attribute-value instead of their ID (which is very useful when using technical ID for keys).

For example a dimension "Product" could have a level 1 containing product-groups with a attribute named "GroupID" and a second level with the products and an attribute name "ProductID". Both attributes could have separate mappings to the database.

If multiple bindings for a dimension exist in a SQL-cube, each with a different attribute, the SQL-generator will create multiple statements and load the data for each key with it's own binding.

Examples

Attribute = "ProductID"

Only bind to keys with "ProductID" (e.g. to a SQL-expression SALES.PRODUCT_ID)

See also

Dimension, Level

Using the Web-Frontend
Using the Workbench
Using the Query-Editor
Using the Config-Editor
Query properties
Chart properties
Configuration properties
Configuration
Database
Table
Column
Alias
Link
Link-Expression
Table-Expression
CSV-Source
CSV-Column
XMLA-Source
Dimension
Grant
Key
Key-Attribute
SQL-Keyloader
SQL-Attribute
CSV-Keyloader
CSV-Attribute
Time-Keyloader
Time-Attribute
XMLA-Keyloader
XMLA-Attribute
Number-Keyloader
SQL-Cube
SQL-Fact
SQL-Dimension
Attribute
Dimension
Format
Key
Level
Level
Null-ID
Omit-Percentage
Operator
SQL-Expression
Swap Expression
Trim
Where
CSV-Cube
CSV-Fact
CSV-Dimension
XMLA-Cube
XMLA-Fact
XMLA-Dimension
Formula
File-Cache
File-Store
Include
Expressions
Formats
SQL-Expressions