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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
enteron
Regular Visitor

Power Query: List the words contained in a cell that occur in another query

<p>Is there a way I could get another column to display a list of items that occur in another query from a specific column?</p>
<p>&nbsp;</p>
<p>Example:</p>
<p>TextList</p>
<table>
<tbody>
<tr>
<td>This garden has an apple tree.</td>
<td>Apple</td>
</tr>
<tr>
<td>The basket has apples and bananas.</td>
<td>Apples, Bananas</td>
</tr>
<tr>
<td>The banana cake has corn.</td>
<td>Banana, Corn</td>
</tr>
<tr>
<td>The fox jumped over the dog.</td>
<td>Null</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Query to search the word/s from:</p>
<p>&nbsp;</p>
<p>Fruits</p>
<table>
<tbody>
<tr>
<td>apples</td>
</tr>
<tr>
<td>bananas</td>
</tr>
<tr>
<td>corn</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Appreciate the help!</p>
2 ACCEPTED SOLUTIONS

Hi,

 

You may refer to my solution here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Thanks for the input Ashish! I'm wondering though if it's also possible to extract certain phrases and get a table/list output if the source cell contains a sentence and there are no delimiters.

View solution in original post

8 REPLIES 8
v-yulgu-msft
Employee
Employee

Hi @enteron,

 

Please share sample data and show us desired output to make your requirement more clear.

How to Get Your Question Answered Quickly

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry about that didn't realize the tables didn't show up as intended. 

 

Phrases/Words to Match

Yellow Banana
Red Apple
Blue Berry

 

 

Text StringList/Output

Green Banana, Yellow Apple, Blue BerryBlue Berry
Red Apple, Blue Berry, Green BananaRed Apple, Blue Berry
Yellow Banana, Red Apple, Red BerryYellow Banana, Red Apple
Red Banana, Yellow Apple, Blue BerryBlue Berry

 

Thanks!

Not sure but is this possible?

Hi,

 

This is possible.  Here is the result i got.  I will share my solution in a couple of days.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks in advance!!! Hope you could share it

Hi,

 

You may refer to my solution here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the input Ashish! I'm wondering though if it's also possible to extract certain phrases and get a table/list output if the source cell contains a sentence and there are no delimiters.

You are welcone.  If my reply helpd, please mark it as Answer.  I doublt if i can help you with your second question.  Share the data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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