# Configuring Metrics Bar

The power user can set the following preferences for the Metrics Bar component.

- Update data source: Select from the available data sources in the drop-down list, and then click Update data source to bind your selection to the component.

- Analytics Statement: Enter an Analytics statement (or multiple statements) to return metric values.

- Respect data source query state: When this box is checked, the Metrics Bar component is dependent on its data source query state, which means the metric values should update when the data source query state changes. When the box is unchecked, it is independent of the data source query state, so the metric values should remain constant regardless of the data source query state.

- Test analytics query: Validate the Analytics statements before loading the metrics into the component. The power user is required to test the Analytics statements before loading the statements into the component.

- Load Metrics: Save the Analytics statements and display the metric values.

## Configuring the metric boxes

To access the Edit Metric dialog box for an individual metric box, click ... (highlighted below):

The power user can edit the following metric box preferences:

- Edit Metric: Select the metric to display (if applicable) and change the Display Name and Format. The Metrics Bar component supports decimal, currency, string, and integer formats.

- Formatter Options: Customize the metric's format.
  Note: The options displayed change depending on the selected format.

- Stoplighting: Configure threshold violation indicators. The power user determines a range of values for the indicator, chooses an icon and color, and creates an alert message to display if the metric falls within the set range. The power user can set the Min and Max values for the range, and can also set whether those values are included in the range using Min Inclusive and Max Inclusive.

## Rearranging the metric boxes

The power user can customize the order of the metric boxes within the Metric Bar component by dragging and dropping the boxes into place (shown below).

The power user can also hide a metric box by clicking the x (highlighted below):

To show a hidden metric box, select it from the drop-down menu and click the + (highlighted below):