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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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