顧客の人口統計比較レポート(Customer Demographic Comparison Report) (Business Analyst)

ライセンス レベル:BasicStandardAdvanced

サマリ

2 つの顧客ファイルの人口統計プロファイルを比較し、相違点についてレポートを作成します。

使用法

構文

CustomerDemographicComparisonReport_ba (CustomerLayer, InputBoundaryLayer, InputGeographyLayer, InputFieldsToProfile, ReportTitle, OutputFolder, UseSelectedCustomers, {UseSecondCustomerLayer}, {SecondCustomerLayer}, {UseSelectedCustomersSelectedLayer}, {ReportStyle}, {ReportFormats})
パラメータ説明データ タイプ
CustomerLayer

分析の対象とする主な顧客レイヤを選択します。

Feature Layer
InputBoundaryLayer

分析する顧客の範囲を定義する境界ファイル。

Feature Layer
InputGeographyLayer

レポートでの比較対象に選択できるデータを含む入力フィーチャ レイヤ。これは、一般的にブロック グループになります。

Feature Layer
InputFieldsToProfile
[InputFieldsToProfile,...]

比較する変数を、利用可能な変数のリストから選択します。通常、これらの変数は人口統計変数です。

Field
ReportTitle

レポートの名前を入力します。

String
OutputFolder

ファイルのフォルダ出力パス。

Folder
UseSelectedCustomers

このオプションを選択すると、レポートで顧客レイヤ 1 を同じレイヤの選択したフィーチャと比較します。

  • TRUE顧客レイヤ 1 の選択したフィーチャが比較レポートに使用されます。
  • FALSE顧客レイヤ 1 の選択したフィーチャは比較レポートに使用されません。顧客レイヤ 2 が比較対象として選択されます。これはデフォルト設定です。
Boolean
UseSecondCustomerLayer
(オプション)

このオプションを選択すると、レポートで顧客レイヤ 1 をこのレイヤと比較します。

  • TRUE顧客レイヤ 2 が比較レポートに使用されます。
  • FALSE顧客レイヤ 1 の選択したフィーチャが比較レポートに使用されます。これはデフォルト設定です。
Boolean
SecondCustomerLayer
(オプション)

比較レポートに使用される 2 番目の顧客レイヤ。

Feature Layer
UseSelectedCustomersSelectedLayer
(オプション)

このオプションを選択すると、レポートで顧客レイヤ 1 を顧客レイヤ 2 の選択したフィーチャと比較します。

  • TRUE顧客レイヤ 2 の選択したフィーチャが顧客レイヤ 1 との比較レポートに使用されます。
  • FALSE顧客レイヤ 2 の選択したフィーチャは比較レポートに使用されません。顧客レイヤ 2 全体が比較対象に使用されます。これはデフォルト設定です。
Boolean
ReportStyle
(オプション)

作成するレポートのレポート スタイル。

  • Screenこのレポート形式を選択すると、画面上で効果的に見える形式を使用した、モダンな形式になります。
  • Paperこのレポート形式は、より一般的なスタイルを採用し、従来の外観を備えています。
String
ReportFormats
(オプション)

目的のレポート出力形式を選択します。

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

コードのサンプル

CustomerDemographicComparisonReport(顧客人口統計比較レポート)の例(スタンドアロン スクリプト)
# 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
5/20/2014