> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/skyone-studio/how-to/como-criar-endpoint-para-download-e-integrar-com-o-power-bi.md).

# Como criar endpoint para download e integrar com o Power BI

### Contexto

Imagine que você tratou dados de uma tabela no **Skyone Studio** e deseja exportar estes dados para o Power BI a fim de criar um dashboard.&#x20;

Nesta documentação, detalharemos passo a passo como utilizar o recurso "[**Template de arquivo**](https://docs.skyone.cloud/skyone-studio/data-management/templates-de-arquivo.md)" e como integrar com o Power BI.

### Passo a passo

1. No **Data Studio**, acesse o diretório que contém os dados e clique em "**Templates de arquivo**".&#x20;
2. Em seguida, clique em "**Novo template**".&#x20;
3. Preencha os campos necessários. [Leia mais detalhes aqui](https://docs.skyone.cloud/skyone-studio/data-management/templates-de-arquivo.md#adicionar-template). Para o nosso exemplo, utilizamos a seguinte construção:
   * **Nome do template:** beneficiostratados
   * **Tipo**: CSV
   * **Diretório**: /uploads
   * **Nome do arquivo:** beneficiostratados
   * **Grupos de leitura:** default
   * **Grupos de escrita:** default
   * **Criar endpoint para download:** Sim. Ao ativar esta opção, será mostrado um endpoint o qual você deve copiar.

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FP1Fyek5K8hShlXqCZ1oF%2FF0207BDB-5B7C-4C27-AD87-F61BE8003F23.png?alt=media&amp;token=550888c7-0c7e-48dc-9a98-c1a17c75df26" alt=""><figcaption><p>Configuração do template de arquivo</p></figcaption></figure>

4. Agora é hora de copiar os dados para este arquivo. Para isso, utilize os comandos `copy` e `to`, conforme o exemplo abaixo:

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FQkrPZTQDBZ5H8tgZM1Ou%2F6B9824F9-850B-4BDD-8D93-5CC1DC16AB42.png?alt=media&amp;token=e48e0d68-a147-46c5-b44e-f4f7fe348342" alt=""><figcaption><p>Exemplo de "copy" e "to" </p></figcaption></figure>

5. Para finalizar esta etapa, execute os comandos para visualizar os dados no arquivo.&#x20;

#### Power BI

Para inserir os dados no Power BI, siga os passos abaixo:

1. Abra uma nova página na ferramenta.
2. Clique no menu "**Obter dados**" e, em seguida, escolha a opção "**Web**".&#x20;

<figure><img src="https://content.gitbook.com/content/lGHvosl2xodpQaXzCzxY/blobs/jAlmOrpif5RgRnTYl4wU/PowerBI_portugues.png" alt=""><figcaption></figcaption></figure>

3. No modal exibido, cole na caixa de URL o endpoint copiado no **Skyone Studio** e clique no botão "**OK**".&#x20;

Em instantes, os dados serão exibidos na tela, possibilitando a transformação dos dados, a criação de dashboards, entre outras ações.


---

# 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://docs.skyone.cloud/skyone-studio/how-to/como-criar-endpoint-para-download-e-integrar-com-o-power-bi.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.
