Computed attribute functionality is currently in alpha and is not available to all users. The documentation and the functionality are subject to change.
Computed attributes are functions used to aggregate event-level data into profile-level attributes. These functions are automatically computed so that they can be used across segmentation, activation, and personalization.
Each computed attribute contains an expression, or “rule”, that evaluates incoming data and stores the resulting value in a profile attribute. These computations help you to easily answer questions related to things like lifetime purchase value, time between purchases, or number of application opens, without requiring you to manually perform complex calculations each time the information is needed. These computed attribute values can then be viewed in a profile, used to create a segment, or accessed through a number of different access patterns.
This guide will help you to better understand the role of computed attributes within Adobe Experience Platform.
Adobe Experience Platform enables you to easily import and merge data from multiple sources in order to generate Real-time Customer Profiles. Each profile contains important information related to an individual, such as their contact information, preferences, and purchase history, providing a 360-degree view of the customer.
Some of the information collected in the profile is easily understood when reading the data fields directly (for example, “first name”) whereas other data requires performing multiple calculations or relying on other fields and values in order to generate the information (for example, “lifetime purchase total”). To make this data easier to understand at a glance, Platform allows you to create computed attributes that automatically perform these references and calculations, returning the value in the appropriate field.
Computed attributes include creating an expression, or “rule”, that operates on incoming data and stores the resulting value in a profile attribute. Expressions can be defined in multiple different ways, allowing you to specify that a rule evaluate incoming events only, an incoming event and profile data, or an incoming event, profile data, and historical events.
Use cases for computed attributes can range from simple calculations to very complex references. Here are a few example use cases for computed attributes:
The availability of new computed attributes may be delayed up to 2 hours after the corresponding schema attribute is added to the union schema.
This delay is due to the current caching configuration. Post-Alpha the cache refresh frequency could be increased.
Schema attributes that have already been used in a segment definition expression, but later turned into a computed attribute will not be tracked as a dependency of that segment.
Due to the fact that no dependency has been detected, Experience Platform will not automatically evaluate the associated computed attribute each time the segment definition is evaluated.
Alternatively, the creation of computed attributes could be managed through a specific schema field group that adds new computed attributes that do not conflict with existing attributes. Another alternative is to simply recreate the segment with the correct dependency tracking for the new computed attributes.