There is "Computed attributes" which is in beta which might help you. "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." Check ...