Skip to main content

Create a Roll-Up Summary Field

Create a Summary Field

Next, you create a field on the Travel Approval object that automatically sums up the total amount of expenses from the related Expense Items. Salesforce has a field called a roll-up summary field that provides this functionality.

  1. From the Travel Approval object, select Fields & Relationships.
  2. Click New.
  3. Select the Roll-Up Summary data type.
  4. Click Next.
  5. Enter the following values for the field details:
    1. Field Label: Total Expenses
    2. Field Name: Total_Expenses (this automatically gets set when you tab out of the Field Label field)
      Step 2 of New Custom Field for the Travel Approval object
  1. Click Next.
  2. Configure the roll-up calculation.
    1. Summarized Object: Expense Items
    2. Roll-Up Type: SUM
    3. Field to Aggregate: Amount
    4. Filter Criteria: All records should be included in the calculation
      Step 3 of the New Custom Field for the Travel Approval object
  1. Click Next, Next, Save.

Nice job! You now have a new field on your Travel Approval object that automatically sums up your expenses. It has also been automatically added to your page layout. On to the next step, where you learn about formula fields.

계속해서 무료로 학습하세요!
계속 진행하려면 계정을 가입하세요.
얻을 수 있는 이점
  • 커리어 목표에 대한 개인화된 권장 사항 제공받기
  • 실습 과제 및 퀴즈를 통해 스킬 연습
  • 진행 상황을 추적하고 고용주에게 공유
  • 멘토십과 커리어 기회에 연결