CONTAINSSTRING DAX Function in Power BI

The CONTAINSSTRING function in DAX is a powerful text-search function in Power BI that checks whether a specific substring exists within a given text string. It returns a Boolean value: TRUE if the substring is found, and FALSE if it is not. This function is not case-sensitive.

DAX Syntax CONTAINSSTRING(text, substring)

The function has the following parameters:

Both text and substring must be of the Text data type.

Example: Let’s we have the following table named “Student List”.

CONTAINSSTRING dax function in Power BI

Let’s create a calculated column.

DAX

CONTAINSSTRING Column = CONTAINSSTRING('Student List'[StudentName], "a")

The output of the above dax code is shown below:

CONTAINSSTRING dax function in Power BI