Available with Business Analyst license.
A territory solution layer is a group that has a minimum of two layers: a base layer (level 0) and a territory layer (level 1). Territories is the default layer name for level 1. The Territories level can be changed to any name that represents your area of business.
This tutorial will walk you through the steps to create a territory solution that contains three levels: the base level, Territories, and Regions.
Create a territory solution
The data used in this tutorial is a layer of ZIP codes for the Los Angeles area with population information—for example, total population and total housing. You can create the data using the Enrich Layer tool by enriching a ZIP code layer with demographic data.
- In the Geoprocessing pane, click the Toolboxes tab.
A list of toolboxes is organized by category.
- Browse to Territory Design Tools > Territory Solution.
- In the Territory Solution toolset, click Create Territory Solution.
The Create Territory Solution tool opens in the Geoprocessing pane. It has several parameters to set. Some are blank; others have default values. Required parameters are marked with a red asterisk.
- Click the Input Features drop-down list and click <feature layer>.
- In the Territory Solution Name box, type Los Angeles Sales Territories.
This will be the name of the group layer in the Contents pane that represents your territory solution.
- Click the ID Field drop-down list and click ID.
- Click the Name Field drop-down list and click Name.
- Use the default values for the Territory Level Name box and the Default Territory Name box.
Default Territory Name is the default name for the individual territories that will be created in the Territories level. The %Number% value represents the integer that will be automatically generated. It can be placed before the territory name—for example, %Number% Territory—or after, which is the default.
- Click Run.
A new group layer with two layers is created.
Note:
You can change the name of the base level by changing the input layer name before creating the solution.
Add level variables
The Add Level Variables geoprocessing tool adds any numeric field to any level except the base layer. The numeric field must already be in the base layer. The variables can be helpful to determine how well each territory is created—for example, how many people or total sales are in each territory.
- Browse to Territory Design Tools > Analysis.
- In the Analysis toolset, click Add Level Variables.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Territories[1].
- Click the Base Level drop-down list and click <Base Layer[0]>.
If you are adding variables for the next level up—for example, Regions—the base level would be Territories[1].
- For variables, you need to determine the fields that represent the variables and how the variables will be calculated—for example, math operation—when it is aggregated to the next level. The type of information will determine the applicable math operation.
- Click the Statistic Field drop-down list and click 2022 Total Population.
- Click the Statistic drop-down list and click Sum.
- Click Run.
Set balance variables
The Set Balance Variables geoprocessing tool allows you to specify the variables you want to use in the balancing process. You do not need to set up all the variables in the level. You only need to set up the variable that you want to use in the balancing process—for example, specify weight. If you have only one variable, set the preference to 100. Variables with a higher preference will have a higher weight during the balancing process.
- Browse to Territory Design Tools > Analysis and click Set Balance Variables.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Territories[1].
- For Balance Variables, set the following:
- Click the Variable drop-down list and click 2022 Total Households.
- In the Preference (%) box, type 100.
- Click Run.
Solve territories
The Solve Territories geoprocessing tool is used to automatically create territories or regions, sales areas, and so on. Territories can either be solved so that each territory is balanced—for example, equal population or equal sales—or be based on the shape of the territories—for example, compact territories or equal shape. If no variables are set, the territories are based on shape.
- On the Territory Design tab, in the Analysis group, click Solve.
The Solve Territories tool appears.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Territories[1].
- In the Number of Territories box, type an integer—for example, 5.
- Click Run.
Review territory balance
Once the territory solution is solved, you can determine how well balanced the territories are.
- In the Contents pane, click Los Angeles Sales Territories.
- On the Territory Design tab, in the Visualize group,
click Create Chart.
The chart is based on the selected level and the variable you have set with the Set Balance Variable geoprocessing tool.
Add a level
Levels can be added to the solution if you want to create a multiple-hierarchy territory solution—for example, territories and regions. The next level, often referred to as a region, is based on the territory level. As a result, the Territories level becomes the base level for Regions. Any variables in the Territories level can be aggregated and rolled up to the Regions level.
- Browse to Territory Design Tools > Territory Solution and click Add Territory Level.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- In the Level Name box, type Regions.
- In the Default Territory Name box, type Region.
- Click Run.
Set the variable for the Regions level
The level variable for the Regions level must be in the Territories level. As a result, the base level will be Territories[1].
- Browse to Territory Design Tools > Analysis and click Add Level Variables.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Regions[2].
- Click the Base Level drop-down list and click Territories[1].
- For Variables, set the following parameters:
- Click the Statistic Field drop-down list and click 2022 Total Population.
- Click the Statistic drop-down list and click Sum.
- Click the add button to add another variable.
- Click the Statistic Field drop-down list and click 2022 Total Households.
- Click the Statistic drop-down list and click Sum.
- Click Run.
Set balance variables for the Regions level
Since there is only one variable on which to base balanced Regions, the preference will be set to 100.
- Browse to Territory Design Tools > Analysis and click Set Balance Variables.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Regions.
- For Balance Variables, do the following:
- Click the Variable drop-down list and click 2022 Total Households.
- In the Preference (%) box, type 100.
- Click Run.
Solve for regions
Running the Solve Territories geoprocessing tool for the Regions level will aggregate the territories from the Territory level—for example, the boundaries for the Regions level will be aligned to the boundaries of the Territories level.
- Browse to Territory Design Tools > Analysis and click Solve Territories.
- Click the Input Territory Solution drop-down list and click Los Angeles Sales Territories.
- Click the Level drop-down list and click Regions.
- In the Number of Territories box, type 3.
- Click Run.
Review the territory solution. You should have three levels: the base level, Territories, and Regions. Turn off some of the other layers so that you can clearly see the Territories and Regions layers. The transparency on the layers may obscure the visibility of the territories or regions. The territories are built up from the base layer. The regions are built up from the territory level. You can re-solve or manually adjust any of the levels. If you re-solve for the Territories level, the Region level will automatically be solved.