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
| Argument | Description |
|---|---|
| string | The text to parse. |
| substring | The text to search for. |
| optional comparer | The optional culture aware comparer function can be provided. |
Text.Contains("abc", "a") equals true
Text.Contains("abc", "d") equals false
Show: