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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
warnera
Helper I
Helper I

Finding unique text in 2 different columns

Hello all, I am trying to create a column that displays only the unique text shared between two columns. Created sample example below. Will be working with large dataset. 

 

Column A                    Column B                    Desired Column

Jon, Joe, Julie           Joe, Julie, Steve                  Joe, Julie

Amy, Jamie               Jamie, Mike, Dave                 Jamie

 

Appreciate any help or insight

1 ACCEPTED SOLUTION

HI  @warnera 

You just miss "{ }' in this formula

just adjust it as below:

Text.Combine(List.Intersect({Text.Split([Column A],",") ,Text.Split([Column B],",")}),",")

Result:

2.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@warnera , Try in M power Query a new column

 

Text.Combine(List.Intersect(Text.Split([Column A],",") ,Text.Split([Column B],",")),",")

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

I am getting an error when trying this. Possibly because I oversimplified my example? The actual data from column A and B are as follows:

 

Column A: Joe, Sam, Steve

Column B: [users- 2020,05,20] Total. Steve, Sam, Jon, Mike

 

Did I execute this wrong or does that change your response?

 

Thanks again!

I was also unable to replicate this on a test example. 

 

warnera_0-1599060290780.png

 

HI  @warnera 

You just miss "{ }' in this formula

just adjust it as below:

Text.Combine(List.Intersect({Text.Split([Column A],",") ,Text.Split([Column B],",")}),",")

Result:

2.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.