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
AlanCruz
Frequent Visitor

Compare values between 2 or more columns in the same table with values separated by comma

Hey guys,

 

I need to compare values between two columns, A and B.
The values in question come from json, and each column is an array of values. I managed to break these values by commas, but I need to identify which values do not exist between these two columns.

Is there any way to do this?

 

Example image

AlanCruz_0-1712581274064.png

 

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi @AlanCruz 

=Text.Combine(
List.Difference(
Text.Split([Col A], ","),
Text.Split([Col B], ",")),
",")

Stéphane 

View solution in original post

1 REPLY 1
slorin
Super User
Super User

Hi @AlanCruz 

=Text.Combine(
List.Difference(
Text.Split([Col A], ","),
Text.Split([Col B], ",")),
",")

Stéphane 

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.