How to read Notion database table in PowerBI using ODBC

Introduction

Notion is a versatile workspace platform that many teams use to manage projects, tasks, documentation, and databases. However, to leverage this data for advanced analytics and business intelligence, you need to connect it to tools like Power BI. Using Zappysys ODBC Driver for Notion, you can seamlessly extract data from Notion databases and visualize it in Power BI without writing any code.

This tutorial demonstrates how to set up a connection from Notion to Power BI using the Zappysys ODBC driver, query your Notion databases, and create interactive Power BI dashboards.

Prerequisites

  1. A Notion workspace with at least one database and records.
  2. Notion API token (Personal Access Token or Integration token).
  3. Power BI Desktop is installed on your system.
  4. Basic understanding of Power BI and SQL queries.
  5. Finally, install the ZappySys ODBC Driver.

Steps

Create a Notion Integration and Token

  1. Go to Notion Integrations and sign in.
  2. Go to the My Integrations section and click New Integration.
  3. Enter a name for your integration and select the target workspace.
  4. Click Create connection to proceed.

    Notion – Create a new connection

  5. Configure the capabilities you need by checking or unchecking the relevant options.
  6. Copy the generated Access Token and store it securely. You’ll need this token to configure the ODBC driver.

    Notion – Configure new token

Connect Your Notion Database to the Integration

  1. Open your target Notion database page in the browser.
  2. Click in the top-right corner.
  3. Click Connections, search for your integration, and select it.
  4. Confirm access to the connection.
  5. Copy the database ID from the URL. For example:
    https://app.notion.com/p/<DATABASE_ID>?v=......................

    Notion – Set a connection to your table

Creating a new ODBC DSN using ZappySys JSON Driver

  1. Search for ODBC in the Windows Start menu and open the ODBC Data Source Administrator.
  2. In the User DSN or System DSN tab, click Add to create a new data source.
  3. In the ODBC Data Source Setup window, select the ZappySys JSON Driver and click Continue.

Configure the Connection and API Settings

  1. Enter the base URL for the table:
    https://api.notion.com/v1/databases/{{User::DatabaseId}}/query
  2. In Connection Type, select HTTP and click Configure.
  3. Select Static Token/API Key as the Credential type.
  4. Paste your Notion Access Token in the authentication field.
  5. Click OK to save the configuration.

    Notion – ODBC Connection configuration

  6. Set HTTP Request Method to POST.
  7. Set Body content type to JSON (application/json).
  8. Under headers, add: Notion-Version: {NotionVersion}. (Example: 2022-06-28)
  9. Set JSON Path Filter to extract the object array. Example: $.results[*]
  10. Click Test Connection to verify connectivity, then click OK to save the DSN

    Notion – ODBC JSON driver configuration

Preview Notion table data in the ODBC Driver

  1. Go to the Preview tab.
  2. Select a table, generate a query, and then click Preview Data to confirm that database records are returned.

    Notion – ODBC JSON driver result

Connect Power BI to Notion via ODBC

  1. Open Power BI Desktop.
  2. Click Get Data in the Home ribbon.
  3. Click More… and search for ODBC.
  4. Click Connect.

    Power BI – Get data from ODBC connection

  5. From the dropdown, select the Notion ODBC data source you created earlier.
  6. You can enter a custom query that you used in the ODBC JSON driver.
  7. Click OK.

    Notion – Power BI connection

  8. Click Load to import the data into Power BI.
  9. In the Navigator window, select the Notion columns you want to load.

    Notion – Power BI final result

Query Notion Data with SQL

For more advanced scenarios, you can write custom SQL queries to extract specific data from your Notion database. Here are some common query examples:

Example 1: Extract All Database Records

Example 2: Filter Records by Status

Example 3: Count Records by Status

Example 4: Get Recent Records (Last 30 Days)

Example 5: Join Multiple Database Properties

Example 6: Aggregate Data by Multiple Dimensions

Conclusion

Connecting Notion to Power BI using the Zappysys ODBC Driver provides a seamless way to bring your workspace data into a powerful analytics platform. With SQL queries, DAX measures, and visualisations, you can unlock insights from your Notion databases and create compelling business intelligence reports.

Explore the full capabilities of the Zappysys ODBC Drivers to integrate multiple data sources and build comprehensive Power BI dashboards. By combining Notion data with other sources, you can create unified views of your operational data.

Need Help?

If you encounter any issues, our support team is here to help:

  1. Live Chat — Use the chat widget (bottom-right corner of this page)
  2. Email — support@zappysys.com
  3. Support Center — Visit the ZappySys Support Portal
Posted in Uncategorized.