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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Souza287
Frequent Visitor

ETL - Limpeza e carga de tabela

Considerando as tabelas "PlanoContas" e "TAux_carga" conforme layout abaixo do PowerBI e durante o meu processo ETL. Quero criar a coluna condicional/personalisada "ID_Conta2", na tabela "TAux_carga", na coluna "Descrição", que contenha todas as contas da coluna "ID_Conta" da tabela "PlanoContas, conforme formato detalhado adiante. Como fazer.


PlanoContas

 

Conta       Conta_edit    Descrição                                                                              ID_Conta

21011801 2.1.01.18.01 RECEITAS ORDINÁRIAS                                                          RECEITAS ORDINÁRIAS - 2.1.01.18.01
21011801 2.1.01.18.01 COTAS CONDOMINIAISS                                                       COTAS CONDOMINIAIS - 2.1.01.18.01
21011801 2.1.01.18.01 RECEBIMENTOS A MAIOR                                                      RECEBIMENTOS A MAIOR - 2.1.01.18.01


TAux_carga


Descrição                                                                                                                                  ID_Conta2

27/11/2017 CEG - NC: 7845484-0 - BL 01 DOC: 397730 11/2017"                                          null
"CHURRASQUEIRA - 1.4.14.04.01                                                                                             CHURRASQUEIRA - 1.4.14.04.01
08/11/2017 AP. 107 BL. 02 - EVENTO DIA 04/11/2017"                                                           null
CFTV - CIRCUITO FECHADO DE TV - 2.1.02.22.01 27/11/2017                                                CFTV - CIRCUITO FECHADO DE TV - 2.1.02.22.01
"BOMBAS - 2.1.02.11.01                                                                                                           BOMBAS - 2.1.02.11.01
10/11/2017 MASTER RIO DOC: 4131 10/2017"                                                                        null
08/11/2017 nulo

 

Já testei com diversas variações atraves utilziando criação da Coluna Personalisadaconforme segue e nada. Dá diversos e variados erros. Agradeço quem puder ajudar.


ID_Conta2 =
if [Descrição] = null then null
else let
ContasEncontradas = Table.SelectRows(PlanoContas, each Text.Contains([Descrição], [Conta_edit])),
ID_Conta = Text.Combine(ContasEncontradas[ID_Conta], ", ")
in
if ID_Conta = "" then null else ID_Conta

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Souza287 ,

 

Sorry for really hard to understand your language. I'm having trouble understanding your question. It seems like you provided a layout for two tables, "PlanoContas" and "TAux_carga", but I'm not sure what you are trying to accomplish with these tables. 

If possible, please provide an explanation of the question in English.

 

                                                                                                                                                         

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.           

 

Olá Stephen Tao. Obrigado por se interessar em ajudar. Eu tambem não falo e nem entendo os idiomas alem do portugues. Eu utilizo aqui no site a opção do google: "TRADUZIR PARA O MEU IDIOMA". Experimente essa tecnica dessa comunidade e se mesmo assim vc não entendeu oque expliquei e na tradução para o seu idioma. Eu posso explicar de outra forma. Inclusive até desenhei.... mas podemos chegar aos entendimentos do que postei.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors