1. Using function aliases in reports
Pega Platform 8.8 Documentation: "You can use function aliases in report definitions to provide more flexible reporting options. For example
you can use function aliases to apply an SQL function to a column of data to format or calculate the results... This approach is useful for creating custom calculations or formatting that is not available through the standard reporting features." This directly supports using a function alias for the calculation and categorization required.
2. Creating a function alias
Pega Platform 8.8 Documentation: This document details the process of creating a function alias
noting its purpose is to "make it easier for application developers to use functions in their reports." This aligns with creating a specific function for the tenure calculation.
3. About Report Definition rules
Pega Platform 8.8 Documentation: "Report definition rules generate HTML and SQL that is executed to retrieve and format the data for the report. Report definitions are the preferred rule type for creating reports in Pega Platform." This reference establishes Report Definitions as the standard tool
making the use of deprecated ListViews (Option C) or external Connect-SQL (Option D) incorrect for this standard requirement.
4. Grouping results in a report
Pega Platform 8.8 Documentation: "To better visualize and analyze your data
you can group results in a report... For example
you can group a list of employees by their office location to see how many employees work in each office." This supports the final step of summarizing the data by the calculated category column created with the function alias.