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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors