# Power BI

![](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-MKHQ0_fEJyfyW0QPudD%2F-MKHQDaQsdaigoQMT2fS%2Fimage.png?alt=media\&token=82d9571d-e413-4dde-844e-366d755ec658)

The OECD has developed a plugin to connect an SDMX data source directly to Power BI. It can be loaded when adding "an alternate data source" in PowerBI.

![SDMX Plugin](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDSpD50SdXxsYnU7P9D%2Fuploads%2FvbBuET8AbTMCK8IPBZjL%2FSDMX%20powerbi.png?alt=media\&token=afd06b3e-9b51-47ed-86d6-c6bc77d10cf2)

To import a dataset you will need the API query corresponding to the data to be imported using the Data Explorer as [explained here](https://docs.pacificdata.org/dotstat/de#get-api-queries-corresponding-to-the-data-selection).

Then you can create a new data source in Power BI: Data > Get Data > SDMX. For importation mode, you can choose between labels only, codes only or both. [(Official plugin documentation)](https://sis-cc.gitlab.io/sdmx-tools/documentation/using-sdmx-powerbi-connector/how-to-use/)

![Plugin configuration window](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-Mdz2iHjSUz1ST83bknX%2F-MdzHYG8AxOXPFCtRQMl%2Fimage.png?alt=media\&token=c34fb87f-d8e7-4fc5-9fa7-ee19d565fa5c)

When the data is imported you can transform it with Power Query ("Transform Data" button) to remove useless columns, clean some fields or anything else.

![Imported Data](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-Mdz2iHjSUz1ST83bknX%2F-MdzIKjXgyxLTpXCldNZ%2Fimage.png?alt=media\&token=7a4e84ba-f4b9-481d-8cf2-d237e3a727e5)

The next screenshot shows a Power Query with the previously imported data, transformed with some steps.

![Data transformations with Power Query](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-Mdz2iHjSUz1ST83bknX%2F-MdzISUmX8mp743Aq7Oh%2Fimage.png?alt=media\&token=6ef63900-8034-4c3b-bb32-0f048b180e21)

Finally, your data is now imported and transformed, you can use it to do some visualisations.

![Visualisation Example](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-Mdz2iHjSUz1ST83bknX%2F-MdzIdbPH0yRrRGIh8jH%2Fimage.png?alt=media\&token=13c21a9f-3874-436b-9d77-f91c64682073)

NOTE: Because this plugin is free and open source, its code is publicly available in this [repository](https://gitlab.com/sis-cc/sdmx-tools/sdmx-power-bi).


---

# 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.pacificdata.org/dotstat/plugins/powerbi.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.
