Help & DocumentationCreating Dimensions Compound Dimensions Create a Compound Dimension (for all or selected Dimension Values)

Create a Compound Dimension (for all or selected Dimension Values)

A Compound Dimension is created by combining all or selected Dimension Values from two existing Dimensions.  A Metric and Report may be Dimensioned using a Compound Dimension that results in creating of an instance of the element for each combination of Dimension Values fetched in a Result Set.

When creating a new Compound Dimension, one of the Dimensions is designated as the Primary and the other as the Secondary Dimension.  Only 'bulk loading', that is, automatically collecting all values with one query, is supported.  As with any Dimensions, Dimension Values may also be entered manually or uploaded from a CSV file.

1. Access Admin > Contents > Dimension

At the bottom of the page click [+New Dimension].

The Add Dimension pop-up opens.

2. Provide basic information for a new Compound Dimension

Provide basic information for a new Compound dimension (using data from Tableau)
  1. Set Combines existing dimension to 'Yes'
  2. Select Primary Dimension and Secondary Dimension
  3. Include: Define how you want your Dimension Values table to be populated. Define how you want your Dimension Values table to be populated.
    • values generated from element data: the table is populated by the system. This solution allows creating Dimension Values "on the fly" as elements using this Dimension are run. This generates the list of Dimension Values based on the combinations of the two Dimensions that have actual data.
    • selected values: control what compound values should be added to this dimension. If you include "Selected Values", then you will need to provide a list of dimension values in order to complete the definition of this dimension.
  4. Assign access from component dimensions to grant access to this Composite Dimension:
    • 'Yes':  Any user with permission to access BOTH the Primary and the Secondary Dimensions automatically receives access to instances of this Composite Dimension where the combination of the Primary and Secondary Dimension Values; that is, if the User has full access to both included Dimensions, then all instances are visible to the user.  If the user has selected Dimension Values access to either of the Dimensions, the access is only granted to the combined instances where the user has access to both Dimension Values
    • 'No':  A user must be granted access to the Composite Dimension in the same manner as to any other Dimension

Save your entry.

The Dimension Editor opens.

3. Adding Dimension Values

[Option 1] Selected Dimension Values

  1. Include: choose to add 'selected values'
  2. Scroll down to the bottom of the page and click [+ New Value]
  3. The Add Compound Dimension Value screen opens.
  4. Add Compound Values by selecting (pairing) them from the Primary Dimension Value and Secondary Dimension Value drop-down lists.
  5. Save your combination and it will appear in the Dimension Values table.

You can keep adding values one-by-one or upload them as a CSV file (see below).

Uploading selected values via a CSV file

  1. Click Load from file button below the Compound Dimension Values table.
  2. The Load from File pop-up opens.
  3. Confirm that the Delimiter character is the same as in your CSV file
  4. Select the CSV file containing your data from your local machine.
  5. Click Import

NOTE: If you want to enter the remaining values via a CSV file and you are unsure about its format, click sample CSV file link to obtain a file into which you can enter data after saving it.

NOTE: If any errors are encountered in the CSV file, the system will provide you with information on the issues occurred

  1. Click OK to close the results pop-up
  2. Click Cancel to close the Load from File pop-up and cancel file upload

All the successfully processed values are going to be added to the Compound Dimension Values table.

[Option 2] Generate values from new dimensioned Elements

  1. Include: select to add 'values generated from element data'
  2. The Compound Dimension Values section is going to be empty. It is going to be populate automatically after you create an element using this Dimension Value.

Create an element using this Dimension

  1. Create a Dimensioned element using the Compound Dimension. See Creating Dimensioned Metrics and Reports for more instructions.
  2. Fetch the data for your element. In the given example we use a SQL database as a Data Source, so wee need to construct a SQl statement. You can also provide the element content via Manual data / CSV file or via Plugin command for elements sourced from external services.
  3. Save and update your element

Compound Dimension values are going to be automatically populated

Return to the compound dimension you have created in the first steps.

The Compound Dimension Values table should be populated with new values.

0 Comments

Add your comment

E-Mail me when someone replies to this comment