Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Thiago_Melo
Frequent Visitor

Import new columns from an API to my query on power bi

Hi!

 

I've been trying recently import new columns to my data on power query from an api but when i refresh to get the data it seems that is not importing the columns, it's not anywhere that i could find, it doesn't show in the table, pick columns or the advanced editor

 

The columns in the advanced editor are like this:

Fonte = Json.Document(Web.Contents("http://000.000000.00:000/api/millenium_omniasystem/movimento/listamovimento?datami=2022-03-01&datamf...")),
#"Convertido para Tabela" = Table.FromRecords({Fonte}),
#"value Expandido" = Table.ExpandListColumn(#"Convertido para Tabela", "value"),
#"value Expandido1" = Table.ExpandRecordColumn(#"value Expandido", "value", {"tipo_operacao", "cod_operacao", "data_movimento", "romaneio", "cod_filial", "nome_filial", "fantasia_filial", "codigo_evento", "desc_evento", "cod_funcionario", "nome_funcionario", "data_nf", "nota", "chave_nfe", "nf_protocolo", "pedido_venda", "prefat_venda", "cod_cliente", "nome_cliente", "cod_fornecedor", "cpf", "cnpj", "rg", "ie", "ddd", "fone", "e_mail", "endereco", "numero", "complemento", "cep", "uf", "cidade", "itens_movimento", "lancamentos_movimento", "qtde", "valor_final"}, {"value.tipo_operacao", "value.cod_operacao", "value.data_movimento", "value.romaneio", "value.cod_filial", "value.nome_filial", "value.fantasia_filial", "value.codigo_evento", "value.desc_evento", "value.cod_funcionario", "value.nome_funcionario", "value.data_nf", "value.nota", "value.chave_nfe", "value.nf_protocolo", "value.pedido_venda", "value.prefat_venda", "value.cod_cliente", "value.nome_cliente", "value.cod_fornecedor", "value.cpf", "value.cnpj", "value.rg", "value.ie", "value.ddd", "value.fone", "value.e_mail", "value.endereco", "value.numero", "value.complemento", "value.cep", "value.uf", "value.cidade", "value.itens_movimento", "value.lancamentos_movimento", "value.qtde", "value.valor_final"}),
 

 

I already tried just write the column name on this to bring the column but it doesn´t work too, refreshing data also does nothing, theres nothing wrong with the data and how its written.

 

Anyone knows what could be the problem and how can i resolve this issue?

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Thiago_Melo ,

 

Hope these similar links could help you:

How To Get Data From Power BI Dataset Via An API: EPCGroup

Solved: Using a REST API as a data source - Microsoft Power BI Community

Solved: Power Query REST API with Token and additional val... - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

These links were not helpfull in my case unfortunately, i can't import new columns to an existing and functional query, you know what i could do to resolve this issue?

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.