Pega Reportng
Pega Reportng
Simple Questions
1. What is a Report Definition in Pega?
Answer:
A Report Definition is a Pega rule used to fetch and display data from the
database in a tabular format. It supports filtering, sorting, grouping, and
aggregation.
Complex Questions
5. How do you join two tables in a Report Definition in Pega?
Answer:
Use the Class Join feature in the Report Definition to define a join between
the primary class and a related class.
Scenario-Based Questions
Scenario 1: Aggregating Customer Orders
Scenario:
A retailer wants to generate a report that summarizes the total order value (SUM),
average order value (AVG), and number of orders (COUNT) for each customer.
Solution:
Alternative Approach:
● Use SQL Functions via Custom SQL Reports for more complex
aggregation logic.
● Export data to an external data warehouse (e.g., Snowflake) for advanced
aggregation.
Scenario:
You need to create a report that displays customer details along with their most
recent order date.
Solution:
○ Create a sub-report in the Orders class to fetch the most recent order
date (OrderDate with MAX).
○ Embed this sub-report in the main Customer report using a Join
Condition.
Scenario:
An insurance company needs to generate a report of all claims over $10,000 within
the last year, grouped by claim type.
Solution:
Alternative Approach:
● Use a Data Flow to process and filter claims, then output the results into a
reporting data set for faster query performance.
● Archive older claims to a separate table to reduce the size of the queried
dataset.
Scenario:
A telecom company wants to generate a report showing customer details and their
current subscription status, stored in an external database.
Solution:
Scenario:
A financial institution needs to export a report containing millions of transaction
records for auditing purposes.
Solution:
1. Batch Processing:
○ Create a Data Flow to write the report data into a staging table or file
repository and schedule exports using Queue Processors.