Articles in this section
Category / Section

How to Handle Null Values in Expression Designer

Published:

In Expression Designer, you may come across a situation where you need to output a specific value based on whether a field is null or not. The ISNOTNULL function can be used to achieve this, but it’s important to understand how it works.

The ISNOTNULL function returns a Boolean response, which means it will return either ‘true’ or ‘false’. If the field is not null, it will return ‘true’. If the field is null, it will return ‘false’.

To output 1 if the field is not null and 0 if the field is null, you can use the IF function in combination with the ISNOTNULL function. Here’s how you can modify your expression:

IF(ISNOTNULL([payment_expe])='true',1,0)

image.png

In this expression, ISNOTNULL([payment_expe])='true' checks if the field payment_expe is not null. If it’s not null, the expression will return ‘true’, and the IF function will output 1. If the field is null, the expression will return ‘false’, and the IF function will output 0.

image.png

References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RM
Written by Reethika Moovendhan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied