ArcGIS Business Analyst

Creating custom variables in ArcGIS Business Analyst Web App

ArcGIS Business Analyst includes access to over 15,000 variables – that’s an incredible amount of data at your fingertips! But do you ever find yourself scrolling though the data browser and not finding that one specific variable you need?  Did you know that you can easily create your own custom variables to use in mapping, analysis, and reports?  Or maybe you already know about the Create Custom Variable tool but feel a bit unsure about how to go about creating your own variables.  If so, this article is written just for you.  We’ll provide instructions and some of our insider tips and tricks, so you feel comfortable in creating custom variables.

Business Analyst makes it simple to create some of the most popular custom variables for age, household income, home value, housing units, and race.  The application also has a straightforward process to guide you through creating more advanced custom variables using mathematical operators and easy ways to add numbers and calculate sums and averages.

Create custom variable panel

Creating a household income variable

We will start by creating a simple household income variable.  Household income variables are some of the most popular created custom variables.  For the U.S., the Household Income category contains Esri household income variables divided into nine predefined income ranges, beginning at income less than $15,000 and ranging to $200,000 or greater. However, those predefined ranges may not be exactly what you need for your analysis.  Perhaps your targeted audience’s household income range is $75K and greater, but that specific range variable is not listed in the category.  No worries, you can easily create the variable using the Create a custom variable option.  Let’s walk through the process using the data browser in ArcGIS Business Analyst Web App.

The data browser is an in-app interface that categorizes and displays all the data variables available in Business Analyst and provides the option to create custom variables.  You can access the data browser though many of the Business Analyst workflows, such as Color-Coded Maps, Smart Map Search, Suitability Analysis, Comparison Reports and Build Reports.  For this example, we will create a comparison report.

To begin, click the Reports tab and click Comparison Reports.  The workflow opens to the last used report. You will need to add at least one site to make the workflow active. If no sites are displayed, click the Add Sites button to add a site. Click Add variables to open the data browser.

Add variables to comparison reports

 

To create the custom household income variable in the Comparison Reports workflow, do the following:

  1. Click Create a custom variable to open the Create Custom Variable
    Click Create a Custom Variable
  2. Click Household income variable.
  3. Leave the default year selection.
  4. Set the household income range by either moving the slider or entering $75,000 for the minimum value in the text box.
    Set the household range
  5. Once you have made your selections, click Add.
  6. Leave the default variable name, Household Incomes $75,000+ and click Save.
    Default variable name
  7. The custom variable is added to the workflow and saved for future use. Click the Switch rows and columns option in the upper left of the table to view variables in rows as shown in this image.
    Custom variable added to the workflow.

Tip: You can also create custom variables for age by clicking the Age variables tab or for home value, housing units and race by clicking on Other popular variables.  The Create Custom Variable workflow walks you through the process of creating these variables.
Home value range

Creating advanced custom variables

Now that you know how to create popular custom variables, we will take a deeper dive into creating advanced custom variables. You can build advanced custom variables from any of the data categories in the data browser and use mathematical operators to combine them. A variable can be displayed as a count, a percentage, an average, or an index value.

In this advanced custom variable example, we will create an index variable for household incomes greater than $75K compared to the household income for the United States. The Index compares the variable value for a selected area to the variable value for the country.

The following instructions will walk you through the steps. You can also watch this helpful video that guides you through creating custom variables.

To create the household income index variable, we first need the percentage of households with income greater than $75K for the whole USA. We’ll use this information in the custom calculation. To find this value, we can edit the custom variable we just created, “Household Incomes $75,000+”.

You can access the custom saved household income variable you just created in the data browser by clicking My data > Saved Variables.

  1. In your comparison report, click Add Variable.
  2. When the data browser opens, click Saved Variables.
    Click Saved Variables
  3. In the Refine results panel, under My Data, click on Custom Variables “only” to show only the custom variables you have created.
    Refine results
  4. Click on the arrow next to Custom Variables to expand the list and display all the variables. The most recent custom variable will be shown at the top of the variable list.
  5. Click Edit this variable (the pencil icon).
    Edit variable
  6. The Create Custom Variable window opens, where the variable can be edited to display as a percent instead of the number value.
  7. Under Assemble your custom variable, each variable used to calculate your custom variable is displayed. Click the % button for each variable to change the calculation method from count to percentage. Click Add.
    Custom variable assembly.
  8. Enter a name for the new variable, “Household Incomes $75,000 + Percent”.
  9. Enter “2” for the number of decimal places to display and click Save.
    Save custom variable.
  10. The Selected variables pane opens with the new variable already selected. Click Apply to add the new custom percentage variable to the report.
    Selected variables
  11. To create the household income index variable, we’ll use the new percentage variable to determine the percentage of households with income greater than $75K for the whole country. This is easily accomplished in the comparison reports workflow.
  12. In the comparison report, click Add sites > Neighboring geographies. Select the USA checkbox and click Apply.
    Click Neighboring geographies
  13. The USA is added in the comparison report. As you can see, 44.35% of households in the USA have income $75,000 or higher. Write down the number down “0.4435” because it is needed to create the index variable.
    Comparing site with USA
  14. Now that we have this important information, we can create the household income index variable.
  15. In the comparison report, click Add variables.
  16. Click Create a custom variable.
  17. Click Advanced custom variable and then click on the Income category.
    Click Advanced custom variable
  18. Click Household Income and select all the current year variables $75 K and greater by clicking the checkbox for each.
  19. Click Add Selected Variables.
    Click Add Selected Variables
  20. Click Add as Separate Variables.
    Click Add as Separate Variables
  21. Click the “%” button for each variable.
  22. Click the “(” opened parenthesis to add to the expression and move it to the beginning of the variable calculation. Do this by dragging it to the front of the expression.
  23. Click the “)” closed parenthesis. By default, it should be placed at the end of the expression.
  24. Click the “/” Divide symbol.
  25. Click Add Number and enter “0.4435” in the number box. (The number from step 13.)
  26. Your expression should look as shown in the image below.
    Expression preview
  27. Click Add.
  28. Enter a custom variable name, Household Income Greater than 75K Index.
  29. Leave the default “0” decimal places and click Save.
    Save your custom variable.
  30. Click Apply to add the variable to the comparison report.

Here you can see the Household Income Greater than $75K Index custom variable. This is expressed as an index of value where 100 represents the average for the United States. The index of value compares the variable value for a specific area to the variable value for the country. In this example, the index is calculated by taking the average household income in a 1-mile ring around my site, Redlands, divided by the average of the base, whereas the base in this case is the USA.
Set the household range
When creating advanced custom variables, it’s helpful to understand the variable calculations. From the ArcGIS Business Analyst help documentation, learn more about variable calculations.

Summary

In this article, we first created a count variable for household incomes above $75K, and then edited the count variable to create a percent variable and used that to find the household income percent for the USA so we could lastly create the index of percent value.

These examples, tips, and video should provide you with a better understanding of creating custom variables, so you can create your own simple and advanced custom variables.  Please give us your feedback, because we would love to hear what other types of custom variables you would like to create.

About the authors

Donna is a Product Engineer on the Business Analyst Team. She is passionate about helping users learn how to apply the application to solve problems and make smarter decisions.

Connect:

Article Discussion:

0 Comments
Inline Feedbacks
View all comments

Next Article

Migrate to the new World Population Estimate Maps

Read this article