instantOLAP Online documentation 2.2.7 - Parent Attribute

Parent Attribute

Type

Constant String

Since

1.2

Description

Whenever you manually define the SQL Parent-Expression for a Keyloader, it will sort the new loaded key into the hierarchy by search parent key with the ID defined by the Parent SQL-Expression. In some case you don't known the parent's ID but only one of it attributes (maybe the technical id, it's product-number etc.). In this case you can define with which attribute you want to search the parent key (of course, the Parent SQL-Expression must then contain the corresponding value).

Examples

See the following example-tables CATEGORY and PRODUCT:

CATEGORY_ID NAME
1 BEER
1 WINE
PRODUCT_ID CATEGORY_ID NAME
1 1 LIGHT BEER
2 1 STRONG BEER
3 2 WHITE WINE
4 2 RED WINE

Now imagine two SQL-Keyloaders, the first one loading the categories:

And the second loader for the products:

Now the second loader would sort it's keys correctly into the hierarchy without knowing the ID (name) of their parents, because it uses the CategoryId (which is available in the PRODUCT-table) to search the parent keys.

See also

Parent Trim, Parent SQL-Expression

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
Database
Distinct
Format
Ignore Hierarchy Violation
Level Name
Mode
Null-Value
Order-By-ID
Parent Attribute
Parent Format
Parent Null-Value
Parent SQL-Expression
Parent Trim
Recursive
SQL-Check
SQL-Expression
SQL-Order
SQL-Order Descending
SQL-Where
Trim
SQL-Attribute
CSV-Keyloader
CSV-Attribute
Time-Keyloader
Time-Attribute
XMLA-Keyloader
XMLA-Attribute
Number-Keyloader
SQL-Cube
SQL-Fact
SQL-Dimension
CSV-Cube
CSV-Fact
CSV-Dimension
XMLA-Cube
XMLA-Fact
XMLA-Dimension
Formula
File-Cache
File-Store
Include
Expressions
Formats
SQL-Expressions