Assign Customers by SOLAP Data (Business Analyst)

概要

This tool is designed to use multiple SALES fields, which are extracted from the OLAP cube to build criteria for assigning customers to the stores.

使用法

構文

AssignCustomersBySOLAP_ba (CustomerLayer, InStoreDimension, InSelectedHierarchyLevels, WayToDefineLinkField, LinkField, {VBSScriptString}, {InAssignToOneStore}, {CreateNewFeatureClass}, {OutputFeatureClass})
パラメータ説明データ タイプ
CustomerLayer

The customer layer used to make the customer assignments to each store.

Feature Layer
InStoreDimension

Select the store dimension in the customer layer. A dimension is an axis of an OLAP cube.

String
InSelectedHierarchyLevels

Select the hierarchy level to process. Hierarchies categorize a dimension into a number of levels. More than one hierarchy can be associated with the same dimension.

String
WayToDefineLinkField

Determines how store is selected.

  • CREATE NEWCreates a new Store ID field.
  • USE EXISTINGUses an existing Store ID field.
String
LinkField

The store ID field that will be used to assign customers.

String
VBSScriptString
(オプション)

Input a custom VBS script assigning customers to stores based on the dimensions in the customer layer.

String
InAssignToOneStore
(オプション)

Allows the user to decide if the assignment of a customer to a store will be influenced by which store he/she shops at most.

  • TrueAssigns the customer to the store he/she shops at most.
  • FalseWill not assign the customer to the store he/she shops at most.
Boolean
CreateNewFeatureClass
(オプション)

Generates a new feature class based on the existing layer or uses the existing layer.

  • TrueCreates a new feature class.
  • FalseDoes not create a new feature class. The original layer will be used.
Boolean
OutputFeatureClass
(オプション)

The feature class that will contain the customer features.

Feature Class

コード サンプル

AssignCustomersBySOLAP Example (Stand-alone Script)
# Name: AssignCustomersBySOLAP.py
# Description: Assigns customers in the San Francisco area to their designated store.
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
 
try:
# Acquire extension license 
arcpy.CheckOutExtension("Business") 
 
#  Define the parameters for the Assign Customers by SOLAP Data tool

CustPath = "C:\My Output Data\Projects\Default Project\CustLayers\OLAP\Customer.shp"
StoreDim = "Product"
Hierarchy = "(All)"
StoreId = "STORE_ID"
 
# Assign Customers by SOLAP Data
arcpy.AssignCustomersBySOLAP_ba(CustPath, StoreDim, Hierarchy, CREATE_NEW, StoreId)
 
# Release extension license 
arcpy.CheckInExtension("Business")
     
except:
    print arcpy.GetMessages(2)

環境

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

関連項目

ライセンス情報

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

10/4/2010