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
Tamara_Motta
New Member

Concatenate [column of values] & [text column.], Does not work!

Olá boa tarde. Preciso de ajuda.

 

Eu preciso criar uma coluna que concatena dois campos de uma tabela.

 

O campo [NewColumn.UF] é um campo de texto.
O campo [Merchandise] é um campo de valor .

 

Usando a função "CONCATENAR" da seguinte maneira:

= Table.AddColumn (# "NewColumn Expanded2", "Personalizar", cada CONCATENATE ([NewColumn.UF], [Merchandise]))

Eu estou recebendo o seguinte erro:

Expression.Error: O nome 'CONCATENATE' não foi reconhecido. Verifique se ele foi escrito corretamente.

 

Pesquisando o fórum aqui, a seguinte correção foi feita:

= Table.AddColumn (# "NewColumn Expanded2", "Personalizar", cada Text.From ([NewColumn.UF] & [Merchandise]))

Mas ele me retorna para a coluna final mostrando "ERRO"

 

Pode me ajudar?

3 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Using the Edit Queries menus, select 'Add Column' from the Ribbon and select the "Add Custom Column".

 

Name your new column and select your columns from the Right hand menu but place an "&" between them.

 

It might look something like

Capture.PNG

View solution in original post

Anonymous
Not applicable

The code this creates would be:

    #"Added Custom1" = Table.AddColumn(#"Removed Columns", "NewColumn", each [Id] & [ParentId])

View solution in original post

@Tamara_Motta

 

You can create this calculated column via either DAX or Power Query. Just use "&" to concatenate two fields.

 

5.PNG

 

Regards,

View solution in original post

11 REPLIES 11

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.