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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
KristofferAJ
Helper III
Helper III

Find specific word within a text cell

Hi all,

I have a column with cells containing a lot of text.

I would like to create a column which looks for a certain word and return a specific value.

 

1. 

For instance if I was to look for Apple -> return 'Yes' or 'No'

 

Can I make the code look for *app*' or does it need to be fully matching?

 

I would like to have to return entries like 'apple-like' for instance, or or 'apples'

 

I hope this makes sense, right now I'm using the 'add a conditional column' in the query, which is fine, but not taking all possibities into account.

 

Thanks

Kristoffer

 

1 ACCEPTED SOLUTION
goncalogeraldes
Super User
Super User

Hello there @KristofferAJ ! You can use the following:

 

Find word =
IF ( CONTAINSSTRING ( 'Your_Table'[Your_column], "*app*" ), "Yes", "No" )

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

View solution in original post

3 REPLIES 3
KristofferAJ
Helper III
Helper III

Hi, this is great and does the job! - let's say that I want it to look for multiple words, like orange also? can that be built in?

Find word =
IF ( CONTAINSSTRING ( 'Your_Table'[Your_column], "*app*" ), "Yes", "No" )
OR
( CONTAINSSTRING ( 'Your_Table'[Your_column], "*oran*" ), "Yes", "No"

 

Hello there @KristofferAJ ! You can simply do:

Find word =
IF (
    OR (
        CONTAINSSTRING ( 'Your_Table'[Your_column], "*app*" ),
        CONTAINSSTRING ( 'Your_Table'[Your_column], "*oran*" )
    ),
    "Yes",
    "No"
)

For additional help, please @ me in your reply!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

goncalogeraldes
Super User
Super User

Hello there @KristofferAJ ! You can use the following:

 

Find word =
IF ( CONTAINSSTRING ( 'Your_Table'[Your_column], "*app*" ), "Yes", "No" )

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors