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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors