Loading
Salesforce now sends email only from verified domains. Read More
Sales Performance Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Team Attainment Rule for Managers

          Create a Team Attainment Rule for Managers

          Show a team’s attainment to their manager. Empower managers to proactively drive their team’s sales performance and influence their own commissions.

          Required Editions

          Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions
          Available for an additional cost in: Professional Edition with Web Services API Enabled
          User Permissions Needed
          To create a team attainment rule:

          A Spiff user role with this permission turned on.

          Designer Configuration: Manage

          1. Create data filters.
            1. Create a MyTeamsUsers filter that returns the reps in a team.
              contains(TeamAttainmentForManagers_Worksheet!MyTeamsIds, Id)

              The MyTeamsIds value is based on a worksheet calculation, =transform_list(RepsInTeam, Id).

              The RepsInTeam value is based on a worksheet calculation, =users_in_team(single(direct_manager_of)).

              For Salesforce environments, the ID corresponds to the user ID. ‌For other configurations, use the appropriate ID field for your User object.

              Manager's team data filter
            2. Create an AllUsers filter that returns all users and retrieves the ID for the rep on the manager's team.
              You can use any field on the User object for this filter, such as the Spiff_User__c field.
              Spiff_User__c = true
            3. Create a ClosedInQtr_AllReps filter that returns deal attainment data for all users during the period.
              Remember to exclude any ownership within your data filter.
              InQuarter AND ClosedWon
          2. Create these datasheet calculations by using the MyTeamsUsers data filter on the User object.
            1. Create a UserSum calculation that sums the total deals for the rep in the manager's team for the applicable period.
              The let() function returns the user ID of the rep and sums the deals closed in quarter by using the relevant amount field.
              =let(userID, Id, sum(filter(ClosedInQtr_AllReps, OwnerId = userId), Amount_USD))
            2. Create a UserQuarterlyQuota calculation that returns the quota value for the rep on the manager's team.

              The first calculation retrieves the user ID of the rep.

              =sum(quotas(ThisUser, "QuarterlyQuota"), amount)

              The second calculation uses the ID to return the quota value.

              =let(ThisUserId, Id, filter(AllUsers, Id = ThisUserId))
            3. Create a TeamMemberAttainment calculation that returns the team member’s attainment by dividing UserSum by UserQuarterlyQuota.
              =if(UserSum = 0, 0, UserSum / UserQuarterlyQuota)
          3. Create worksheet calculations that are appropriate for your needs. Consider these examples.
            • A IsRepActiveInTeam calculation that determines whether a rep is active in the team.
              =in_team?(choose(1, direct_manager_of), id, statement_period.edn_date)
            • A HasRepAchievedTarget calculation that checks whether the team member's attainment is greater than or equal to 100%.
              =MyTeamUsers_TeamAtainmentForManagers!TeamMemberAttainment >= 100%
            • The TeamAttainment calculation displays the percentage of reps on the team achieving their target.
              =if(RepsAchievingTarget = 0, 0, RepsAchievingTarget / TotalRepsInTeam_EndofQtr)
          4. Create a What-If? payout rule that uses any calculation from the data filter you created for the MyTeamsUser filter, and add the rule to a plan.
          5. Showcase the calculations by adding them to a statement and updating all display names and formats.
            Consider adding emoji to the statement for added visual appeal.
          Statement showing team attainment
           
          Loading
          Salesforce Help | Article