Knowledge Base

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

In a BoostSolutions’ Calculate Boost Field, you can use IsNull function to identify if a column is blank. it returns true if a column is empty or blank; and returns False if a column is not empty.

For example, there is a document library in SharePoint with a few properties and documents. We plan to create a calculated boost field which is used to indicate the days of review based on the document category, such as if the document category is flyer, the days of review should be 5, and if the category is empty or blank, the days of review should be null.

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

WHAT YOU'LL GET

Days of Review is a Calculated Boost field and it shows Null when the document category is blank.

WHAT YOU'LL NEED

The sample data we use for this case

There is a SharePoint document library named as Sales Docs with following properties and files on a SharePoint site.

Use IsNull 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 Sales Docs, click LIBRARY 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 Days of Review, 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.

    If(IsNull([Document Category]),"Null",(If([Document Category]=="Flyer",3,(If([Document Category]=="Promotion",5,10)))))

    This expression will determine the days of review based on the document category:

    If the document category is Flyer, the days of review is 3;

    If the document category is Promotion, the days of review is 5;

    If the document category is Banner, the days of review is 10;

    If the document category is blank, the days of review is Null;

    Specify the data type from this formula as Number and specify the number of decimal places as 0.

    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 Sales Docs and you will find that a column named as Days of Review is created in the library as following, aand it shows the days depends on the document category and shows null when the document category is blank.

Login