---
title: "Connecting to Databricks"
description: "In xP&A, you can connect to the following spreadsheet file formats: Google Sheets, Excel Online, Excel Upload, CSV Upload\nThe following three data formats for spreadsheet files are supported: Tables, Transactions, Time-series\nEach connected file needs to be formatted in a certain way so that the data can be imported into xP&A."
source_url: https://support.lucanet.com/en/documentation/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks
language: en
last_updated: 2026-05-01
---
# Connecting to Databricks in Lucanet xP&A

## Overview

You can establish a direct connection to Databricks to pull in data into Lucanet xP&A (Extended Planning & Analysis).

This article contains a description of the prerequisites and the individual steps of the set-up process.

> **Note:** The fields that are pulled in must be defined during the set-up process using a database query. For a detailed instruction on how to structure such a query, see [Defining Database Queries](https://support.lucanet.com/en/documentation/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/defining-database-queries.md).

## Prerequisites for the Setup in xP&A

### Whitelist IP Address in Databricks

If your database is behind a firewall, you have to whitelist the static IP address before connecting Databricks with xP&A.
Which IP address needs to be whitelisted depends on the region where your Lucanet instance is hosted:

| Region | IP address to whitelist |
|--------|------------|
| eu-central-1 | 52.59.129.235 |
| ap-southeast-1 | 13.214.111.217 |
| us-east-1 | 3.223.155.63, 98.87.131.112, 44.219.125.183 |
| eu-central-2 | 51.34.5.247 |
| eu-north-1 | 13.51.154.160 |

> **Tip:** The correct IP address(es) to whitelist matching your region is shown in the **New Data Source** dialog when you create the connection, so please check this information on the user interface.

## Connecting to Databricks in xP&A

To connect to Databricks in xP&A:

1. Choose one of the following options:

    - Open the **Data** workspace from the overview on the start page and click **\+ New.**

    ![Shows the start page of Lucanet xP&A. Highlighted are the buttons that need to be used to create a new data source connection from the start page.](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/new-data-source-data-workspace.png)
    New data source connection from the Data workspace

    - Open the model into which you would like to integrate the data, click the **+** sign next to **Data** in the overview, and choose **New data source**:

    ![Shows the view of a model. Highlighted are the buttons that need to be used to create a new data source connection from the model view.](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/new-data-source-model.png)
    New data source connection from within a model

2. In the **Data sources** dialog, open the **BI/Database** tab and choose **Databricks.**

    ![Shows the Data Sources dialog. Highlighted in red is the 'BI/Database' tab.](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/bi-database-tab.png)
    'BI/Database' tab

3. The **New Data Source** dialog is displayed as follows:

    ![Shows the 'New Data Source' dialog for a Databricks connection](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/new-data-source-databricks.png)
    'New Data Source' dialog for Databricks

4. Configure the steps as described in the following section.

5. Click **Create data source**.

### Set-up Steps

The following steps are required to set up the data source:

1. **Choose a connection**

    Choose an existing connection, or, if you have not configured a connection yet, click **New Connection** and enter the following in the **New Databricks connection** dialog:

    - **Host** name of the Databricks cluster you want to connect
    - **Port** of the Databricks cluster you want to connect
    - **HTTP path** of the workspace/warehouse you want to connect
    - Authentication type to be used when connecting to Databricks. Choose one of the following options:
      - **Personal account token**: If you choose this option, copy the personal access token to be used to access Databricks into the **Token** field. (For more information on how to get the access token, see [Authenticate with Databricks personal access tokens](https://docs.databricks.com/aws/en/dev-tools/auth/pat).)
      - **Machine-to-Machine OAuth**: If you choose this option, enter the **client ID** and the **Client secret** used in the machine-to-machine authentication workflow with Databricks. (For more information on the client ID and client secret, see [Authenticate access to Databricks using OAuth token federation.)](https://docs.databricks.com/aws/en/dev-tools/auth/oauth-federation)

    ![Shows the 'New Databricks connection' dialog, with fields for Host, Port, HTTP path, Authentication type (set to 'Personal account token'), and Token.](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/new-databricks-connection.png)
    New Databricks connection

2. **Complete the query form**

    Enter the following:

    - **Data Source Name**
    - **Query** to define the fields which are to be pulled in. For more information, see [Defining Database Queries](https://support.lucanet.com/en/documentation/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/defining-database-queries.md).
    - Name of the **Date column**, which must be one of Databricks' date formats
    - Names of the columns that contain **variables**(which must have a **numeric** data type)

    > **Tip:** Any remaining columns will be treated as dimensions, and must have a **string** data type.
    >
    > An exception is the **cohort** dimension, which must be a date, with the column header explicitly labelled **Cohort**.

    ![Shows the 'Complete the query form' step of the connection setup, with fields for Data Source Name, Query, Date column, and Variable columns.](https://support.lucanet.com/assets/docs-images/xp-a---extended-planning-and-analysis/integrating-data/connecting-to-a-data-source/connecting-to-a-bi-data-warehouse-system/connecting-to-databricks/_images/en/complete-query-form.png)
