Creating a custom treatment distribution report for simulations
Creating a Custom Treatment Distribution Report for Simulations / This is the approved revision of this page, as well as being the most recent.
Jump to navigation
Jump to search
Creating a custom treatment distribution report for simulations
In business scenarios, where one action is mapped to multiple treatments, it is crucial to see simulation results at the treatment level, rather than just at the action level.
This article explains how to prepare a custom report at the treatment level for Distribution Test Simulations.
Create a New Report
- Create a new report in the data class where your simulation output will be written. In this example, it is Data-Simulations class.
- Click Add columns at the bottom of the page.
- Add the source columns:
.pyIssues
,.pyGroup
,.pyName
,.pyTreatment
and a count summary in.pyTreatment
column, as shown in the following figure. - Go to Pages & Classes tab.
- Map Pega-DM-Simulation class, as show in the figure below. This class will be used for filtering the report with current simulation run records.
- Add a filter into the report to see output results for current simulation run only. The filter should be set to the following:
.pyWorkID
is equal to pyWorkPage.pySimulationRunID, as in the following figure:
Add a shortcut of your Report into Simulations Category
In order to make your report visible in the Simulations reports drop down list of Distribution Test screen, you need to add a shortcut.
- In Dev Studio, go to Reports > Category.
- Change the pxSimulations display type value from Never to blank in Private edit mode, as shown in the following figure:
- Create a new shortcut for your new report in pxSimulations category, as shown in the following figure:
- After you apply these changes, you will see a new report titled Treatment Distribution in the Report menu of Assign reports to outputs section, as shown in the following figure:
Result: After running the simulation, the report output will show counts at the treatment level, as in the report below: