To link views in master-detail relationships, you must define the master view and the detail view.
For more information on master-detail linking, see "What Is Master-Detail Linking of Views?"
To define a view as a master view:
Create or edit the analysis whose view (or views) you want to define as the master view.
For the column that is to be the master column, in the "Analysis editor: Criteria tab", click the Options button and then select Column Properties. The "Column Properties dialog" is displayed.
Click the "Column Properties dialog: Interaction tab".
In the Primary Interaction box in the Value area, select Send Master-Detail Events. The Specify channel field is displayed.
In the Specify channel field, enter a name for the channel on which the master view sends master-detail events. You can use any appropriate name, for example, Sales Analysis Channel, Channel 1, or channel 1.
Add the view to use as a master view. Note that any view that you add that includes the master column can be used as a master view.
Click OK.
To define a view as a detail view:
Create or edit the analysis whose view you want to define as the detail view.
Create the view that is to be the detail view, for example, a graph.
Edit the view.
Click the view's Property button on the toolbar of the view's editor. For example for a graph, click the Graph Properties toolbar button in the Graph Editor. The view's property dialog is displayed, for example, for a graph, the "Graph Properties dialog".
In the "Graph Properties dialog: General tab" (for graph or funnel graph), the "Gauge Properties dialog: General tab" (for a gauge), the "Table Properties dialog: Style tab" (for a table), the "Pivot Table Properties dialog" (for a pivot table), or the "Map Properties dialog: Interaction tab" (for a map), select the Listen to Master-Detail Events box.
Note: If the map view cannot find the detail feature with the master value, a warning message, "No data to display for ID: nnn" is displayed. |
In the Event Channels field, enter the name of the channel on which the detail view is to listen for master-detail events. The name must match (including case) the name of the channel on which the master view sends master-detail events. (For more information on the channel in the master view, see "Defining the Master View".
Click OK.
In the "Layout pane", drag the column (or columns) to be the detail column (or columns) to either the Prompts drop target or the Sections drop target as follows:
If the detail view is a pivot table or table, then drag the column or columns to the Prompts drop target.
If the detail view is a graph or a gauge, then drag the column or columns to the Prompts drop target or to the Sections drop target, whichever you prefer, unless the graph or gauge has a column on the Prompts drop target. Then, you must drag the column or columns to the Prompts drop target.
Note: You must drag and drop all detail columns to the same drop target. You cannot have some on the Prompts drop target and some on the Section drop target. |
For more information on drop targets, see "Understanding Drop Targets".
(Optional) If you dragged and dropped one or more detail columns to the Sections drop target, then select the Display as Slider box.
Note: With graphs, in order to listen for master-detail events, the detail column must go into the Sections drop target, which then creates a slider in the analysis or dashboard. In graph views that are part of master-detail relationships, if you want to simplify the appearance of an analysis or dashboard, do not select the Display as Slider box. In this way, you can choose to not display the slider that is created to accommodate a detail column. |
In this example, a table, Regional Sales Master View, is linked to a graph, Regional Sales View Detail View, in a master-detail relationship.
The analysis for the master view contains the C50 Region and 1 - Revenue columns. The 1 - Revenue column is set up as the master column as shown in Figure 3-32. The view that was added to be the master view is a table.
The analysis for the detail view contains the C50 Region, P4 Brand, and 1 - Revenue columns. The view that was added to be the detail view is a horizontal bar graph and is set up to listen for master-detail events on Channel1, as shown in Figure 3-33.
The C50 Region column is set up to be the detail column. This was done by dragging and dropping the C50 Region column to the Graph Prompts drop target in the Layout pane as shown in Figure 3-34. (Notice that the C50 Region column is then displayed on the page edge in the table.)
When a user clicks on the cell that contains the revenue for the AMERICAS region in Regional Sales Master View, the view sends a master-detail event on Channel1 and passes the master-detail event information of C50 Region = AMERICAS.
Regional Sales Detail View, which is listening on Channel1, receives and reviews the master-detail event information. It determines that the C50 Region column matches a column on its page edge, updates the page edge to AMERICAS, and refreshes the entire view as shown in Figure 3-35.