Earliest expected closing date for an opportunity involving multiple revenue line items.

Hi there,

Following several unsuccessful attempts, I have finally found a solution that enables me to identify the earliest expected closing date for an opportunity involving multiple revenue line items.

To achieve this, I created a calculated checkbox field "open_rli" on the revenue line item and defined the sales stages for which the RLI should still be included in the calculation.

isInList($sales_stage, createList("new", "on_hold", "Prospecting", "in_contact", "Proposal / Price Quote", "Demo Presentation / Test Shoot", "in_process", "Negotiation / Review"))


In the Opportunities, I entered the formula for the "earliest_close_date" field.

rollupConditionalMinDate($revenueLineItems, “date_closed”, createList(“open_rli”), createList(“true”)).

This basically works, except in cases where 'open_rli' = false, in which case this date should not be taken into account.
Unfortunately, this does not work; both true and false cases are displayed.

Does anyone have any ideas?


Best regards,
Steffen

Parents
  •  
    Can I ask why not use the existing 'Forecast Stage' (include/exclude) dropdown instead of adding the calculated checkbox field?
    Not saying it's wrong, just wondering what scenario you have that requires this approach.

    .

    CRM Business Consultant

  • Hi  Thank you very much for looking into my question. 

    The objective is to evaluate opportunities in a dashlet and report those with expired expected close dates, indicating a need for action.  Regrettably, the function

    rollupConditionalMinDate($revenueLineItems, “date_closed”, createList(“open_rli”), createList(“true”)).

    does not operate as intended; both true and false cases are displayed. For instance, revenue line items with sales stages closed both won and closed lost.

    The sales stage close won is included in the forecast stage, so unfortunately that won't work. 

    All the best
    Steffen

  • Hello  , 

    I tried your approach locally and made a small adjustment to the naming in the first formula to ensure the checkbox is set in some test scenarios.

    For the second formula, I realized it might not be working as expected due to how it’s currently set up. Could you please try the formula below instead? for the field earliest_close_date_c


    rollupConditionalMinDate($revenuelineitems,"date_closed",createList("open_rli_c"),createList("1"))

    As you can see from my local testing, this version takes the open_rli_c checkbox into account and removes the expected close date from the RLI as intended.





    Let me know if this helps.

    Cheers,

    André




  • Hello  ,  Thank you very much for looking into this and finding a solution. I have implemented it, but unfortunately it doesn't work for the 'closed won' sales stage. This date should not be included in the calculation for the earliest possible closing date.   I've performed a quick repair and had the RLIs and opportunities recalculated.  Do you have any other ideas?    


     

    Cheers,
    Steffen

  • Hello  , 

    Are you exposing the checkbox in the list view? If so, can you check whether the checkbox is unchecked when you select "Closed Lost".

    This will help us determine whether the issue is with the checkbox formula or with the earliest_close_date_c formula.

    Could you also please share:


    • The checkbox formula
    • A screenshot of the dropdown values for the sales_stage field

    Thanks!

  • Hi  ,

    The field "arc_open_rli" is updating properly.






    Formula for "arc_open_rli"
    isInList($sales_stage,createList("new","on_hold","Prospecting","in_contact","Proposal / Price Quote","Demo Presentation / Test Shoot","in_process","Negotiation / Review"))


    IMO the Rollup-Formula is not working as intended (only consider open RLIs)

    Formula for "arc_earliest_close_date":
    rollupConditionalMinDate($revenuelineitems,"date_closed",createList("arc_open_rli"),createList("1"))



    The logic seems to be correct, do you have any tips?

    Cheers,
    Steffen

Reply
  • Hi  ,

    The field "arc_open_rli" is updating properly.






    Formula for "arc_open_rli"
    isInList($sales_stage,createList("new","on_hold","Prospecting","in_contact","Proposal / Price Quote","Demo Presentation / Test Shoot","in_process","Negotiation / Review"))


    IMO the Rollup-Formula is not working as intended (only consider open RLIs)

    Formula for "arc_earliest_close_date":
    rollupConditionalMinDate($revenuelineitems,"date_closed",createList("arc_open_rli"),createList("1"))



    The logic seems to be correct, do you have any tips?

    Cheers,
    Steffen

Children