Knowledge Base

How to use Contains function in Calculated Boost Field in a SharePoint list?

In a BoostSolutions’ Calculate Boost Field, you can use Contains function to identify if a column contains the specific text. it returns true if contains; otherwise it returns False.

For example, there is a SharePoint list which contains the computer information. We plan to create a calculated boost field which is used to indicate the whether the computer is a server, such as if the operating system column contains “server”, the computer will be identified as a server.

In this article, we will demonstrate how to use Contains function in Calculated Boost Field in a SharePoint list.

WHAT YOU'LL GET

Server or Notis a Calculated Boost field and it showsYeswhen the Operation System contains text “Server”; otherwise, it showsNo.

WHAT YOU'LL NEED

The sample data we use for this case

There is a SharePoint list named as Computers with following columns and items on a SharePoint site.

Use Contains function in Calculated Boost Field in a SharePoint list

  1. Download the trial version of Calculated Boost and install it to your SharePoint server.

  2. Navigate to the Computers list, click List tab. In the Manage Views group, click Create Column.

  3. In the Name and Type section, enter a name in the Column Name field to give it a meaningful name such as Server or Not, then select Calculated Boost as the type of information in this column.

  4. In the Additional Column Settings section, type this expression in the Formula box.

    Contains([Operating System],”Server”)

    This expression will determine if the Operating System contains text “Server”, if contains, it will return true; otherwise, it will return false.

    Specify the data type from this formula as Yes/No.

    Unselect the option of Do real-time calculation if formula contains [Today], [Now], [Me], User field, Lookup field etc.

  5. Keep other settings as default and click OK to create column.

  6. Navigate to Computers and you will find that a column named as Server or Not is created in the list as following, and it shows the Yes when the Operating System contains “Server” ; and shows No when the Operating System does not contain “Server”.

Login