I would like to have a Text.Contains that searches Column A for "Example" OR "Examples" OR "Examples2". I am sure it is staring me in the face but I cannot figure out how to do it.
Go to Solution.
Hi @pbiuser2 ,
Please try this:
if Text.Contains([Column1],"Example") = true then [Column1] else null
The function of Text.Contains will search out all the data which contains the key word. So you just need to write Text.Contains one time.
If you want to filter data, you could try this:
= Table.SelectRows(#"Changed Type", each Text.Contains([Column1], "Example"))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
If you are trying to perform this on a table, you would like to use something like:
#"Filtered Rows" = Table.SelectRows(table, each( Text.Contains([ColumnA], "Executive") or Text.Contains([ColumnA], "General") ))
@JasonTX, thanks for the suggestion. I have been doing it that way, but I am hoping I can cut out the repetitious "Text.Contains".
Learn how to create your own user groups today!
Click here to read more about the November 2021 Updates!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.