Group Report Data
Create a report design file.
Report Designer enables you to group a set of rows within a report by the values of
one particular column. For example, the grouping feature allows you to:
- Aggregate and summarize a grouping and add this information to the report.
- Add titles or other text to the beginning of each group.
- Add averages, counts, subtotals, and other summary information to the beginning or end of each group.
- Insert a page break before or after each group.
If you need to group custom report data, wherever possible use the grouping
functionality that Workday provides for custom report configuration before
creating your report design.
In addition, due to performance issues inherent in BIRT, Workday recommends that
you don't use Report Designer's group-by feature for data sets where the custom
report data exceeds 10 MB.
- Bind the primary data set to a table within the main body of the report. In theProperty Editor - Tableview, select theBindingtab, then select the primary data set from theData Setdrop-down list.The Workday runtime has to make at least one complete scan of a data set to find all the values for the column it's grouping on. The runtime must also store the grouped-by data in memory until it has rendered the complete data set. Keep this factor in mind when you're considering using this feature. We recommend using grouping only on data sets that are relatively small and never when you are using theApply report design separately for each rowoption.
- In theOutlineview, expand the node. Right-clickGroupsand selectInsert Group.
- As you specify the group's properties, consider:
Option Description NameThe group name.Group OnThe data set column to group on.ExpressionThe data binding expression for the column.Sort directionAscending or descending.After grouping has occurred, a display row number might not match the row order of the initial data, leading to incorrect joining of primary and secondary data sets. If you want to add a secondary data set binding to a report with a grouped primary data set, you must set thePrimaryRowNumberparameter from the primary data set using a new column namedRow_Number, which is added automatically.To do so, clickData Set Parameter Bindingin theProperty Editor - Tableview and give thePrimaryRowNumberparameter the valuerow["Row_Number"].Be aware that the expressionrow.__rownumwas used in Report Designer for Workday 17 and Workday 18. It is important to understand the difference between these 2 expressions:- The newrow["Row_Number"]expression is a column placed in the data set by the Workday extensions. It indicates the row order of the report data item in the report data coming from the server.
- The formerrow.__rownumexpression was a special expression that indicated the row number at display time of the data set item.
- To add text or other report items to the end or beginning of every grouping, use the group header and footer. Example, you can add an aggregation of one of the fields, based on the grouping. First add a column binding for the aggregation, then add that to the table group footer.