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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sdobi05
Frequent Visitor

csv value filter

Hi All,

 

I have ID and Name column in two different tables

ID is comma separated value.

Table 1
ID
1,2,3
2,4
5,2

 

Table 2 
IDName
1A
2B
3C
4D
5E

I want to get Name column as comma separated as ID. The output should be :

 

Table 3 
IDName
1,2,3A,B,C
2,4B,D
5,2E,B

 

TIA

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sdobi05 ,

 

You could create a column using the following formula:

Name =
CONCATENATEX (
    CALCULATETABLE (
        VALUES ( Table2[Name] ),
        FILTER ( Table2, SEARCH ( Table2[ID], Table1[ID], 1, 0 ) > 0 )
    ),
    [Name],
    ","
)

9.30.更改.PNG

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,

Eyelyn Qin

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sdobi05 ,

 

You could create a column using the following formula:

Name =
CONCATENATEX (
    CALCULATETABLE (
        VALUES ( Table2[Name] ),
        FILTER ( Table2, SEARCH ( Table2[ID], Table1[ID], 1, 0 ) > 0 )
    ),
    [Name],
    ","
)

9.30.更改.PNG

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,

Eyelyn Qin

 

amitchandak
Super User
Super User

@sdobi05 , In table a create a new column ID 1

Split ID1 on , into rows : https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

Then combine Table 1 and table 2  using ID  and ID1 and use concatenatex on Name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey Amit.. Thanks for the solution but i want to achieve it withing DAX.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.