Custom data setup tool

Overview

Custom Data Setup is often used for customer or store layers but can be used for any layer including point and polygon layers. An example of use is setting up your sales data for analysis after joining it to a geography polygon using spatial overlay. You could also use your own demographic data, estimates, projections, business statistics, or consumer expenditure information. Any variable in your boundary layer or your joined data will be available for recalculation as a new variable in this tool.

There are many different ways to generate a BDS layer using the Custom Data Setup wizard. The key to using this tool successfully is having a good understanding of what you expect from the BDS layer. Here are some key questions:

Input Requirements

This tool requires that you have an existing shapefile with all your data associated to it or a base shapefile (such as ZIP Codes) that you can append your custom data to.

Using the wizard

A powerful option in this wizard is the ability to create custom variables from your own data or recalculate any existing variables of Business Analyst. Please note that this is only recommended for variables that are summed up such as Total Population.

Recalculating variables, such as median, require in-depth knowledge of how these demographic formulas are calculated in Business Analyst. All demographic data layers provided with Business Analyst are preset for your use and are read only so the settings are not inadvertently changed. If you try changing the variable settings in these layers without changing the read only setting, you will receive an error identifying a failure to write the metadata (.xml) change. Advanced users who want to change the default settings of these Business Analyst layers can do so.

Steps:
  1. First locate the .xml file on your hard drive for the layer you want to change and copy it so you can return to the default settings. This file, in its original form, is also available on your Business Analyst DVD. On your hard drive, the file will be located where you find ArcGIS in the appropriate demographic data folder (for example, \ ArcGIS\Desktop10.0\Business Analyst\Data\ESRI Data). As an example, the XML file for the Esri BIS Block Group layer is called ebis_bg.sdc.xml.
  2. Right-click this layer, and at the bottom of the General tab, in the Attributes, uncheck the Read only check box and click OK. Then open your map document (*.mxd) and use the Custom Data Setup to change the variable summarization methods in the layer.
  3. Remember that you can return to the original file settings at any time by using the file you saved and rename it with the original file name. Alternatively, you can copy the original file from the Business Analyst DVD to overwrite the same file in the hard drive demographic data folder.
    It is recommended to save your BDS layer in the same directory as any custom database you add. This is critical because this operation doesn't permanently join your custom data to the boundary layer. Moving these files will break the link which makes the file unavailable in Business Analyst.
  4. Click the Create new Variable button.
  5. Click to change the Apportionment settings.

    This determines how a variable is apportioned to a portion of geography. When an analysis cuts across a geography, the analysis includes only the value of the variable that falls inside the analysis area. Depending on the variable, you have the choice of apportioning by area or one of the three primary demographics at the block point level (Population, Households, or Housing Units). For any standard Esri variable selected, the Apportionment Method is automatically selected.

    When selecting your own data, be sure to change the Apportionment Method to reflect the source of your data. For example, if your variable was Sales by Zip Code and was based on household data, you would want to select Households 2010.

    Available Variables displays all available variables including custom variables.

    Custom Data Setup wizard

    Advanced users can access additional variables options by right-clicking in the right box and selecting Advanced Mode.

    Custom Data Setup options

These are three advanced categories:

  • Category: Text description that determines how the variables are displayed in variable lists in the Business Analyst wizards.
  • Weight: Weight the variable based on another variable; that is, in the block group layer, you could choose to weight consumer expenditures on furniture by Total Households. This provides you with the amount spent per household on furniture in a trade area.
  • Aggregation method: Combines variable values. The options are to sum the value; average the values; use the min value; use the max value; or calculate the median, standard deviation, or variance.
Steps:
  1. Create a new calculated field.

    For example, you can create a population density field by taking the total population and dividing it by area. Be sure that all variables needed to calculate the new field are in the selected fields list in the previous dialog box. When creating custom formulas in this wizard, you must use the VBScript functions.

    The create new variable options allow you to create, edit and import custom variables using the respective buttons in the Create New Variable dialog box below.

    Create new calculated field
  2. Create your new calculations using the standard Field calculator operations or using VBScripts.
    Edit Calculated Field dialog box
  3. Below are two calculated variables samples for creating a BDS layer:

    • The first example simply adds two population cohorts together:
      ReturnValue ( GetValue("POPU5_CY") + GetValue("POP5_CY") )
    • The second example is a bit more complicated and calculates a penetration rate. This is a simple function that protects against a division by zero error:
      Dim hh
      hh = GetValue("TOTHH_CY")
      Dim sales
      sales = GetValue("SALES")
      if (hh > 0) then
      ReturnValue ( 100 * (sales / hh) )
      else
      ReturnValue(0)
      end if

5/15/2012