Market Penetration (Business Analyst)

Zusammenfassung

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

Learn more about how Market Penetration works

Verwendung

Syntax

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})
ParameterErläuterungDatentyp
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
(optional)

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
(optional)

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
(optional)

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
(optional)

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

Field
InputGeographyLevel
(optional)

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

Feature Layer
MarketPenetrationTMCSummarization
(optional)

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

Field
IN_CL_STORE_ID
(optional)

Unique ID linking the customer file with the store file.

Field
ReportTitle
(optional)

Title of the report.

String
MarketPenetrationReportDirectory
(optional)

Report is created in this output folder.

Folder
ReportFormats
[ReportFormat,...,...]
(optional)

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

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

Codebeispiel

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)

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzinformationen

ArcView: Erfordert Business Analyst
ArcEditor: Erfordert Business Analyst
ArcInfo: Erfordert Business Analyst

10/4/2010