Segment Queries
The following categories are available at the Segment Query step of the Create Segment wizard, and control the customers to select for the Stratified or Unstratified Segment.
Customer Demographics
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment
Customer ID
This query returns active and valid Customers whose Customer ID matches your input.
Figure 15-1 Customer ID

Customer City
This query returns active and valid Customers whose primary and active address is in the city you have specified.
Figure 15-2 Customer City

Customer State
This query returns active and valid Customers whose primary and active address is in the state you have specified.
Figure 15-3 Customer State

Postal Code
This query returns active and valid Customers whose primary and active address is in the postal code (zip code) you have specified. Use only five digits for US zip codes.
Figure 15-4 Postal Code

Postal Code Vicinity
This query returns active and valid Customers whose addresses are within a radius of a specified number of miles of a specified location.
Figure 15-5 Postal Code Vicinity

Customer Birthdate
This query returns Customers whose birthday matches the parameters you input. The date you input must be a valid date ([default] = current date).
Figure 15-6 Customer Birthdate

Customer Birth Month
This query returns active and valid Customers whose birth month matches your selection ([default] = “January”).
Figure 15-7 Customer Birth Month

Home Location
This query returns active and valid Customers whose Home Location matches your entry. The Home Location you enter must be a valid location for your organization.
Figure 15-8 Home Store

Signup Location
This query returns all Customers whose signup location matches the one you specify. The location you enter must be a valid location for your organization.
Figure 15-9 Signup Location

Customer Last Update Date
This query returns active and valid Customers whose last update date matches what you have entered. The date must be a valid date.
Figure 15-10 Customer Last Update Date

Signup Date
This query returns active and valid Customers whose signup date matches what you have entered. The date must be a valid date.
Figure 15-11 Signup Date

Create Date
This query returns active and valid Customers whose create date matches what you have entered. The date must be a valid date.
Figure 15-12 Create Date

Active Customers
This query returns all active and valid Customers. This query has no parameters to configure
Figure 15-13 Active Customers

Customer Contact
This section
Mail Contact Permission
This query returns all Customers who have given permission to be contacted by mail.
Figure 15-14 Mail Contact Permission

Address Type Code
This query returns all Customers whose address type matches what you entered.
Figure 15-15 Address Type Code

Phone Contact Permission
This query returns all Customers who have given permission to be contacted by telephone.
Figure 15-16 Phone Contact Permission

Phone Type
This query returns all Customers whose phone type matches your selection.
Figure 15-17 Phone Type

Email Contact Permission
This query returns all Customers who have given permission to be contacted by email.
Figure 15-18 Email Contact Permission

Valid Email Addresses
This query returns all Customers whose email address has been validated or not validated.
Figure 15-19 Valid Email Addresses

Email Address Type
This query returns all Customers whose email type matches your selection.
Figure 15-20 Email Address Type

Customer Attributes
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment.
String Attribute Values
This query returns all Customers with a string attribute whose value matches your entry.
Figure 15-21 String Attribute Values

Logical Attribute Values
This query returns all Customers with a logical attribute that has been assigned the selected value.
Figure 15-22 Logical Attribute Values

Date Attribute Values
This query returns all Customers with a date attribute that has been assigned a date between the entered values.
Figure 15-23 Date Attribute Values

Purchase Activity
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment.
Lifetime Sales
This query returns all Customers whose lifetime sales amount matches what you have entered.
Figure 15-24 Lifetime Sales

Lifetime Returns
This query returns all Customers whose lifetime returns amount matches what you have entered.
Figure 15-25 Lifetime Returns

Year-To-Date Sales
This query returns all Customers whose year-to-date sales amount matches what you have entered.
Figure 15-26 Year-to-Date Sales

Year-To-Date Returns
This query returns all Customers whose year-to-date returns amount matches what you have entered.
Figure 15-27 Year-to-Date Returns

Customer First Purchase Date
This query returns active and valid Customers whose first use date matches the date criteria entered. The date must be a valid date.
Figure 15-28 Customer first Purchase Date

Customer Last Purchase Date
This query returns active and valid Customers whose last use date matches the date criteria entered. The date must be a valid date.
Figure 15-29 Customer Last Purchase Date

Number of Visits Between Dates
This query returns all active Customers who made x visits between the dates specified. Both dates must be filled in and valid.
Figure 15-30 Number of Visits Between Dates

