Customer Geographic Summary Report (Business Analyst)
Summary
Lists standard geographic distributions for your customer layer.
Usage
-
This report uses a point-in-polygon procedure to assign customers to a given geography and outputs them in a report format.
-
Use this report to outline the frequency and distribution of customer points for the base set of Business Analyst data layers. For example, you may want to know how many customers are in the State of California, in the county of San Diego, and in ZIP Code 92037.
-
Counts of customers will be gathered for the top 20 ranks:
- States
- ZIP Codes
- Counties
- Core-Based Statistical Areas (CBSA), formerly Metropolitan Statistical Areas
-
The customer layer must be a point feature class.
-
In ArcMap, reports will only be created for customer features that are within the active study area or analysis extent.
-
Customer points that do not fall inside the base Business Analyst layers will not be included in the report. For example, if a customer point is not within the United States state boundaries, it will not be counted in the report statistics.
Syntax
Parameter | Explanation | Data Type |
CustomerLayer |
The input feature class containing the points for the customer distribution. In most cases, this will be a Business Analyst customer layer. | Input |
ReportFile |
Outputs the report to a directory for retrieval later. | File |
UseSelectedFeatures (Optional) |
Generates a report on selected features of the customer layer.
| Boolean |
ReportTitle |
Name and title for the report. | String |
ReportFormats (Optional) |
Select the desired report output format.
| String |
Code Sample
# Name: GeographicSummaryReport.py # Description: Summarizes the geographic features associated with a sample customer dataset in San Francisco. # Author: ESRI # Import system modules import arcview import arcpy arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx") try: # Acquire extension license arcpy.CheckOutExtension("Business") # Define input and output parameters for the Customer Geographic Summary Report tool Cust = "C:/temp/sf_cust.shp" OutputFile = "C:/temp/CustGeoRpt.rpt" Title = "Customer Summary Report" # Create customer geographic summary reports arcpy.GeographicCustomerSummaryReport_ba(Cust, OutputFile, "false", Title) # Release extension license arcpy.CheckInExtension("Business") except: print arcpy.GetMessages(2)