Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Creating summaries

Updated on May 17, 2024

You can create an Interaction History summary data set that is based on your input criteria. For example, you can create a summary of all Interaction History records for a customer that shows all accepted offers within the last 30 days. You can use Interaction History summaries to filter out irrelevant offers (for example, do not display this advertisement to a specific customer if that customer has already viewed it within this month).

  1. In the navigation pane of Prediction Studio, click DataSummaries.
  2. Click New.
  3. In the New data set window, specify the following parameters:
    • Name – The name of the new data set, for example, Recently Accepted Offers.
    • Apply to – The application class of the data set, for example, MyApp-Data-pxStrategyResult.
      Important: The applicable class must be derived from the Data-pxStrategyResult class of your application.
  4. Click Create.
  5. On the Aggregates tab, in the Aggregate section, click Add aggregate.
  6. In the Output column specify the aggregate name, for example, .RecentlyAcceptedOffer.
  7. In the Function column, select a mathematical function to use to extract the data, for example, Last, to extract the most recent records.
  8. In the From Interaction History, select an Interaction History property to use to group your data, for example, pyGroup.
  9. Optional: To limit the data that the summary data set aggregates, in the Filter section, perform the following actions:
    1. Click Add condition.
    2. Specify the condition logic by specifying the following properties, starting from the left-most field:
      • The condition name, for example, A.
      • The property by which to filter the Interaction History data, for example, .pyOutcome.
      • The logical operator, for example, =.
      • The property value to filter out, for example, "Accept".
    3. In the Where field, type a condition logic that you want to apply to filter data, for example A, A AND B, A NOT B, and so on.
  10. Click Save.
  11. To test the summary data set, in the header of Prediction Studio click Run test.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us