获得 Business Analyst 许可后可用。
描述
Tool shows the tapestry segments and summary groups that most accurately reflect customer records and compares customer profiles to the tapestry profile of your base geography based on households or adult population and volume (sales).
Learn more about how Profile Volume Segmentation Report works
使用方法
Usually, the target profile is based on customer records.
If you want to use volumetric data instead of the distribution of customers in each segment, you must create the profile with volume information.
The base segmentation profile can be generated using the Create Profile by Area Summation tool.
Customers in the target profile should be wholly contained within the base profile.
If you are unclear what to use as the base profile, you can use the whole United States.
The segmentation base can be generated using total adult population or total households.
Total adult population includes individuals 18 years old or older.
By default, percent penetration is calculated by dividing the target total for each segment by the base total and multiplying by 100. You can change the base multiplier to 1,000 by adjusting this value in on the Analysis tab by clicking Business Analyst > Preferences.
语法
arcpy.ba.TapestryProfileVolume(BaseProfile, TargetProfile, VolumeType, {SelectedBaseProfileResult}, {SelectedTargetProfileResult}, {SortEnable}, {FieldsSort}, {SortWay}, {TitleParameterName}, OutputDirectoryParameterName, {ReportFormats})
参数 | 说明 | 数据类型 |
BaseProfile | The base profile used in the calculation of the index and percent penetration. This profile is usually based on the geographic extent of your customers. | Folder |
TargetProfile | The target profile that will be compared to the base profile. Typically, this is based on your customers and is generated using the Segmentation Profile tools. | Folder |
VolumeType | Will modify explanation text and formatting of the volume information of the report to reflect your selection.
| String |
SelectedBaseProfileResult (可选) | Enter a new name of the base profile that will appear on your report. | String |
SelectedTargetProfileResult (可选) | Enter a new name of the target profile that will appear on your report. | String |
SortEnable (可选) | Provides options to sort the Customer Tapestry Profile Segmentation report.
| Boolean |
FieldsSort (可选) | Select the method that will be used to sort the volumetric data in the Customer Tapestry Profile Report.
| String |
SortWay (可选) | The sorting order of the sort field.
| String |
TitleParameterName (可选) | Title for the report. | String |
OutputDirectoryParameterName | The output directory that will contain the report. | Folder |
ReportFormats [ReportFormats,...] (可选) | Select the desired report output format.
| String |
代码示例
TapestryProfileVolume example (stand-alone script)
# Name: TapestryProfileVolume.py
# Description: Creates a segmentation report on selected profiles.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
try:
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Define input and output parameters for the Customer Tapestry Profile Segmentation Report tool
BaseSeg = "C:/temp/Profile/Profile.xml"
TargetSeg = "C:/temp/Profile1/Profile.xml"
OutPath = "C:/temp/Output_Segmentation"
# Create Customer Tapestry Profile Segmentation Report
arcpy.TapestryProfileVolume_ba(BaseSeg, TargetSeg, "sales dollars", OutPath)
# Release extension license
arcpy.CheckInExtension("Business")
环境
此工具不使用任何地理处理环境。
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst