Divya,
The first table was filtered to select data where the clearing date is not null.
The second table is filtered to select data where the clearing data is blank, and at the same time I want to group the selected data based on the two categories. (I created a variable based on field Net Due Data using if...else condition)
I will try your formula. Thank you.