New Idea
LIfecycle in Weeks formula - please validate and prep for either patch soon or May release worst cas
We've been holding on updating the managed 'Lifecycle in Weeks' formula field on our Customer Info object until we have a validated formula - we've got a few customers waiting for this field to function as originally intended: provide a week number, 1-52, based on the anniversary of the Original Contract Date.
I've provided a formula below. I've also set this formula field up in a demo org and tested it - I can pass along the credentials if you want to look.
Basically, the formula works as follows:
1. builds a date in the current year that is the same month and day as the Orig. Contract Date
2. Subtracts this date from today's date.
3. If the result is positive, then it divides the different by 7 and rounds to get a week number.
4. If negative (meaning that the Orig Date day and month is later in the year than today), it creates a new date for LAST year with the same day and month as the Orig. Contract Date, THEN subtracts and divides by 7.
What's the process for pushing this along to resolution? In a perfect world, I'd like to update this as a patch before the May release - Blackline in particular has been pushing for this, although I gave them the formula to drive off a field they create while they wait.
I definitely want Prod Eng to validate the formula independently - let me know if you have any questions.
FORMULA:
IF (
TODAY() - DATE (YEAR( TODAY () ),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c ))>=0,
FLOOR((TODAY() - DATE (YEAR( TODAY () ),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c )))/7)+1,
FLOOR((TODAY() - DATE (YEAR( TODAY ()-365),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c )))/7)+1)
PS. This started as a chatter feed in GonG. Snip att'd.
I've provided a formula below. I've also set this formula field up in a demo org and tested it - I can pass along the credentials if you want to look.
Basically, the formula works as follows:
1. builds a date in the current year that is the same month and day as the Orig. Contract Date
2. Subtracts this date from today's date.
3. If the result is positive, then it divides the different by 7 and rounds to get a week number.
4. If negative (meaning that the Orig Date day and month is later in the year than today), it creates a new date for LAST year with the same day and month as the Orig. Contract Date, THEN subtracts and divides by 7.
What's the process for pushing this along to resolution? In a perfect world, I'd like to update this as a patch before the May release - Blackline in particular has been pushing for this, although I gave them the formula to drive off a field they create while they wait.
I definitely want Prod Eng to validate the formula independently - let me know if you have any questions.
FORMULA:
IF (
TODAY() - DATE (YEAR( TODAY () ),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c ))>=0,
FLOOR((TODAY() - DATE (YEAR( TODAY () ),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c )))/7)+1,
FLOOR((TODAY() - DATE (YEAR( TODAY ()-365),MONTH ( JBCXM__OriginalContractDate__c ) , DAY ( JBCXM__OriginalContractDate__c )))/7)+1)
PS. This started as a chatter feed in GonG. Snip att'd.
Reply
Sign up
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.
Welcome to the Gainsight Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.