Market Penetration (Business Analyst)

概要

Calculates the market penetration based on customer data within an area.

Learn more about how Market Penetration works

使用法

構文

MarketPenetration_ba (MarketPenetrationLayer, MarketPenetrationAreaID, IN_MP_AREA_DESCR, CustomerLayer, MarketPenetrationTMCType, OutputFeatureClass, {MarketPenetrationUseSelectedMPAreas}, IN_MP_STORE_ID, {UseSelectedCustomers}, {CustomerWeightField}, {MarketPenetrationTMCField}, {InputGeographyLevel}, {MarketPenetrationTMCSummarization}, {IN_CL_STORE_ID}, {ReportTitle}, {MarketPenetrationReportDirectory}, {ReportFormats})
パラメータ説明データ タイプ
MarketPenetrationLayer

The input feature class used for calculating the values for the market penetration.

Feature Layer
MarketPenetrationAreaID

Unique ID field in the market penetration layer.

Field
IN_MP_AREA_DESCR

Field used to describe or name each feature in the market penetration layer.

Field
CustomerLayer

The input feature class (usually a customer layer) that will be used to determine the market penetration.

Feature Layer
MarketPenetrationTMCType

The method that will be used to calculate the market penetration values.

  • In the layer attribute tableCalculates the market penetration based on an existing field in the input layer.
  • Calculate using geography levelCalculates the market penetration based on Business Analyst data.
String
OutputFeatureClass

The feature class that will contain the market penetration features.

Feature Class
MarketPenetrationUseSelectedMPAreas
(オプション)

The features used to calculate the market penetration.

  • TRUEUses selected features to calculate the market penetration.
  • FALSECalculates the market penetration on all features. This is the default.
Boolean
IN_MP_STORE_ID

The unique identifier associated with each store.

Field
UseSelectedCustomers
(オプション)

The features of the customer layer used to calculate the market penetration counts.

  • TRUEUses selected features of the customer layer to calculate the market penetration counts.
  • FALSECalculates the market penetration counts based on all customer points. This is the default.
Boolean
CustomerWeightField
(オプション)

Uses a weight field in the customer layer instead of the customer counts to calculate the market penetration values. For example, you can calculate penetration based on total sales per household for each ZIP Code.

Field
MarketPenetrationTMCField
(オプション)

The attribute field containing the values for the market penetration calculation.

Field
InputGeographyLevel
(オプション)

The geography level that contains the market counts for the market penetration.

Feature Layer
MarketPenetrationTMCSummarization
(オプション)

The attribute that will be used to calculate the total market counts from the standard geography level.

Field
IN_CL_STORE_ID
(オプション)

Unique ID linking the customer file with the store file.

Field
ReportTitle
(オプション)

Title of the report.

String
MarketPenetrationReportDirectory
(オプション)

Report is created in this output folder.

Folder
ReportFormats
[ReportFormat,...,...]
(オプション)

One or more formats to which the report will be output.

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

コード サンプル

MarketPenetration Example (Stand-alone Script)
# Name: MarketPenetration.py
# Description: Calculates how well customers in the San Francisco penetrate the households in that market.
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.AddToolbox("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 Market Penetration tool
MarketPenetration = "C:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/BDS/esri_bg.bds"
MarketId = "ID"
MarketName = "NAME"
CustInput = "C:/temp/sf_cust.shp"
OutPath = "C:/temp/Marketpenetration.shp"
MarketCounts = "TOTHH_CY"
 
# Create a Market Penetration output    
arcpy.MarketPenetration_ba(MarketPenetration, MarketId, MarketName, CustInput, "In the layer attribute table", MarketCounts, "#", "#", OutPath)
 
# Release extension license 
arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010