> For the complete documentation index, see [llms.txt](https://docs.pacificdata.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pacificdata.org/dotstat/plugins/powerbi.md).

# Power BI

Produce reports and dashboards with Power BI using a PowerQuery template

![](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
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 dynamically by asking a question.

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

```
GET https://docs.pacificdata.org/dotstat/plugins/powerbi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
