@aditya, you could use the coalesce (as outlined in the post shared previously) and that should solve your issue:
coalesce
This post too should be helpful: