Good morning -
I’m trying to build a datediff formula in a calculated field that would find the difference between a start and end date, but if the end date was blank it would use today. Is that possible without leveraging the rules engine?
Good morning -
I’m trying to build a datediff formula in a calculated field that would find the difference between a start and end date, but if the end date was blank it would use today. Is that possible without leveraging the rules engine?
Best answer by Justin Bills
Hi
I made a custom calculated field:
CASE
WHEN (field end date) IS NULL THEN gsdateDiff( field start date , gstoday( ) , 'DAY' )
ELSE gsdateDiff( start date , end date , 'DAY' )
END
The bold/italic would be replaced by whatever your fields are in your instance! :)
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.