Solved
Help with IF and DateTime_Diff
IF({Last Renewal},
DATETIME_DIFF(
TODAY(),
{Last Renewal},
'days'
) > 365,
"🔴",
"🟢"
)
The above formula, without the first {Last Renewal}, works fine. But I have records that are empty and I want them blank. I obviously am not constructing my syntax correctly. I want to say that if {Last Renewal} is not blank, then do the following. as I said it works if take out the first {Last Renewal}. I'm sure it is simple. I just don't see it.
Thanks, Scott
Best answer by jwag
I think you're missing a 2nd if (nested). Try the following:
IF(
{Last Renewal},
IF(
DATETIME_DIFF(
TODAY(),
{Last Renewal},
'days'
) > 365,
"🔴",
"🟢"
),
""
)
This says: if the renewal date is not blank, then check the date diff, otherwise if it's blank, return blank.
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

