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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors