Solve a spatial problem
In this exercise, you are a business analyst for a consortium of colleges that wants to run a marketing campaign in states with high-value colleges. It's up to you to find states with colleges that have a good return on investment (ROI) for students. You'll use ArcGIS Insights to analyze United States Department of Education College Scorecard data in the form of a feature layer to find relationships between the cost of college and earnings by graduates. In 45 minutes or less, you will do the following:
- Create interactive maps, charts, and tables.
- Apply an advanced filter to your data.
- Use spatial and nonspatial analysis techniques to solve a problem.
Note:To complete this exercise, your account must have the following specifications:
- Creator, GIS Professional, or Insights Analyst user type
- Publisher or Administrator role, or equivalent custom role
- Insights license (not required with an Insights Analyst user type)
For more information, see Administer Insights in ArcGIS Enterprise.
Add data to your organization
The data for this analysis has been provided publicly on the ArcGIS website, where it can be downloaded to your machine. If you are not able to access the Internet from your machine, you can download the data on a different machine and then transfer it to the machine that is running Insights. Follow these steps to access and load the data into Insights:
Note:If you completed the Create your first workbook lesson, you can reopen your workbook, drag the CollegeScorecard.Table1 dataset to the New page tab
, and create a map on the new page, then skip to the next section.
- Follow the link to the CollegeScorecard item.
- Click the Download button to download the item to your machine.
- Unzip the folder and save the Microsoft Excel file on your computer in a location that you can find easily.
- Sign in to your organization.
- Sign in to your Portal for ArcGIS account using your organization's URL (for example, http://myserver.mycompany.com/portal/home). If you do not know the URL for your organization, contact your administrator.
- Click the App launcher button to display your app menu.

- Click Insights.
- Enter your username and password again, if prompted.
- Click the Workbooks tab
. - On the Workbooks page, click New workbook.
- In the Add to page window, click Upload file.
- Click Browse my computer and open the Excel file, or drag the file to the Add to page window. Click Add.
- Click Dataset options
for the Excel file and choose Enable Location from the menu. - Click the Repeat identical features check box.
Checking Repeat identical features means that all of the colleges in the dataset will be added to the map individually, even if there are repeat features. It is important to add the features individually in this lesson so that the analysis tools can be run from the map and will include all of the features, rather than counts of features. For more information, see Enable location.
- Click Run.
- Expand the dataset in the data pane.

- Drag the dataset to your page and drop it on the Map drop zone to create a map of United States colleges.

-
Click Untitled Workbook and replace it with a unique and useful title, such as US Colleges - Your Name. Including your name in the title will make your workbook easier to find if you share your work. Click the Save button
on the workbook toolbar.
Tip:If you prefer to use buttons, you can select a field from the dataset and click the Map button
above the data pane.
If your map is styled by Count of CollegeScorecard.Table1, then you didn't check Repeat identical features when location was enabled. Click the Undo button
until the Coordinates field is removed from the dataset then enable location again, ensuring Repeat identical features is checked.
Calculate return on investment
The return on investment for colleges is calculated using cost and earnings after graduation. In this section, you will begin your analysis by calculating ROI for all United States colleges.
- Click the Action button
on the map to open the Analytics pane. - Click the Find answers tab and click How is it related? to display spatial and nonspatial analysis capabilities.
- Open Calculate Ratio. For the numerator, choose EARNINGS, and for the denominator, choose COST. Name the field ROI and click Run.
- Close the data table.
- Save your workbook.
Find states with above average ROI
Now that your dataset has a field for return on investment, you can start to find more information about which areas have a high ROI. In this section, you will filter your data and determine which states have the highest ROI.
- On the map card, click the Card filter button
. The New Filter pane appears. - Click Advanced to open the Expression Filter pane.
- Enter the expression ROI>AVG(ROI) to query only the colleges with a greater than average return on investment. Click Apply.
- Close the Card Filters pane.
- Hover over the result dataset and click the Rename dataset button
. - Rename the dataset Colleges_ROI and press Enter on the keyboard to set the changes.
- Expand Colleges_ROI to display the fields. Select STATE and TYPE, drag them to the Chart drop zone, and drop them on Stacked Bar Chart.

