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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
WTAS80486
Helper IV
Helper IV

Concatenate values in a row for the already concatenated values in another row

HI,

 

I have a Column A in a table A

 

Column A
ABC, DEF

 

And two other columns B and  C in another Table B in power BI is 

 

Column BColumn C
ABCOO
DEF

PP

 

What i wanted to display in table A is

 

Column AColumn D
ABC, DEFOO,PP
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @WTAS80486 

 

You can add a custom column with below code in Table A. 

Text.Combine(
    List.Combine(
        List.Transform(
            Splitter.SplitTextByDelimiter(",")([Column A]),
            each let pColumnA = _ in Table.SelectRows(#"Table B", each [Column B] = pColumnA)[Column C]
        )
    ), 
    ","
)

vjingzhang_0-1675910709390.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

View solution in original post

2 REPLIES 2
WTAS80486
Helper IV
Helper IV

Thanks @v-jingzhang 

v-jingzhang
Community Support
Community Support

Hi @WTAS80486 

 

You can add a custom column with below code in Table A. 

Text.Combine(
    List.Combine(
        List.Transform(
            Splitter.SplitTextByDelimiter(",")([Column A]),
            each let pColumnA = _ in Table.SelectRows(#"Table B", each [Column B] = pColumnA)[Column C]
        )
    ), 
    ","
)

vjingzhang_0-1675910709390.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.