When to Use Prompt Groups 


Prompt groups can be used to treat elements (columns or filters) as independent from elements in other prompt groups during the opening of prompted information links. The default behavior of prompted information links is that each subsequent step lists values based on earlier selections. However, if you are working against, for example, a STAR schema database the procedure may require multiple joins since the elements queried for the prompts are linked only by the large fact table in the STAR schema.

By assigning an element to a different prompt group no previous selections in the prompt steps will be reflected in the listing for the independent element. Neither will any of the selections made in the prompt step for the independent element be reflected in later prompt steps (regardless of whether the later prompt steps are independent or not). It may also be of interest to specify a different prompt group for an element that is not prompted, for example, a column with a hard filter.

Example:

Say that you have information about your employees and their salaries stored in a STAR schema database with a layout similar to the one below:

id_independent_example.png

Now, you want to retrieve information about the salary of your employees in the Chicago office, with the possibility to filter using DeptNo and Gender upon running the information link.

  1. Create an information link by adding all the interesting columns to the Information Link tab.

  2. In the Filters section, add the Location column.

  3. Select Values as Filter Type.

  4. Type Chicago in the Values text field.
    id_hard_filter_chicago.png 

  5. In the Prompts section, add the DeptNo and Gender columns.

  6. Select suitable Prompt type options (for example, Multiple selection)) for the DeptNo and Gender columns.

  7. Click Groups... and enter a different prompt group for the Location column.
    id_location_independent.png 

By making Location independent you avoid having to join to the large fact table for each prompt. When the information link is opened you will first be prompted to choose a DeptNo. Instead of going through the large fact table to the Location table and filter out all values except the ones for Chicago, you will see all values in the DeptNo column. For the next prompt step the much quicker connection between DeptNo and Gender is used directly, thus improving the performance of the information link.

Note: When Location is made independent you will see all possible values in the prompt step for DeptNo even though some of them perhaps are inapplicable due to the hard filter setting Chicago on the Location column.
id_deptno_unfiltered.png 

This means that if all employees in the Chicago office belong to department number 30, you might accidentally select number 20 in the prompt step for DeptNo with the result that no data is retrieved from the server.

 

If no prompt group changes had been made, the hard filter on Chicago would have been applied prior to the first prompting step and DeptNo 30 would have been the only one displayed in the prompt list:

id_location_not_independent.png

id_arrow.png

id_deptno_filtered.png

In this case, the risk of selecting wrong data in a prompt step is minimized.

See also:

Information Link Tab

Using Prompt Groups