SEARCH is a DAX function that returns the starting position of one text string within another, without considering case sensitivity.
Syntax
SEARCH(
FindText,
WithinText,
StartPosition,
NotFoundValue
)
Argument | Properties | Description |
---|---|---|
FindText | The text you want to find. You can use the ? and * wildcard characters; use ~? and ~* to find the ? and * characters. | |
WithinText | The text in which you want to search for FindText. | |
StartPosition | Optional | The character position in WithinText at which you want to start searching. If omitted, the default value is 1. |
NotFoundValue | Optional | The numeric value to be returned if the text is not found; if omitted, an error is returned. |