Customer Demographic Comparison Report (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

Compares the demographic profiles of two customer files and reports on the differences.

用法

语法

CustomerDemographicComparisonReport_ba (CustomerLayer, InputBoundaryLayer, InputGeographyLayer, InputFieldsToProfile, ReportTitle, OutputFolder, UseSelectedCustomers, {UseSecondCustomerLayer}, {SecondCustomerLayer}, {UseSelectedCustomersSelectedLayer}, {ReportStyle}, {ReportFormats})
参数说明数据类型
CustomerLayer

Select the primary customer layer to analyze.

Feature Layer
InputBoundaryLayer

The boundary file that defines the extent of the customers to be analyzed.

Feature Layer
InputGeographyLayer

The input feature layer that contains the data that can be selected to be compared in the report. This will commonly be the Block Groups.

Feature Layer
InputFieldsToProfile
[InputFieldsToProfile,...]

Select from a list of available variables to compare. These variables are typically demographic variables.

Field
ReportTitle

Enter the name of the report.

String
OutputFolder

The file folder output path.

Folder
UseSelectedCustomers

Select this option to compare the first Customer Layer against selected features of that same layer in the report.

  • TRUESelected features of the first Customer Layer are used in the comparison report.
  • FALSESelected features of the first Customer Layer will be not be used in the comparison report. A second customer layer will be selected and used for the comparison. tThis is the default.
Boolean
UseSecondCustomerLayer
(可选)

Select this option to compare the first Customer Layer with this layer in the report.

  • TRUEA second customer layer is used in the comparison report.
  • FALSESelected features of the first Customer Layer will be used in the comparison report. This is the default.
Boolean
SecondCustomerLayer
(可选)

The second customer layer used in the comparison report.

Feature Layer
UseSelectedCustomersSelectedLayer
(可选)

Select this option to compare the first Customer Layer with selected features of the second Customer Layer in the report.

  • TRUESelected features of the second Customer Layer are used in the comparison report against the first Customer Layer.
  • FALSESelected features of the second Customer Layer will be not be used in the comparison report. The entire second customer layer will be used for the comparison. This is the default.
Boolean
ReportStyle
(可选)

The report style for your reports.

  • ScreenThis report format will display a modern look and feel using a more visually pleasing format.
  • PaperThis report format will display a classic look and feel using a more generic style.
String
ReportFormats
(可选)

Select the desired report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSV
  • Stripped XLSX
String

代码实例

CustomerDemographicComparisonReport Example (Stand-alone Script)
# Name: CustomerDemographicComparisonReport.py
# Description: Compares the current year total population and future year total population on selected customers from the San Francisco customer layer against the balance of that customer layer.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
     
# Define input and output parameters for the Customer Demographic Comparison Report tool
  Cust1 = "C:/My Output Data/Projects/Default Project/CustLayers/sf_custs/CustomerLayer1.shp"
  Extent = "C:/My Output Data/Projects/Default Project/TradeAreas/Customer_Derived_TradeAreas.shp"
  Geog = "C:/ArcGIS/Business Analyst/US_2013/Data/BDS/esri_bg.bds"   
  Vars = "TOTPOP_CY;TOTPOP_FY"
  ReportName = "Customer_Demo_Report"
  ReportDir = "C:/My Output Data/Projects/Default Project/Reports/Customer Demographic Comparison Report"
   
	   	   
# Create the Customer Demographic Comparison Report
  arcpy.CustomerDemographicComparisonReport_ba(sCust, false, true, "#", sExtent, sGeog, sVars, sReportName, sReportDir)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014