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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.