In order to create a conditional roll up summary field in Salesforce, select “Only records meeting certain criteria should be included in the calculation” option as pointed in the below screenshot.

In order to create a conditional roll up summary field in Salesforce, select “Only records meeting certain criteria should be included in the calculation” option as pointed in the below screenshot.