Category / Section
How to Use a Field from Another Data Source in Bold BI Dashboards
Published:
In some cases, you may want to use a value from one data source (DataSource A) in a dashboard that primarily uses another data source (DataSource B). This can be done using dashboard parameters and expression functionality. Follow the below steps:
Step 1: Add DataSource A and Create a Dashboard Parameter
- In the Bold BI dashboard, click on the Data Sources tab.
- Click the Add Data Source button and choose your desired data source (DataSource A).
- Drag and Drop the tables. Then click on the Parameters tab.
- Click the Add button to create a new dashboard parameter.
- Enter a name for the parameter, choose the appropriate data type, and set the default value if necessary.
- Click the Save button to save your parameter and the data source.
Step 2: Add DataSource B and Create an Expression
- Click the Add Data Source button again and choose DataSource B.
- After DataSource B is added, click on the Add button to create a new expression.
- Enter a name for the expression and choose the appropriate data type.
- In the expression editor, use the previously created dashboard parameter from DataSource A.
- Click on the Save button to save your expression.
Step 3: Use the Expression in a Widget
- Add a widget to your dashboard and select DataSource B as the data source.
- In the widget settings, use the newly created expression to reference the value from DataSource A.
Now, you have successfully added a parameter from DataSource A to a dashboard using DataSource B. The value will be updated in live mode as the data in DataSource A changes.