Value of Spending in the Last X Days
This query returns all the Customers who have spent a designated amount or more within the last X number of days.
Figure 15-31 Value of Spending in last X Days

Value of Spending Between Dates
This query returns all the Customers who have spent a designated amount or more within a designated range of dates.
Figure 15-32 Value of Spending Between Dates

Fixed Period Activity
This query returns active and valid Customers who have completed transactions between the business dates you have specified. Both dates must be filled in and valid.
Figure 15-33 Fixed Period Activity

Purchase in the Last X Months
This query returns all Customers who have made a purchase within the number of months you specify.
Figure 15-34 Purchase in the Last X Months

Purchase Within X Days
This query returns all Customers who have made a purchase within the number of days you specify.
Figure 15-35 Purchase Within X Days

Department in X Months
This query returns all Customers who have made a purchase from Department X within Y months.
Figure 15-36 Department in X Months

Class in X Months
This query returns all Customers who have purchased an item in the class you specified in the last X months.
Figure 15-37 Class in X Months

Returns in X Days
This query returns active and valid Customers who have made one or more returns in the number of days you have specified.
Figure 15-38 Returns in X Days

Transactions from Location Group in Last X Days
This query returns the list of Customers who have performed a transaction at a location within a configured location group in the last X days.
Figure 15-39 Transactions from Location Group in Last X Days

Purchased Item from Location Group in Last X Days
This query returns Customers who have purchased one or more items from a location within a location group in the last X days.
Figure 15-40 Purchase Item from Location Group in Last X Days

Purchased Item with String Type Attribute in Last X Days
This query returns Customers who have purchased, within the last X days, an Item assigned a certain string-type Item Attribute with an indicated value.
Figure 15-41 Purchase Item with String Type Attribute in Last X Days

Purchased Item with Date Type Attribute in Last X Days
This query returns Customers who have purchased, within the last X days, an Item assigned a certain date-type Item Attribute with an indicated value.
Figure 15-42 Purchased Item with Date Type Attribute in Last X Days

Purchased Item with Logical Type Attribute in Last X Days
This query returns Customers who have purchased, within the last X days, an Item assigned a certain logical-type Item Attribute with an indicated value.
Figure 15-43 Purchased Item with Logical Type Attribute in Last X Days

Purchased Item with Numeric Type Attribute in Last X Days
This query returns Customers who have purchased, within the last X days, an Item assigned a certain numeric-type Item Attribute with an indicated value.
Figure 15-44 Purchased Item with Numeric Type Attribute in Last X Days

Basic Programs
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment.
Big Spenders
This query returns all active Customers who have spent at least X dollars in at least Y visits. The amount spent must be a number between 0 and 1,000,000. The number of visits must be a number between 0 and 999.
Figure 15-45 Big Spenders

Reactivation Program
This query returns active and valid Customers who have shopped X times but not in the last Y months. The number of times shopped must be a number between 0 and 1000 and the number of months must be a number between 0 and 120
Figure 15-46 Reactivation Program

Happy Birthday
This query returns all active Customers who have a valid address, have given permission to be contacted by mail, and whose birthday is in the month you selected ([default] = January)
Figure 15-47 Happy Birthday

