Skip to content
Last updated

Behavior Aggregation Rules

Depending on your behavior segment rules, you can apply the additional following aggregation functions filters to the number of behaviors per profile based on the rules you set.

This article contains information on the following topics:

Count

Returns only the profiles based on the number of behavior records set in COUNT.

Example

  • Behavior Rule:
    • Item = Ping Pong Table COUNT >= 5
emailfirst_namelast_nameitem
nancybowman@gmail.comNancyBowmanPing Pong Table
nancybowman@gmail.comNancyBowmanPing Pong Table
nancybowman@gmail.comNancyBowmanPing Pong Table
nancybowman@gmail.comNancyBowmanPing Pong Table
nancybowman@gmail.comNancyBowmanPing Pong Table
timothylewis@gmx.deTimothyLewisPing Pong Table
timothylewis@gmx.deTimothyLewisPing Pong Table
timothylewis@gmx.deTimothyLewisPing Pong Table
timothylewis@gmx.deTimothyLewisPing Pong Table
timothylewis@gmx.deTimothyLewisPing Pong Table
jamieguzowski@yahoo.comJamieGuzowskiPing Pong Table
jamieguzowski@yahoo.comJamieGuzowskiPing Pong Table
jamieguzowski@yahoo.comJamieGuzowskiPing Pong Table
jamieguzowski@yahoo.comJamieGuzowskiPing Pong Table
jamieguzowski@yahoo.comJamieGuzowskiPing Pong Table
kimberlylumpkins@terra.com.brKimberlyLumpkinsPing Pong Table
kimberlylumpkins@terra.com.brKimberlyLumpkinsPing Pong Table
kimberlylumpkins@terra.com.brKimberlyLumpkinsPing Pong Table
kimberlylumpkins@terra.com.brKimberlyLumpkinsPing Pong Table
kimberlylumpkins@terra.com.brKimberlyLumpkinsPing Pong Table

Average

Only selects the profiles that contain the average of a function of a selected a behavior column.

Example

  • Behavior Rule (From ping pong table purchases, only select profiles where the total price averages to more than $5)
    • Item = Ping Pong Table
    • Average total_price > greater than 5
emailfirst_namelast_nameitemtotal_price
williammcintyre@yahoo.com.mxWilliamMcintyrePing Pong Table10.5
gwenmcrary@libero.itGwenMcraryPing Pong Table4.25
gwenmcrary@libero.itGwenMcraryPing Pong Table12.99
gwenmcrary@libero.itGwenMcraryPing Pong Table6.5
suzannecraven@yahoo.esSuzanneCravenPing Pong Table14
suzannecraven@yahoo.esSuzanneCravenPing Pong Table35.2

Count Distinct

The unique count of the selected behavior column fulfills the chosen function.

Example

  • Count distinct by item >= 3
emailfirst_namelast_nameitem
kimberlylumpkins@terra.com.brKimberlyLumpkinsBrake Pads
kimberlylumpkins@terra.com.brKimberlyLumpkinsBlender
kimberlylumpkins@terra.com.brKimberlyLumpkinsBlender
kimberlylumpkins@terra.com.brKimberlyLumpkinsBaby Monitor
kimberlylumpkins@terra.com.brKimberlyLumpkinsAlternator
williammcintyre@yahoo.com.mxWilliamMcintyreBrake Pads
williammcintyre@yahoo.com.mxWilliamMcintyreBasketball
williammcintyre@yahoo.com.mxWilliamMcintyreAlternator

First

Takes the first value of a selected column when you put it in order of another column.

Example

  • Item = Ping Pong Table
  • FIRST item = Ping Pong Table, order by total_price`
emailfirst_namelast_nameitemtotal_price
williammcintyre@yahoo.com.mxWilliamMcintyrePing Pong Table10.5
gwenmcrary@libero.itGwenMcraryPing Pong Table4.25
suzannecraven@yahoo.esSuzanneCravenPing Pong Table14

Last

Takes the first value of a selected column when you put it in order of another column.

Example

  • Item = Ping Pong Table
  • LAST item = Ping Pong Table, order by total_price`
emailfirst_namelast_nameitemtotal_price
williammcintyre@yahoo.com.mxWilliamMcintyrePing Pong Table10.5
gwenmcrary@libero.itGwenMcraryPing Pong Table12.99
suzannecraven@yahoo.esSuzanneCravenPing Pong Table35.2

Sum

Only selects the profiles that contain the sum of a function of a selected behavior column.

Example

  • Item = Ping Pong Table
  • sum total_price > greater than 20
emailfirst_namelast_nameitemtotal_price
gwenmcrary@libero.itGwenMcraryPing Pong Table4.25
gwenmcrary@libero.itGwenMcraryPing Pong Table12.99
gwenmcrary@libero.itGwenMcraryPing Pong Table6.5
suzannecraven@yahoo.esSuzanneCravenPing Pong Table14
suzannecraven@yahoo.esSuzanneCravenPing Pong Table35.2

Min

Example

Only selects the profiles where the lowest value of a chosen behavior column fulfills the selected function.

  • Item = Ping Pong Table
  • MIN total_price > greater than 12
emailfirst_namelast_nameitemtotal_price
suzannecraven@yahoo.esSuzanneCravenPing Pong Table14
suzannecraven@yahoo.esSuzanneCravenPing Pong Table35.2

Max

Only selects the profiles where the highest value of a chosen behavior column fulfills the selected function.

Example

  • Item = Ping Pong Table
  • MAX total_price > greater than 12
emailfirst_namelast_nameitemtotal_price
gwenmcrary@libero.itGwenMcraryPing Pong Table4.25
gwenmcrary@libero.itGwenMcraryPing Pong Table12.99
gwenmcrary@libero.itGwenMcraryPing Pong Table6.5
suzannecraven@yahoo.esSuzanneCravenPing Pong Table14
suzannecraven@yahoo.esSuzanneCravenPing Pong Table35.2

Customizing Behavior and Attribute Columns for Segment Rules