cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors