Attributes - KPIs (User Group Transactions)

Attributes on Transaction Data

Use these operators to compare the integer or BigDecimal values associated with transaction metrics. Operators follow the attribute using dot notation, for example: currentUserGroup.numberOfTxns >= 10.

OperatorDefinition
==True if value equals the specified value
!=True if value does not equal the specified value
>True if value is greater than the specified value
>=True if value is greater than or equal to the specified value
<True if value is less than the specified value
<=True if value is less than or equal to the specified value
isNullTrue if the attribute value is null
isNotNullTrue if the attribute value is not null

numberOfTxns

Profile: currentUserGroup
Attribute: numberOfTxns
Meaning: Total number of transactions made by the group since creation.
Type: Integer
Sub-Attribute: NA
Syntax: currentUserGroup.numberOfTxns [Operator] [Value]

ProfileAttributeSub-AttributeOperatorExample
currentUserGroupnumberOfTxnsNA==currentUserGroup.numberOfTxns == 1
currentUserGroupnumberOfTxnsNA>=currentUserGroup.numberOfTxns >= 10
currentUserGroupnumberOfTxnsNAisNullcurrentUserGroup.numberOfTxns.isNull()
currentUserGroupnumberOfTxnsNAisNotNullcurrentUserGroup.numberOfTxns.isNotNull()

Examples

Example 1 : Identify groups with at least 10 transactions.
Expression: currentUserGroup.numberOfTxns >= 10
Example 2 : Target groups with exactly 1 transaction.
Expression: currentUserGroup.numberOfTxns == 1
Example 3 : Check for groups missing transaction data.
Expression: currentUserGroup.numberOfTxns.isNull()

numberOfTxnsToday

Profile: currentUserGroup
Attribute: numberOfTxnsToday
Meaning: Number of transactions made by the group on the current day.
Type: Integer
Sub-Attribute: NA
Syntax: currentUserGroup.numberOfTxnsToday [Operator] [Value]

ProfileAttributeSub-AttributeOperatorExample
currentUserGroupnumberOfTxnsTodayNA==currentUserGroup.numberOfTxnsToday == 0
currentUserGroupnumberOfTxnsTodayNA>=currentUserGroup.numberOfTxnsToday >= 1
currentUserGroupnumberOfTxnsTodayNAisNullcurrentUserGroup.numberOfTxnsToday.isNull()
currentUserGroupnumberOfTxnsTodayNAisNotNullcurrentUserGroup.numberOfTxnsToday.isNotNull()

Examples

Example 1 : Target groups with at least one transaction today.
Expression: currentUserGroup.numberOfTxnsToday >= 1
Example 2 : Identify groups with no transactions today.
Expression: currentUserGroup.numberOfTxnsToday == 0
Example 3 : Check for groups missing today's transaction data.
Expression: currentUserGroup.numberOfTxnsToday.isNull()

numberOfVisits

Profile: currentUserGroup
Attribute: numberOfVisits
Meaning: Number of unique days on which the group made transactions.
Type: Integer
Sub-Attribute: NA
Syntax: currentUserGroup.numberOfVisits [Operator] [Value]

ProfileAttributeSub-AttributeOperatorExample
currentUserGroupnumberOfVisitsNA>=currentUserGroup.numberOfVisits >= 5
currentUserGroupnumberOfVisitsNA==currentUserGroup.numberOfVisits == 10
currentUserGroupnumberOfVisitsNAisNullcurrentUserGroup.numberOfVisits.isNull()
currentUserGroupnumberOfVisitsNAisNotNullcurrentUserGroup.numberOfVisits.isNotNull()

Examples

Example 1 : Identify groups active on at least 5 distinct days.
Expression: currentUserGroup.numberOfVisits >= 5
Example 2 : Target groups with exactly 10 visit days.
Expression: currentUserGroup.numberOfVisits == 10
Example 3 : Check for groups missing visit data.
Expression: currentUserGroup.numberOfVisits.isNull()

lifetimePurchase

Profile: currentUserGroup
Attribute: lifetimePurchase
Meaning: Total value of purchases made by the group since creation, including the current transaction.
Type: BigDecimal
Sub-Attribute: NA
Syntax: currentUserGroup.lifetimePurchase [Operator] [Value]

ProfileAttributeSub-AttributeOperatorExample
currentUserGrouplifetimePurchaseNA>currentUserGroup.lifetimePurchase > 1000
currentUserGrouplifetimePurchaseNA<=currentUserGroup.lifetimePurchase <= 1000
currentUserGrouplifetimePurchaseNAisNullcurrentUserGroup.lifetimePurchase.isNull()
currentUserGrouplifetimePurchaseNAisNotNullcurrentUserGroup.lifetimePurchase.isNotNull()

Examples

Example 1 : Identify groups with lifetime purchase exceeding 5000.
Expression: currentUserGroup.lifetimePurchase > 5000
Example 2 : Target groups with lifetime purchase exactly equal to 1000.
Expression: currentUserGroup.lifetimePurchase == 1000
Example 3 : Check for groups missing lifetime purchase data.
Expression: currentUserGroup.lifetimePurchase.isNull()

initialLifetimePurchase

Profile: currentUserGroup
Attribute: initialLifetimePurchase
Meaning: Total value of purchases made by the group before the current transaction.
Type: BigDecimal
Sub-Attribute: NA
Syntax: currentUserGroup.initialLifetimePurchase [Operator] [Value]

ProfileAttributeSub-AttributeOperatorExample
currentUserGroupinitialLifetimePurchaseNA>=currentUserGroup.initialLifetimePurchase >= 3000
currentUserGroupinitialLifetimePurchaseNA<currentUserGroup.initialLifetimePurchase < 2000
currentUserGroupinitialLifetimePurchaseNAisNullcurrentUserGroup.initialLifetimePurchase.isNull()
currentUserGroupinitialLifetimePurchaseNAisNotNullcurrentUserGroup.initialLifetimePurchase.isNotNull()

Examples

Example 1 : Identify groups with pre-transaction lifetime purchase above 2000.
Expression: currentUserGroup.initialLifetimePurchase > 2000
Example 2 : Target groups with pre-transaction lifetime purchase exactly 1500.
Expression: currentUserGroup.initialLifetimePurchase == 1500
Example 3 : Check for groups missing initial lifetime purchase data.
Expression: currentUserGroup.initialLifetimePurchase.isNull()