cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Isnull function not working for Date

0 Likes
3,251

Hi All,

Could you please let me know if the Isnull function in a calculated Column will work for the Date Field.

For example: I have a Field A with Date Type as Date, I created another Calculated Column with formula "isNull(Field A)". If I have a null value then the calculated column should show as 1 else as 0, right? But I'm getting 0 in spite they are Null Or populated.

Attaching a test view which I created with the same formula

I'm currently using HANA2.0 SPS 2 version

Accepted Solutions (0)

Answers (1)

Answers (1)

richard-zhao
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello, Srinivasa First I cannot reproduce this issue on HANA 1.0 SP12 Version. I suggest that you could check your issue from below list.

  1. Could you check your Calculated Column type, please? boolean is correct.
  2. Could you check whether the column that your Calculated Column using is correct, please? I mean isnull("column") whether the column is that you really want to use. Maybe there a few column called CalDate.
  3. If you can exclude possibility above that could be the HANA version issue. thanks
0 Likes

Hi Richard,

I checked my data type for the calculated column and its nvarchar with length 2. I also tried with Boolean but still the same result. The column which I used in the calculated column is right. That's the base table field which has the date value and a null value.