Step 3. Create and Configure the Segmentation Group
Step 3. Create and Configure the Segmentation Group
Create and configure the segmentation group. To configure the segmentation group you must select the included tables, mark the driving tables, add constraints, apply business rules, and add dimension rules.
In the Explorer pane, right-click on the application module you created in step 2.
Click on
New Entity
.
The
Entity Wizard
appears.
Enter a name and optionally a description for the segmentation group.
Click
Finish
.
The new segmentation group appears under the application module.
Click on the segmentation group you created.
Click on the
Tables
tab.
In the top pane, click on the green
Add
button and select a table to include in the segmentation group from the drop-down list of available tables.
If the table has multiple aliases, add the table multiple times and select each alias for inclusion.
If you want to register a table index or create a temporary index, select the table in the
Tables
pane.
In the
Optimization Indexes
pane, enter an index name.
Click in the
Index Usage
column and select whether the index will be used for default segment creation, non-default segment creation, or both.
If the index is temporary, select the
Temporary
checkbox.
The
Index Columns
window appears.
Enter the columns you want to use for indexing.
For temporary indexes, select the
Unique
checkbox if the index is unique.
Click on the
Driving Tables
tab.
Click on the green
Add
button and select a driving table from the drop-down list of available tables. Repeat for multiple driving tables.
If you plan to use interim table processing to pre-process business rules for the segmentation group, select the
Use Interim Processing
checkbox and choose the primary key for the table.
Click on the
Constraints
tab.
In the
Constraint
field, select the type of constraint that exists for each listed child table and child alias table.
Click on the
Dimension Rules
tab.
Double-click in the
Driving Table
field. From the drop-down menu of available driving tables, select the driving table on which to associate the dimension.
Double-click in the
Dimension Name
field. From the drop-down menu of available dimensions, select a dimension to associate with the segmentation group.
The EDM populates the
Data Type
and
Dimension Parameters
fields based on the dimension you chose.
In the
Dimension Rule
field, enter the WHERE or SELECT clause that implements the dimension rule.
For example: ORDER_DATE BETWEEN :DATE_FROM AND :DATE_TO
In the
Dimension Rule Name
field, give the dimension rule a name.
Click on the
Business Rules
tab.
In the
Driving Table Name
field, select the driving table on which to associate the business rule.
In the
Business Rule
field, enter the WHERE clause that implements the business rule.