# Link columns in a data table to other dashboard panels

The instructions below show you how to link a chart to a column in a data table. You must adjust the instructions when working with your own data.

1. Create a simple dashboard that contains a data table and a bar chart. At this point, none of the content has been linked and you have a "static" dashboard.

   Notice the data table in the example here. You want dashboard consumers to click a product in the **Product Line** column and have the bar chart update with information about sales by territory for that specific product line.

   ![Link on column](/files/8HYgpUsSVgaXJ41bwT2C)
2. Add a parameterized condition to the query for the bar chart by specifying a parameter name in curly braces in the **Value** text box; then, provide a default value for that parameter in the **Default** text box.

   In the example here, a parameter called **Productline** with a default value of **Classic Cars** has been created.

   ![Parameter query](/files/8mqrhCE7XtmqgKXlnvRd)
3. In the Chart Designer, set the data definitions for the series, category and values columns associated with your bar chart and click **OK**.
4. Under **General Settings**, choose the data table and click the **Content Linking** tab. Enable content linking on the column in your data table that will filter content in your chart.

   Each of the columns in a data table are able to broadcast values to other dashboard components.

   ![Value as link](/files/CxT7R7BYgJhaHJLN5OEk)
5. Under **General Settings**, choose the chart and click the **Parameters** tab. Click the down arrow in the **Source** text box to display another source for the parameter you created.

   In the example below, notice that **Order Details - Product Line** , (this is the name of the dashboard panel that contains the data table), can now be selected as a source for the **Productline** parameter.

   ![Select a new source](/files/GhgWE480ol6ZjyK9aTVF)
6. Save your dashboard.
7. In the data table, choose an item in the column that has content linking enabled.

   The content in the chart updates in response to the item that was clicked in the data table.

In the example below, the **Product Line** column was enabled for content linking.

![Bar chart with links](/files/PXGrBpE45kthP4cySSF6)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pba/9.3-analytics/pentaho-dashboard-designer-cp/advanced-topics/use-content-linking-to-create-interactive-dashboards/link-columns-in-a-data-table-to-other-dashboard-panels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
