How to Work with Show/Hide Items


You can apply a number of different rules to determine which items to show or hide. Which rules are available in a certain situation depends on the data type and aggregation method of the currently selected column to apply the rule on. Below are few examples of how different rules can be set up.

  1. In the Visualization Properties dialog, go to the Show/Hide Items page.

  2. Click on the Add... button to add a rule.

  3. Response: The Add Rule dialog is displayed.

  4. Determine which Column or expression to apply the rule on.

  5. Comment: This can either be set to use the same column and expression used on the value axis of the bar chart, or, it can be set to ${Axis.Y.Expression} using a Custom Expression. In the latter case, the rule will always show the top five bars of whatever is selected on the value axis in the bar chart.

  6. Make sure that Top is selected in the Rule type drop-down list.

  7. In the Value field, type 5.

  8. Under When this rule is matched, select Show items.

  9. If you are going to trellis the visualization, determine whether or not to Apply individually for each trellis panel.

  10. Comment: See the description of this option under Details on Add/Edit Rule for an example.

  11. If desired, type a Display name.

  12. Comment: The display name can be displayed in the legend of the visualization.

  13. Click OK.

  14. Response: The rule is added to the Rules list and it is applied in the visualization.

  1. In the Visualization Properties dialog, go to the Show/Hide Items page.

  2. Click on the Add... button to add a rule.

  3. Response: The Add Rule dialog is displayed.

  4. Determine which Column or expression to apply the rule on.

  5. Comment: The column used to define the rule does not have to be used on the axes in the visualization.

  6. Make sure that Less than is selected in the Rule type drop-down list.

  7. In the Value field, click on the icon, color_value_menu_icon.png, to open the menu.

  8. Select Value from the menu.

  9. Comment: You can also select a calculated value from the menu (e.g., the Average).

  10. Type the desired limit value in the Value field.

  11. Under When this rule is matched, select Hide items.

  12. Click OK.

  13. Response: The rule is added to the Rules list and it is applied in the visualization.

  1. In the Visualization Properties dialog, go to the Show/Hide Items page.

  2. Click on the Add... button to add a rule.

  3. Response: The Add Rule dialog is displayed.

  4. Right-click on the column selector under Column and select Custom Expression... from the pop-up menu.

  5. Response: The Custom Expression dialog is displayed.

  6. Type a boolean expression determining what should be shown or hidden in the visualization.

  7. Comment: For example, entering (Sum([Sales])>60000) AND (First([Region])~="West") in a bar chart where [Region] is used on a grouping axis (e.g., the Category Axis) would show only those bars where the sum of sales is greater than 60000 and the sales transaction belonged to the region "West".

  8. Click OK when you are done.

  9. Make sure that Boolean expression is selected in the Rule type drop-down list.

  10. In the Value field, click on the icon, color_custom_expression_icon.png, to open the custom expression dialog.

  11. Make sure that Axis.Value is selected and click on Insert Columns.

  12. Response: [Axis.Value] is inserted into the Expression field.

    Comment: This means that if the expression entered earlier is true the items will be shown (or hidden, depending on the settings below).

  13. Click OK.

  14. Under When this rule is matched, select whether to Show items or Hide items.

  15. Click OK.

See also:

What is Show/Hide Items?

Details on Add/Edit Rule