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
skygriff
Frequent Visitor

Find if text in one column exists in another column in a different table?

Hi,

 

I have a column with a string of text (actually a 12 digit product number) that I want to see if it finds that 12 digit number in some text in another column in a different table. 

 

Table1 (table name)

Product (column name)

1111

0000

 

Table2

Notes

Please use product 1111

I recommend ordering 3333 for this issue

 

So since the Notes column in Table2 has "1111" then I would need to generate a column that says "Yes" because it found that product number in the notes.  The 2nd row in Table2, recommends product 3333 but Table1 indicates product 0000, so then the result would be "No".  Hopefully I explained it well enough.  Thanks for any suggestions!

 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@skygriff,

 

Here is a similar case. You may have a look.

https://community.powerbi.com/t5/Desktop/Text-contains-search-value-from-a-second-table/m-p/310965

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
skygriff
Frequent Visitor

Hi,

 

I have a column with a string of text (actually a 12 digit product number) that I want to see if it finds that 12 digit number in some text in another column in a different table. 

 

Table1 (table name)

Product (column name)

1111

0000

 

Table2

Notes

Please use product 1111

I recommend ordering 3333 for this issue

 

So since the Notes column in Table2 has "1111" then I would need to generate a column that says "Yes" because it found that product number in the notes.  The 2nd row in Table2, recommends product 3333 but Table1 indicates product 0000, so then the result would be "No".  Hopefully I explained it well enough.  Thanks for any suggestions!

 

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.