- Drag the bottom edge of the chart card down to make it easier to see all of the states.
- Click the Sort button
on the card toolbar and choose Sort Descending
. - Click the More button
on the chart toolbar, then Edit Labels
. Click the axis to rename it. Name the x-axis (horizontal) Count of colleges with above average ROI and rename the y-axis (vertical) State and college type.
Tip:Using a card filter instead of a dataset filter will allow you to work with both the filtered and unfiltered data throughout your analysis.
is added to the data pane with the same name as your original dataset. You can rename the result to distinguish it from the original.Analyze the ROI spatially
- Click the Add button
to open the Add to page pane. - Click Living Atlas to display the available Living Atlas layers.
- Select the USA States (Generalized) dataset. Use the Search bar if necessary to reduce the number of datasets being displayed. Click Add.
- On the map of U.S. states, click More
then Delete
. - Drag the state dataset from the data pane onto the map of Colleges_ROI and drop it on Spatial aggregation.
- Click Run.

- Drag the original College_Scorecard.Table1 dataset to the map and drop it in the Spatial aggregation drop zone. Click Run to calculate the count of colleges within each state.
- Expand the Spatial Aggregation 2 dataset. There are two count fields: Count of Colleges_ROI, which includes the count of colleges with above average ROI in each state, and Count of CollegeScorecard.Table1, which includes the total count of colleges in each state.
- Click the Rename dataset button
next to Spatial Aggregation 2 and name the dataset College counts. - Open the Dataset options menu
and click View Data Table. - Click the + Field button to add a new field to the data table.
- Click New Field and update the field name to PercAboveAvgROI (Percent above average ROI).
- Click the Enter calculate function box and enter the equation (Count of Colleges_ROI/Count of CollegeScorecard.Table1)*100. Click Run and close the data table.
- Click the number field button
next to the PercAboveAvgROI field and choose Rate/Ratio to change the field type. - Drag PercAboveAvgROI to the map to update the style.

- Resize the map so that it fits onto your page and all of the states are visible.
- Save your workbook.
Tip:The count is calculated by default.
A second Spatial Aggregation dataset is added to the data pane and the map updates to show the new Count of CollegeScorecard.Table1 field.
Change the classification on your map
Now that you have your map, you can start making conclusions about return on investment in different states. However, it's important to remember that your conclusions are going to be affected by the classification on the map. Therefore, you should check what classification is being used before you finish your analysis.
- Open the Layer options pane by expanding the layer name on the map.
- Click the Options tab
. - Click Natural Breaks to expand the Classification type menu.
- In the Classification type menu, click Equal Interval.
- Change the number of classes to 8.
- Click the first slider and change the value from 16 to 10. Press Enter.
- Change the other dividers to 20, 30, 40, 50, 60, and 70.

- Click the Legend tab
to see the values. Click values in the legend to select the features in each class. - Save your workbook.
There are six classification options available: Natural Breaks, Equal Interval, Quantile, Standard Deviation, Unclassed, and Manual. An unclassed classification gives the map a continuous color ramp rather than discrete classes. In this case, it is probably best to have discrete classes so that the states can be analyzed in groups. An equal interval classification is good for data with a known range, such as percentages, because it allows you to group your data into set ranges (for example, a dataset with percentages could be divided into five intervals with ranges of 20 percent). A quantile classification divides the data into groups with an equal number of features, which makes it good for data that you want to display by rank. In this case, a ranked classification could be useful. A standard deviation classification is useful when you want to focus on the distance from the mean. While knowing the average could be helpful in this scenario, it doesn't need to be the focus of your analysis. Finally, a manual classification can be used to create a custom classification scheme. Manually changing the classification can be useful for data with specific values that need to be taken into account or for standardizing the classification between multiple maps.
On the surface, quantile and equal interval seem like the best options. However, this dataset has 51 features (50 states plus the District of Columbia), which makes it difficult to divide the data equally into a quantile classification. It may be best to try equal interval.
Tip:Change the Display field setting
for the Location field so that the state names will be displayed when you hover over them.
Next steps
Now that you have finished your analysis, it is time to share your results with your colleagues. Use the quick exercise Share your analysis to continue the college scorecard scenario and share the results as a model and an interactive page.