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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Join columns of text, but join those that contain text

Good afternoon, I hope you can help me, how can I join columns that contain text by and those that do not have text, I do not join them since as I am using a - to the box does not have text, it places it for me

 

Example


Incomplete

GRUPO_Administracion Cuentas de Red-Software-Falla Funcionalidad- 

 

Complete

GRUPO_Soporte Equipo Usuario Final-Software-Falla Funcionalidad-Mal funcionamiento aplicativo

 

Captura de pantalla (222).png

wants to achieve that I only join the cells that contain text

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

here is the solution,

Text.Combine( List.Select(Record.FieldValues(Record.FromList({[Column1],[Column2],[Column3]},type [Column1 = text,Column2=text,Column3=text])),each _<> "" and _ <> null),"," )

vxiaotang_0-1661763350235.png

Code in Advanced Editor

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUQKiZKVYnWgQIwWIU8GcVCArHSQbGwsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}}),
    #"Inserted Merged Column" = Table.AddColumn(#"Changed Type", "Merged", each Text.Combine( List.Select(Record.FieldValues(Record.FromList({[Column1],[Column2],[Column3]},type [Column1 = text,Column2=text,Column3=text])),each _<> "" and _ <> null),"," ))
in
    #"Inserted Merged Column"

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-xiaotang Hello, good afternoon, I get an error, is it possible to do it but in DAX?

 

Captura de pantalla (226).pngCaptura de pantalla (224).png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors