Select to view content in your preferred language

How do I not specify a CustomerWeightField when scripting CustomerDerivedTA_ba?

2628
0
09-10-2014 07:03 AM
ChristopherPalmer1
Deactivated User

When you run the Business Analysis toolbox wizard for creating a Customer Derived Trade area, you have the option of weighting each customer by count or for specifying a field (such as sales or number of visits) to use as a weight. You select this with radio buttons and if you select "count", then you don't have to specify a field.

However, when scripting this tool, the CustomerWeightField is a required field. Leaving it blank yields a "This field was not found in the customer layer" type error message. In my case, I just want to use the count as the customers I'm analyzing do not have any other valid fields for weighting the results.

Is there a magic value to enter for CustomerWeightField that will force it to use count?

The documentation says:

The field used to calculate the trade areas. This is based on either the number of customers (count) or the calculated weighted value assigned to each customer.

A fallback, I guess, would be to add a weight field and set it to 1, but I don't want to have to rely on modifying the input data.

0 Kudos
0 Replies