# Configuring the Metrics Bar component

This topic describes how to configure the Metrics Bar component.

To configure the Metrics Bar component:

1. After adding a Metrics Bar component to a page, click its .... button and then click Preferences.

   The Metrics Bar edit view appears.

2. In the Metrics Bar edit view, select from the available data sources in the drop-down list, and then click Update data source to bind your selection to the component.

3. In the Analytics Statement field, enter an Analytics statement (or multiple statements) to return metric values.

4. If desired, check the Respect data source query state box. 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.

5. Click the Test analytics query button to validate the Analytics statement before loading the metrics into the component. You are required to test the Analytics statement before loading the statement into the component. If the Analytics statement is valid, the Load Metrics button is enabled.
6. Click Load Metrics.
7. Click Return to Full Page to return to the Metrics Bar end-user view.