contains Function | Vantage CX - count - Vantage Customer Experience

Vantage Customer Experience User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Vantage Customer Experience
Release Number
1.6
Published
October 2023
Language
English (United States)
Last Update
2023-10-26
dita:mapPath
hbt1563223944614.ditamap
dita:ditavalPath
oyf1565965838286.ditaval
dita:id
tmo1562969305444
Product Category
Teradata Applications

Returns a count of the list of data within a set.

In the following example, the expression gets the session data for the Customer.nav.page attribute and filters that session data for attribute values beginning with the word Credit. The expression counts the number of filtered attributes and returns true if the number is greater than or equal to 3.

count(
      filter(
             get("Session.Customer.nav.page"),
             pattern("Credit.*")
      )
) >= 3

By default, the count function accesses the most current data. The Session modifier enables the count function to access the session data, which is all of the data in the active session. For example, the Session modifier accesses not only the current value for an attribute but all the previous values for that attribute in the session. Use the Session modifier to use a simple attribute with the avg function.