Using SQL Database as a Data Source for the Indicators

Use an external database as a data source for your KPIs. Setup SQL Indicators to access remote database.

Setup SQL Indicator

  1. Open a scorecard, go to the KPIs tab
  2. Select an indicator that will be a recipient of data
  3. Switch to the Data tab, click on the Data source button next to the Value field
  4. Data source button

  5. Click on the SQL Query button in the More data sources section
  6. Enter server name. For a locally installed BSC Designer the server name will most likely be localhost
  7. Enter port number. For a locally installed MySQL database the default port number is 3306.
  8. Setting up SQL indicator in BSC Designer Online

  9. Enter database name, access login, and password. Click the Next button.
  10. Formulate required SQL query (see some examples below).
  11. Click on the Next button to preview the results. Click on the Finish button.

Examples of SQL Queries

BSC Designer expects to receive one value as a response to the SQL query. The received data will be used for the Value field of the indicator.

Supported parameters:

Case 1: Indicator is updated daily. There is one value for each date.

select value from datatable where date = %%date%%

Case 2 (most used): Indicator is updated monthly. There are several values for this period in the database that need to be summarized.

select sum(value) from datatable where date between %%UpdatePeriodStart%% and %%UpdatePeriodEnd%%

Updating Data

There are several ways to update data for SQL indicators:

  • Video tutorials