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
jwynne
Regular Visitor

Compare all the colmma separated text values in one row/column to a list of required values

I have been fighiting Power query for excel to try and find a way to compare and validate either of the scenerios below;

First, compare one cell which is full of comma seperated text values (Qualifications) to another cell of comma seperated text values (Neccesary Qualifications) then dispaying an "yes" or "no" in a new column (Meets Qualifications) if the first cell contains all the items in the other cell.

Second, compare one cell full of comma seperated text values (Qualifications) to an list (query with just a table of values) resulitng in either an "yes" or "no" in a new column confirming that the first cell contains all the items in the referenced list.

 

QualificationsNeccesary QualificationsMeets Qualifications
MAGOMA,TWIC,MAGPLE,NUSCOUMAGOMA,MAGPLE,NUSCOUYES
TWIC,MAGPLE,NUSCOU   MAGOMA,MAGPLE,NUSCOUNO
MAGPLE,NUSCOU,TWIC,PHIROCNUSCOU,MAGPLEYES
1 ACCEPTED SOLUTION
ronrsnfld
Super User
Super User

Just add a custom column with the formula:

 

 

=if List.ContainsAll(Text.Split([Qualifications],","),Text.Split([Neccesary Qualifications],",")) then "Yes" else "No"

 

 

ronrsnfld_0-1640896647257.png

 

ronrsnfld_1-1640896821613.png

 

View solution in original post

2 REPLIES 2
ronrsnfld
Super User
Super User

Just add a custom column with the formula:

 

 

=if List.ContainsAll(Text.Split([Qualifications],","),Text.Split([Neccesary Qualifications],",")) then "Yes" else "No"

 

 

ronrsnfld_0-1640896647257.png

 

ronrsnfld_1-1640896821613.png

 

I swear I tried that about a dozen times. That worked, THANK YOU!!

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors