Create a Dimension with Automatically Collected Values
This article details how to create a Dimension with Values automatically fetched from a SQL Data Source, although the same workflow can be applied to sourcing Values from any configurable Data Source.
PREREQUISITES
- Create a SQL Data Source
- Create a Plugin Data Source (if you need to source Values from a BI tool)
1. Start Creating a New Dimension
Access Content > Dimensions
- [+New Dimension]
- Name: Give the Dimension a descriptive name
-
Parent Dimension [optional]: Chose an existing Dimension if the Dimension is to be a Child of another Dimension
- For more information refer to Understanding Parent/Child Dimensions
- Combines existing Dimensions [optional]: Set to "yes" if you want to create a Compound Dimension
- Dimension Key Values are: Specify numeric or text, based on how the Dimension Value's key is defined in the source system
- Value Source: Select the method by which Dimension Values are to be collected from the dropdown list
-
Bind Parameter: Specify a Bind Parameter for the Dimension
- This entry must match the column name of the data in the source system to be used in the fetch command
- [Save] your entries
2. Configure the Automated Data Collection Settings
Scroll the page to the Dimension Value Source
- Data Collection Trigger: Select the Data Collection Trigger to fetch/update Dimension Values
-
SQL Statement: Enter your SQL statement detailing which values will be collected:
- The command must return one Key Value (typically a code stored in the source database) and one Display Value (the phrase that appears on tiles and elements) column
- If the Dimension does not have a Key Value, select the Display Value for both columns
- [Check Data]
3. Verify and Collect Dimension Values
- Upon successful validation, the sample collected Dimension Values will appear under the data fetch command field
- Click [Collect values] if the sample Dimension Values are shown as expected