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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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