Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Qualifications | Neccesary Qualifications | Meets Qualifications |
MAGOMA,TWIC,MAGPLE,NUSCOU | MAGOMA,MAGPLE,NUSCOU | YES |
TWIC,MAGPLE,NUSCOU | MAGOMA,MAGPLE,NUSCOU | NO |
MAGPLE,NUSCOU,TWIC,PHIROC | NUSCOU,MAGPLE | YES |
Solved! Go to Solution.
Just add a custom column with the formula:
=if List.ContainsAll(Text.Split([Qualifications],","),Text.Split([Neccesary Qualifications],",")) then "Yes" else "No"
Just add a custom column with the formula:
=if List.ContainsAll(Text.Split([Qualifications],","),Text.Split([Neccesary Qualifications],",")) then "Yes" else "No"
I swear I tried that about a dozen times. That worked, THANK YOU!!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.