Forum Discussion

VictorMourao's avatar
VictorMourao
Regular Visitor
3 years ago

Preciso de ajuda para concatenar no PowerQuery

Tenho duas tabelas: "TabelaRisco" e "TabelaCausa", e desejo criar uma nova coluna na tabela "TabelaRisco" que contenha os valores da coluna "Causa" da tabela "TabelaCausa" concatenados e separados por "|" com base em uma chave em comum (ID Risco). Precisa ser feito no PowerQuery, pois depois vou ter que juntar com outras tabelas.

5 Replies

  • foodd's avatar
    foodd
    Icon for Community Champion rankCommunity Champion

    English Translation (Google Translate):

     

    I have two tables: "TableaRisco" and "TableaCause", and I want to create a new column in the table "TableaRisco" that contains the values of the column "Cause" of the table "TableaCause" concatenated and separated by "|" based on a common key (Risk ID). It needs to be done in PowerQuery because then I'll have to combine it with other tables.

    • foodd's avatar
      foodd
      Icon for Community Champion rankCommunity Champion

      Would you please share your Power BI Desktop file and any source files in Excel format.

       

      Você poderia compartilhar seu arquivo do Power BI Desktop e quaisquer arquivos de origem no formato Excel. (Google Translate)

  • Não consegui anexar a tabela de excel aqui, sou novo nessa comunidade e ainda não aprendi como fazer isso. Mas vou colocar um print das colunas para exemplificar as tabelas

     

    TabelaRisco:

     

    TabelaCausa: