Text.Contains

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns true if a text value substring was found within a text value string; otherwise, false.

Text.Contains(string as nullable text, substring as text, optional comparer as nullable function) as nullable logical  

ArgumentDescription
stringThe text to parse.
substringThe text to search for.
optional comparerThe optional culture aware comparer function can be provided.
Text.Contains("abc", "a") equals true  

Text.Contains("abc", "d") equals false  

Show: