Skip to content

Import Phone System Data into Power BI

Once Cloud Voice is synchronizing your phone system data to an external database, you can register that database as a data source in Power BI and load it into the ready-made Cloud Voice report template. Power BI is Microsoft’s business intelligence tool: it turns raw table data into charts and dashboards, so this is how you visualize call activity outside of Cloud Voice. The template ships with variants for each supported database engine, so pick the one that matches where your data lives. This page walks through the setup for PostgreSQL, MySQL, and Microsoft SQL Server.

  • Download and extract the Cloud Voice Power BI template package. It contains a separate template file for each database type; use the PostgreSQL one.
  • Install Power BI Desktop and the PostgreSQL ODBC driver. ODBC (Open Database Connectivity) is the standard interface Windows uses to talk to a database.
  1. Create an ODBC connection to the database:

    1. Open ODBC Data Sources (64-bit).

    2. On the User DSN tab, click Add. A DSN (Data Source Name) is the saved connection profile that Power BI will point to.

      The User DSN tab of the ODBC Data Source Administrator with the Add button

    3. Choose PostgreSQL Unicode(x64) and click Finish.

      Driver selection dialog listing the PostgreSQL Unicode driver

    4. Enter the connection details described below, then click Save.

      PostgreSQL ODBC connection settings dialog

      FieldWhat to enter
      DatabaseThe name of the database.
      ServerThe IP address or domain name of the host running the database.
      PortThe port the database listens on.
      User NameThe account used to connect to the database.
      PasswordThe password for that account.
    5. Take note of the DSN name shown in the list, you will select it in a later step.

      The saved data source name listed in the ODBC administrator

  2. Open Power BI Desktop.

  3. Click Open and select the PostgreSQL template file.

    Power BI Desktop Open dialog with the report template selected

  4. Repoint the template at your database and supply credentials:

    1. On the toolbar, click Transform data and choose Data source settings.

      Transform data menu expanded to show Data source settings

    2. Update the source:

      1. Select the default data source and click Change Source.

        Data source settings window with Change Source highlighted

      2. From the Data source name (DSN) list, pick the DSN you created and click OK.

        DSN drop-down showing the PostgreSQL data source

    3. Set the access credentials:

      1. Click Edit Permissions.

        Data source settings with the Edit Permissions button

      2. In the dialog, click Edit.

        Permissions dialog with the Edit option

      3. Select Database, enter the credentials below, and click Save.

        Credential entry form with database authentication fields

        FieldWhat to enter
        User nameThe account used to connect to the database.
        PasswordThe password for that account.
    4. Save your changes.

  5. Click Refresh to run every SQL query in the template. SQL (Structured Query Language) is the language the template uses to pull each report from the database.

    The Refresh button on the Power BI toolbar

Your phone system data loads and appears on the report pages.

A Power BI report populated with call data

  • Download and extract the Cloud Voice Power BI template package and select the MySQL template.
  • Install Power BI Desktop and MySQL Connector/NET.
  • If your MySQL server uses SSL (Secure Sockets Layer, the encryption for the database connection), install its certificate first:
    1. Download the SSL public certificate.
    2. Add it to the Trusted Root Certification Authorities store:
      1. Run certmgr.msc to open Certificate Manager.

        Certificate Manager open on a Windows desktop

      2. Right-click Trusted Root Certification Authorities, then choose All Tasks > Import.

        Trusted Root Certification Authorities context menu with the Import command

      3. Complete the import wizard and click OK.

  1. Open Power BI Desktop.

  2. Click Open and select the MySQL template file.

    Power BI Desktop Open dialog with the report template selected

  3. Repoint the template at your database and supply credentials:

    1. On the toolbar, click Transform data and choose Data source settings.

      Transform data menu expanded to show Data source settings

    2. Update the source:

      1. Select the default data source and click Change Source.

        Data source settings window with Change Source highlighted

      2. Enter the connection details below and click OK.

        MySQL database connection dialog

        FieldWhat to enter
        ServerThe IP address or domain name of the host running the database, along with the database port.
        DatabaseThe name of the database.
    3. Set the access credentials:

      1. Click Edit Permissions.

        Data source settings with the Edit Permissions button

      2. In the dialog, click Edit.

        Permissions dialog with the Edit option

      3. Select Database, enter the credentials below, and click Connect.

        Credential entry form with database authentication fields

        FieldWhat to enter
        User nameThe account used to connect to the database.
        PasswordThe password for that account.
        Select which level to apply these settings toThe database the account is allowed to access.
    4. Save your changes.

  4. Click Refresh to run every SQL query in the template.

    The Refresh button on the Power BI toolbar

Your phone system data loads and appears on the report pages.

A Power BI report populated with call data

  • Download and extract the Cloud Voice Power BI template package and select the Microsoft SQL template.
  • Install Power BI Desktop.
  • If your Microsoft SQL server uses SSL, install its certificate first:
    1. Download the SSL public certificate.
    2. Add it to the Trusted Root Certification Authorities store:
      1. Run certmgr.msc to open Certificate Manager.

        Certificate Manager open on a Windows desktop

      2. Right-click Trusted Root Certification Authorities, then choose All Tasks > Import.

        Trusted Root Certification Authorities context menu with the Import command

      3. Complete the import wizard and click OK.

  1. Open Power BI Desktop.

  2. Click Open and select the Microsoft SQL template file.

    Power BI Desktop Open dialog with the report template selected

  3. Repoint the template at your database and supply credentials:

    1. On the toolbar, click Transform data and choose Data source settings.

      Transform data menu expanded to show Data source settings

    2. Update the source:

      1. Select the default data source and click Change Source.

        Data source settings window with Change Source highlighted

      2. Enter the connection details below and click OK.

        Microsoft SQL database connection dialog

        FieldWhat to enter
        ServerThe IP address or domain name of the host running the database, along with the database port.
        DatabaseThe name of the database.
    3. Set the access credentials:

      1. Click Edit Permissions.

        Data source settings with the Edit Permissions button

      2. In the dialog, click Edit.

        Permissions dialog with the Edit option

      3. Select Database, enter the credentials below, and click Save.

        Credential entry form with database authentication fields

        FieldWhat to enter
        User nameThe account used to connect to the database.
        PasswordThe password for that account.
    4. Save your changes.

  4. Click Refresh to run every SQL query in the template.

    The Refresh button on the Power BI toolbar

Your phone system data loads and appears on the report pages.

A Power BI report populated with call data

You can add or edit SQL queries to control which data the template displays.

To surface other call reports, add the SQL queries you need. For the underlying data logic, see Call Report Calculations with Multiple SQL Queries.