In this article
Segments can be defined using the segment designer (as shown below) or by using TGL expressions (go to TGL Filters for more information).
Note: You can also select the required answers from the questions in the Data Source by holding down the Ctrl key on your keyboard whilst clicking on the required answers. Then right-click in one of the selected answers and select New Segment Expression from the drop-down menu.
- In the Data Source toolbox, right-click on the Segment folder and select Insert Segment Expression Inside .
- Double-click the new segment, or right-click on it and select Edit .
Figure 1 - Adding a Segment
Figure 2 - Opening the Segment Designer
The Segment Expression Designer opens . Note that this is similar to the filter designer (go to Filter Designer Overview for more information).
Figure 3 - The Segment Expression Designer page
The example of "males between 31 and 60 years who rate Safety as important or very important and who have specified Volvo as their favorite car" can be defined as shown in the figure below.
Figure 4 - Defining a Segment
The definition shown gives those being Male (code 1 on gender) AND being in age groups 31-50 or 51-60 (code 3, 4 and 5 on single age), AND who selected Volvo as their favorite (code 3 on the single fav) AND who have rated safety as a 4 or 5 in importance (codes 4 or 5 on the grid qual1_4).
Note that you can select multiple answers from multi questions by using standard Windows selection techniques (using the Ctrl and Shift buttons on your keyboard).
You can give the segment a title for each of the report languages . This title will be used in the header in aggregated tables. Titles are set in the Segment Properties page. To open this page, right-click the header in the report tree and select Properties.
Figure 5 - Giving the Segment a title
In an aggregated table a segment may be used like any other variable . It can be nested and/or stacked with questions or other segments, in rows and/or columns. You can also include segments in banners (go to Segments Overview for more information).
Figure 6 - Including the Segment in an Aggregated Table