# BigQuery

Configure BigQuery as a destination for the Lumel Planning sheet writeback.&#x20;

**Prerequisite:** Certain Lumel IP addresses need to be whitelisted in the firewall for the application to reach the configured server.

Detailed help instructions, whitelisting procedures, and other details are available on the Lumel application with links as shown below:

<figure><img src="/files/elY8TQzucVqwsr3VwaIz" alt=""><figcaption><p>BigQuery as writeback destination</p></figcaption></figure>

You can configure the destination using either the JSON key type or the P12 key type. The details listed in the table below will have to be entered depending on the chosen key type:

| JSON(Recommended)       | P12                   |
| ----------------------- | --------------------- |
| Dataset ID              | Dataset ID            |
| Json Key                | Project ID            |
| Table Name              | Service Account Email |
| Temporary Staging Table | Private Key           |
|                         | Table Name            |

{% hint style="info" %}

* If the tenant administrator creates a connection at admin level, the Dataset ID and Project ID fields will be populated automatically.
* Ensure that the user has permission to SELECT, INSERT, UPDATE, and DELETE data from the table.
  {% endhint %}

<figure><img src="/files/N9yrkDBpDSU7Y30QuYwu" alt=""><figcaption><p>Configuring BigQuery with JSON key type</p></figcaption></figure>

<figure><img src="/files/YWghX9T6YlLwwlWfFXZ1" alt=""><figcaption><p>Configuring BigQuery with P12 key type</p></figcaption></figure>

### 1. Generating the JSON key

Select the **Create new key** option from the ADD KEY dropdown.

<figure><img src="/files/orFvjhSQ46U1R9auztAA" alt=""><figcaption><p>Create new key</p></figcaption></figure>

Select the JSON radio button.

<figure><img src="/files/WxXKw3KK0tahzq18b7ol" alt=""><figcaption><p>Choose the JSON option</p></figcaption></figure>

<figure><img src="/files/nb7Mm1gC3T9zgb9NWWC3" alt=""><figcaption><p>Key saved notification</p></figcaption></figure>

### 2. Roles

Ensure that the account has “Data Editor” permission.

<figure><img src="/files/58l4ZNRApQRgnnuDQhX5" alt=""><figcaption><p>The account should have Data Editor permissions</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning/data-writeback/destinations/bigquery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
