Market Penetration (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

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.
  • Calculate using online dataCalculates the market penetration based on ArcGIS Online 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 (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 Market Penetration tool
  MarketPenetration = "C:/ArcGIS/Business Analyst/US_2013/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)

环境

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

相关主题

许可信息

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