Happy Anniversary
This query returns all active Customers who have a valid address, have given permission to be contacted by mail, and whose signup date is in the month you selected ([default] = January.
Figure 15-48 Happy Anniversary

Thank You!
This query returns active and valid Customers who have spent at least X dollars in the last Y days. The amount spent must be a number between 1 and 1,000,000 and the number of days must be a number between 1 and 1000 (i.e. 100 dollars in the last 30 days)
Figure 15-49 Thank You

Cross Sell Program
This query returns active and valid Customers who have purchased item X in the last Y days. The number of days must be a number between 1 and 1000
Figure 15-50 Cross Sell Program

Big Spender - Location
This query returns active Customers who have spent at least X dollars in location Y. The amount spent must be a number between 0 and 1,000,000. The location can be any valid location in your organization. You can only specify one (1) location
Figure 15-51 Big Spender Store

Anniversary Program
This query returns active Customers who have purchased item X between Y and Z days ago. The Purchased Item can be any valid item in your organization. The first number of days (Y) must be an integer between 0 and 1000 and the second number of days (Z) must be an integer between 1 and 1000.
Figure 15-52 Anniversary Program

Segment Elements
This section
Customers in Segment
This query returns all Customer who are in the Segment ID specified.
Figure 15-53 Customers in Segment

Customers in Segment Strata Level
This query returns all Customers in a specified strata level within a Segment.
Figure 15-54 Customers in Segment Strata Level

Promotion Activity
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment
Promotion Responders
This query returns all active Customers who have responded to the promotion specified (if Yes is selected in the dropdown selection) or not responded to the promotion (if No is selected). The promotion can be any valid promotion in your organization
Figure 15-55 Promotion Responders

Campaign Responders
This query returns all active Customers who have responded to the campaign specified (if Yes is selected in the dropdown selection) or not responded to the campaign (if No is selected). The campaign can be any valid campaign in your organization.
Figure 15-56 Campaign Responders

Strategic Segments
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment
Customer Status
This query returns valid Customers whose status matches the one you have selected. Your options are “Active” [default] and “Inactive”.
Figure 15-57 Customer Status

Mail File
This query returns all active Customers who have given permission to be contacted by mail and have a valid address.
Figure 15-58 Mail File

Mail File By Home Location
This query returns all active Customers whose home location is or is not the one you have specified, have given permission to be contacted by mail, and have a valid address.
Figure 15-59 Mail File by Home Location

Phone File
This query returns all active Customers who have given permission to be contacted by telephone and have a valid telephone number that is not their Fax number.
Figure 15-60 Phone File

Phone File By Home Location
This query returns all active Customers whose home location is or is not the one you have specified, have given permission to be contacted by phone, and have a valid telephone number that is not their Fax number.
Figure 15-61 Phone File by Home Location

Email File
This query returns all active Customers who have given permission to be contacted by email and have a valid email address
Figure 15-62 Email File

Email File By Home Location
This query returns all active Customers whose home location is or is not the one you have specified, have given permission to be contacted by email, and have a valid email address.
Figure 15-63 Email File by Home Location

Loyalty Segments
In the following queries, you can find the Program IDs by selecting Account -> Card Definition from the Application Menu. The resulting list page will list the Programs. Within the Card Definition, select the Card Prefix associated with the Program; Customer Engagement will then display the associated Programs and Program IDs.
You can find the Level ID by selecting a Loyalty Program from the Program List page (see previous paragraph) and clicking Edit-Level. The resulting page will list the levels along with their Level IDs for the selected program.
This category is available at the Segment Query step of the Create Segment wizard, and controls the customers to select for the Stratified or Unstratified Segment
Program X, Program Level Y, based on First Use Date
This query returns all active Customers who participate in Program X at Level Y and who first used their Loyalty Account within the last Z Days [default], Weeks, or Months
Figure 15-64 Program X, Program Y, Based on First Use Date

Program X, Program Level Y, based on Last Use Date
This query returns all active Customers who participate in Program X at Level Y and who last used their Loyalty Account within the last Z Days [default], Weeks, or Months
Figure 15-65 Program X, Program Y, Based on Last Date

Loyalty Points Earned YTD
This query returns all Customers whose year-to-date earned points balance matches the entered data.
Figure 15-66 Loyalty Points Earned YTD

Loyalty Points Earned LTD
This query returns all Customers whose lifetime-to-date earned points balance matches the entered data.
Figure 15-67 Loyalty Points Earned LTD

Any Program, Member/Non-Member
This query returns all Customers who have Cards/accounts that are or are not part of any Loyalty Program.
Figure 15-68 Any Program, Member/Non-Member

Program X, Program Level Y, Member/Non-Member
This query returns all Customers who have Cards/accounts that are part of Program X and Program Level Y. Program Level Y must be an integer between 0 and 99999.
Figure 15-69 Program X, Program Level Y, Member/Non-Member

Program X, Program Level Y, Loyalty Activity by Location in Last Z Days
This query returns all active Customers who have Cards/accounts that are part of Program X and Program Level Y and who have a loyalty transaction of the type indicated from the location indicated (Location Attribute Name and Value) within the last number of days indicated and whose Loyalty Point total matches your selection.
Figure 15-70 Program X, Program Level Y, Loyalty Activity by Location in Last Z Days

Any Program, Loyalty Activity by Location in Last X Days
This query returns all Customers who have Cards/accounts that are part of any Program and who have a loyalty transaction of the type indicated from the location indicated (Location Attribute Name and Value) within the last number of days indicated, and whose Loyalty Point total matches your selection.
Figure 15-71 Any Program, Loyalty Activity by Location in Last X Days
