Forum Discussion

STEPHANIEMILBU2's avatar
STEPHANIEMILBU2
Qrew Cadet
7 years ago

isNull Help

Made a new field "OND/LED" I want this field to show the following result if DATE 2 is blank show Date 1 if date 2 and date 1 are blank show date 3.

For Example 
Example 1:
Date 2: 01/01/17 Date 1: 11/30/16 Date 3: 12/31/17 OND/LED = 01/01/17

Example 2:
Date 2:                Date 1: 11/30/16 Date 3: 12/31/17 OND/LED = 11/30/16

Example 3:
Date 2:                Date 1:                Date 3: 12/31/17 OND/LED = 12/31/17

I tried this it didn't work:
If(isnull([Date 2],[Date 2]),isnull([Date 1},[Date 1]),[Date 3])

8 Replies

  • Think you have some broken syntax.

    If((isnull([Date 2]) && isnull([Date 1]),[Date 3],
    if(isnull([Date 2]),[Date 1], [Date 2])))

    Not tested so my syntax may be a bit off but think its close.
    • STEPHANIEMILBU2's avatar
      STEPHANIEMILBU2
      Qrew Cadet
      Chuck this is the error I recieved:
      Expected a valid expression after the "&"


      If((isnull([OND Extension]) &  & isnull([OND]),[LED],
      if(isnull([OND Extension]),[OND], [OND Extension])))
    • ChuckGrigsby's avatar
      ChuckGrigsby
      Qrew Cadet
      Try that

      If((isnull([OND Extension]) AND isnull([OND]),[LED],
      if(isnull([OND Extension]),[OND], [OND Extension])))
    • STEPHANIEMILBU2's avatar
      STEPHANIEMILBU2
      Qrew Cadet
      A closing parenthesis is missing.


      If((isnull([OND Extension]) AND isnull([OND])  ,[LED],

      if(isnull([OND Extension]),[OND], [OND Extension])))

      I already try added just two parenthesis 
  • If(
    IsNull([Date1]) and IsNull([Date2]), [Date3],
    IsNull([Date2]),[Date1])