Rollup of RLI likely field (sales stage = closed won)

Hi

I am trying to work out how to setup a field in the accounts module that calculates the "likely" amount  all associated RLIs with a sales stage of "closed won"

So far I have got the below but I think this calculates the total value of all RLIS regardless of status. If I remove the false it gives me an error message.

"rollupConditionalSum($revenuelineitems,"likely_case","sales_stage",forecastSalesStages(true,false))"

any help on where I'm going wrong would be appreciated.

Many Thanks

Parents Reply
  • Hi ,

    You cannot configure a conditional rollup calculation on multiple fields and you also cannot do conditional rollups based on date ranges. 

    What I would recommend instead is that you create a custom text field on the RLI module that does the following:

    1. Checks if the status is 'Closed Won'
    2. If status is valid, then it stores the year from the record's date created

    The formula would look like this:

    ifElse(equal($sales_stage,"Closed Won"),year(date(toString($date_entered))),"")

    Once you create this field & formula, you would need to trigger a 'recalculate values' action from the RLI list view for any records created this year so that the proper value is stored.

    Then, the rollupConditionalSum formula on the Accounts module would change from looking at the Sales Stage field to your new custom field and the createList formula inside that would be set to whatever year(s) you want to rollup:

    rollupConditionalSum($revenuelineitems,"likely_case","custom_field_you_created_c",createList("2022"))

Children