> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/reports/bi-tools.md).

# Integration with data analysis tools (BI)

Connect your Dastra custom reports to Power BI, Google Looker or Tableau, with data that refreshes automatically.

{% hint style="info" %}
To use this feature, your subscription must include the **Enterprise** plan and you must have the **Advanced configuration** permission.
{% endhint %}

Dastra lets you import [custom reports](https://doc.dastra.eu/en/features/reports.md) into your BI tool (Power BI, Google Looker, Tableau Software, etc.). You analyze the data in depth with your tool, and the reports refresh automatically.

## Set up in Dastra

1. In the **Reporting** module, open a report and click **Connect BI Tools**.
2. In the window that opens, click **Create connect link**. The link is copied to your clipboard.

The window then shows two tabs, depending on how your tool connects:

* **Link**: the public address of the report, to paste into the tool. Anyone who has this link can access the raw data of the report.
* **Authentication (Bearer)**: the **Service url** and the **Authentication token**, to enter separately. Your tool sends the token in the HTTP header `Authorization: Bearer <token>`. Prefer this tab when your tool can add a header: the address alone then gives no access to the data.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-5c7b241e64926660eeea791a7a2cc6795316c591%2Freports-bi-tools-1.png?alt=media" alt="The BI tools connection window with the Link and Authentication (Bearer) tabs"><figcaption><p>The BI tools connection window</p></figcaption></figure>

{% hint style="warning" %}
Do not pass the link or the token to anyone who should not see the data of the report.
{% endhint %}

To cut off access, click **Remove connection** in the same window, then confirm. The link and the token stop working: you can create a new connection with **Create connect link**.

## Set up in the BI tool

### Microsoft Power BI

1. **Open Power BI Desktop :**
   * Launch Power BI Desktop on your machine.
2. **Connect to the Web data source:**
   * In Power BI Desktop, go to the Home tab.
   * Click on Get Data, then select **Web**.
3. **Enter the URL of the JSON link:**
   * In the Get Data Web window that appears, enter the URL of your JSON file or API (if you have a JSON share link).
   * Make sure the URL points to a JSON file or API that returns JSON data.
   * Click on OK.
4. **Authentication (if required):**
   * With the link from the **Link** tab, no authentication is needed: select **Anonymous**.
   * With the **Authentication (Bearer)** tab, enter the **Service url** in step 3, then click **Advanced** and add, in the HTTP request header parameters, the `Authorization` header with the value `Bearer` followed by the token. Then select **Anonymous**.
5. **Access JSON data:**
   * Power BI will connect to the URL and retrieve the JSON file.
   * Once successfully connected, a JSON data preview window will appear. You can explore the data in the form of nested lists, objects or tables.

{% hint style="info" %}

* **Performance**: If your JSON file is large or contains deep hierarchies, Power BI may take some time to load and transform the data.
* **Data refresh:** If JSON data is regularly updated (e.g. by an API), you can set up a data refresh in Power BI Service to retrieve the latest data automatically.
  {% endhint %}

### Google Looker <a href="#google-looker" id="google-looker"></a>

Google Looker connects to Google BigQuery, a Google Cloud data warehouse that can store and process JSON files.

**1. Using Google BigQuery as a data source**

1. **Upload the JSON file to Google Cloud Storage :**
   * If your JSON file is accessible via a share link, start by uploading the file to **Google Cloud Storage**.
   * Make it public or set the appropriate permissions.
2. **Load JSON data into BigQuery:**
   * Access the Google Cloud Platform console (Google Cloud Console).
   * Go to **BigQuery** and select or create a project.
   * In **BigQuery**, select your dataset and click on **Create Table.**
   * Select **Google Cloud Storage** as the source and enter the URL of your JSON file in the **URL** field.
   * Set the data format to **JSON** and make sure **BigQuer**y can correctly interpret the structure of your file.
3. **Connect BigQuery to Looker :**
   * Once the JSON file has been loaded into BigQuery, you can connect Looker to BigQuery.
   * In Looker, go to Admin > Connections and add BigQuery as a data source.
   * Once the connection has been established, you can query BigQuery data directly in Looker and visualize it.

**2. Use ETL tools to integrate JSON into Looker**

If you need to automate the integration of JSON data from an API or external file into Looker, you can use ETL (Extract, Transform, Load) tools such as Fivetran, Stitch or Airflow. These tools can extract JSON data, transform it and load it into a Looker-compatible data warehouse.

**Example with Fivetran :**

1. Connect a REST API or JSON source to Fivetran.
2. Transform the data to match the requirements of your data warehouse.
3. Load the data into the warehouse (e.g., BigQuery).
4. Connect Looker to this data warehouse to start querying and visualizing the data.

### Tableau Software <a href="#tableau-software" id="tableau-software"></a>

**1. Open Tableau Desktop** :

* Launch Tableau Desktop on your machine.

**2. Connect to a Web data sourc**e:

* In Tableau Desktop, go to the File menu and select New Data Source.
* In the data source selection window, click on Web Data Connector. This option lets you connect to data from various web sources, including JSON files via an API or URL.

**3. Enter JSON URL:**

* You'll need to enter the URL of the JSON file or API in the window that appears.

**4. Authentication:**

* With the link from the **Link** tab, no authentication is needed.
* If your connector can add an HTTP header, use the **Authentication (Bearer)** tab: enter the **Service url** and the header `Authorization: Bearer <token>`.

**5. Analyze JSON data in Tableau :**

* Tableau will connect to the URL, download the JSON file and attempt to convert it into an understandable tabular format (a table or structured data view).
* Tableau can automatically detect the structure of JSON data, but in some cases, if the file is very complex or nested, you may need to make adjustments in the data editor to flatten or transform the data into an appropriate format.

{% hint style="info" %}

* **JSON file limitations:** If your JSON file is large or highly nested, Tableau may have difficulty parsing it correctly.\
  Sometimes it may be necessary to transform or simplify it before integrating it.
* **Authentication and security:** If your JSON link requires an API key, be sure to manage authorizations and credentials. Some APIs may have limitations on the number of requests or require specific authorizations.
* **Data refreshment:** If JSON data changes regularly (for example, via an API that provides real-time updates), you can configure Tableau to automatically refresh data at regular intervals, to keep your reports up to date.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/en/features/reports/bi-tools.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
