US Census Bureau

Guide
Guide to the
1997 Economic Census


1997 Economic Census on American FactFinder®

American Factfinder
American FactFinder (AFF) is a database system that gives you access to the same Economic Census data that are also published in PDF. The advantage with FactFinder is that you can search directly for the data you want, can display data for all available sectors at once, and can download the results for further manipulation. 

Quick Reports Building a Query Creating a Map Limitations to AFF


Building a Query

American Factfinder

Example: Select data for one industry for all counties in a southwestern four-state area, rank the list by sales volume, and export the results for analysis in other software.

image of Data Sets header on AFF main page Click on the Data Sets button in the left column of the FactFinder main page.

1. Select the "Economic Censuses and Surveys" tab.

2. In the right-hand column, near the bottom, click on "List Data Sets - by sector".

Data set selection page

3. In the Select-a-sector box, cursor down to Retail Trade, highlight it, and click the Go button.

selecting a sector

4. Click on "Geographic Area Series: 1997"

changing selections--by industry

5. Data are immediately displayed, albeit only the first 100 rows. Since we want to look only at retail trade totals, put your cursor over "Filter Rows" to reveal the drop-down menu, then click on "by Industry--1997 NAICS".

changing selections--by industry

6. There are several ways to specify the industry. In the "Select a sector" box, pick "All Sectors (2-digit)".

changing selections--by industry

7. Then highlight "44-45: Retail Trade" in the next box and click the "Add" button. Once our category shows up in the bottom box, click the "Show Result" button.

changing selections--by industry

8. That gives us a one-line table, since the default for this data set is to initially show only U.S. level data. We know there is more here, so put your cursor over "Filter Rows" again, and select "by Geography".

selecting a sector

9. In the drop-down menu for "Select a geographic type", click on "...County".

adding the industry to the selected list

10. Select "California" in the "Select a state" menu, and then, when the screen repaints, select "All Counties" and click the "Add" button below the county menu.

completing industry selection
11. Since we want all counties in a four-state area, repeat step 10 for Nevada, Arizona, and New Mexico.    
If you want to select counties in all states, see the shortcut in Saving queries.

12. Since we don't want the U.S. total in our output, select "United States" in the "Current geography selections" box, and then click the "Remove" button. Finally, select "Show result".

changing selections--other restrictions

13. If the data display is too wide for your computer monitor, or if you want to reduce the stacking in text columns, you may specify just the columns you want to see. Put your cursor over "Options' and click on "Select Columns".

Other Restrictions page

14. Click on the check boxes for the NAICS code, both value (i.e., code) and meaning (i.e., text), to remove those items from the display. Also remove the checks from the 5 items from Annual Payroll on down. FIPS State and county codes may be useful in further manipulation of the data, so add check marks in the Value column next to those items. Finally, click the "Update" button at the top.

selecting columns

13. The display is in alphabetic sort by state and county. To sort counties in rank order of sales, put your cursor over "Options" and then click on "Sort Rows".

changing selections to sort

14. Pull down the menu next to "Sort by" and highlight "Sales ($1,000)". Click the "Descending" radio button to its right. Finally, click the "Update" button.

Sort Rows page

15. FactFinder's sorts D's (data withheld to avoid disclosure) as if they were the highest values. Most such values are small, but even if some were high, we wouldn't know where to put them in a ranking. To exclude the suppressed lines we need to "Filter Rows" and select "by Data Value".

Data display:  Change Selections--Other Restrictions

16. Highlight "Sales ($1,000)" and click "Next".

Other Restrictions page

17. With the pull-down menu, specify sales "between" and then enter "1000" (i.e., $1,000,000) as the lower bound and "9999999999" as the upper bound, then click "OK".

Other Restrictions--specifying a range for sales

18. This is the display we were after. To download the data, put your cursor over "Print/Download" and select "Download".

Data display:  prepare to download

19. Under some circumstances, you may want to select "All columns including data flag columns", particularly where you have not excluded alphabetic values from numeric fields and you are going to load the data into a database package where you need to be able to evaluate the flags. In so doing we would lose our column selections, including the state and county codes we added.

Retain the defaults and click "OK".

Download format page

20. Select "Save this file to disk".

Save As... box 1

21. Select an appropriate directory for the resulting file, and type in a file name that will be meaningful to you. If you simply accept FactFinder's default name, each new downloaded file will copy over the last, which is probably not what you want.

Save As... Specifying file name and location

The file you saved will not be pretty, but most spreadsheets or database packages can import it.

Contents of file Top retail counties in CA-NV-AZ-NM.csv

Sector 44: Retail Trade: Geographic Area Series: 1997
"NOTE. Data based on the 1997 Economic Census. For information on confidentiality protection and definitions, see http://factfinder.census.gov/home/en/datanotes/exp_econ97.html.

"FIPS state code","FIPS County Code","Geographic Area Name","Number of establishments","Sales ($1,000)"
"06","037","Los Angeles County, CA","27,577","69,534,164"
"04","013","Maricopa County, AZ","9,214","29,331,041"
"06","059","Orange County, CA","9,084","26,172,823"
"06","073","San Diego County, CA","9,109","22,215,341"
"06","085","Santa Clara County, CA","5,278","16,673,573"

Because numeric values are enclosed in quotes, most software other than Excel will not allow calculations based on those character strings. A disadvantage of using Excel to manipulate output is that that software drops leading zeros in FIPS state, county, or other geographic area codes; for example, state code 06 becomes 6.

Note on Saving queries:

FactFinder not only lets you save output, it allows you to save the query itself, so that you can pick up where you left off in a future session. This is useful if your work must be interrupted and you want to avoid the consequences of FactFinder "timing out".

Simply select "Save Query" from the Print/Download menu, and specify a file name and location you can remember. The extension must be .sql. To load the query later, select "Load Query" from the same menu, locate the directory where you saved the .sql file, select and open it.

save query menu

Saving a query is also useful if you have defined a complex query and want to be able to return to tweak it in the future, as in the specification of a long list of geographic areas. For example, if, in steps 10 and 11 above, we had wanted to specify all counties in all states rather than just four, the repetition of step 10 51 times would be rather tedious. We have actually created that query for you, and you can save counties.sql to your hard drive and try it yourself. The default industry selected is NAICS 44-45 Retail Trade, but this particular query was structured using the Economy-Wide Key Statistics File so that you may load the query and then change to any industry. For counties in rank order, excluding those with a value of "D", try counties-ranked.sql.

 

Ready to try buiding a query yourself? Click on the FactFinder icon. 


Previous topic Next topic: Creating a Map