๐️ Chapter 11: Creating Parameterized Reports (Global HR Use Case)
Parameters make reports interactive and flexible, letting users filter results without changing SQL. In this chapter, you'll learn:
-
How to define parameters in a Data Model
-
Add List of Values (LOVs) for user-friendly selection
-
Set default values
-
Enable cascading filters (e.g., BU → Department → Employee)
✅ 1. Common Global HR Report Parameters
Parameter | Purpose |
---|---|
Business Unit | Filter employees by BU |
Department | View only specific departments |
Job | View specific job roles |
Status | Active, Terminated, Pending |
Hire Date Range | Filter by joining period |
✅ 2. Define Parameters in the Data Model
✳️ Example: Basic Parameter for Business Unit
-
Open Data Model
-
Go to Parameters tab
-
Click + Create
-
Name:
P_BU_ID
-
Data Type: Number
-
Display Label:
Business Unit
-
Required: Yes (or No, as needed)
-
✅ 3. Create List of Values (LOV)
LOVs provide dropdowns instead of free text.
๐งพ Example: Business Unit LOV
-
Go to List of Values tab
-
Click + Create
-
Name:
LOV_BUs
-
SQL:
-
Value Column:
organization_id
-
Display Column:
name
-
-
Return to Parameters, select:
-
List of Values:
LOV_BUs
-
✅ 4. Use Parameter in SQL Query
Modify the main SQL to use the bind variable:
You can make this dynamic with more filters:
✅ 5. Cascading Parameters
For example:
Select Business Unit → Filter Departments accordingly
๐ Steps:
-
Create a second LOV for Departments:
-
Use the dependent parameter
P_DEPT_ID
-
Link this LOV to
P_DEPT_ID
, enabling cascading behavior
BI Publisher will auto-filter department options after BU selection.
✅ 6. Setting Default Values
Optional but useful:
-
Set default value for BU to your org’s primary BU
-
Use SQL-based default:
In Parameter settings, set:
-
Default Value Type: SQL
-
SQL Text: above query
✅ 7. Using Parameters in Layout
In RTF or Excel templates:
-
Show selected values in the header
BI Publisher auto-replaces these with user selections.
✅ 8. Tips for HR Parameter Design
Tip | Benefit |
---|---|
Use LOVs with IDs | Ensures correct value submission |
Use optional parameters | More flexible filters |
Add display fields in layout | Improves report clarity |
Use cascading LOVs | Clean UX for large orgs |
Validate query performance | Parameters shouldn’t slow it down |
✅ 9. Summary
You’ve now learned how to:
-
Create parameters with or without LOVs
-
Implement cascading filters
-
Embed parameters in SQL and report layouts
These skills are essential for building interactive HR dashboards and reports used by managers, recruiters, and leadership.
๐ Next Chapter Preview:
Chapter 12: BI Publisher Bursting — Personalized Delivery
-
Deliver one report to multiple HR users
-
Burst by BU or department
-
Email, FTP, and archive methods
No comments:
Post a Comment