Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 213 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Headcount filter by quarter end date too low and jumps around

I want to report on headcount and FTE (also by age, grade etc.) for each department over the past 10 or so reporting/fiscal quarters. I am running an Analysis in OTBI, using the subject area: Workforce Management - Worker Assignment Event Real Time
I have the variables:
- "Department"."Department Name" (filtered to a single department for testing but will be prompted in a dashboard),
- Reporting quarter (I am unable to save this in a subject area so when I reference it I must use the fomrula I used to calculate it from Time.Date i.e.: CASE WHEN MONTH("Time"."Date") IN (4,5,6) THEN (CASE WHEN MONTH("Time"."Date") >= 4 THEN CAST(YEAR("Time"."Date") AS CHAR) || '/' || CAST(YEAR("Time"."Date")+1 AS CHAR) ELSE CAST(YEAR("Time"."Date")-1 AS CHAR) || '/' || CAST(YEAR("Time"."Date") AS CHAR) END) || ' Q1' WHEN MONTH("Time"."Date") IN (7,8,9) THEN (CASE WHEN MONTH("Time"."Date") >= 4 THEN CAST(YEAR("Time"."Date") AS CHAR) || '/' || CAST(YEAR("Time"."Date")+1 AS CHAR) ELSE CAST(YEAR("Time"."Date")-1 AS CHAR) || '/' || CAST(YEAR("Time"."Date") AS CHAR) END) || ' Q2' WHEN MONTH("Time"."Date") IN (10,11,12) THEN (CASE WHEN MONTH("Time"."Date") >= 4 THEN CAST(YEAR("Time"."Date") AS CHAR) || '/' || CAST(YEAR("Time"."Date")+1 AS CHAR) ELSE CAST(YEAR("Time"."Date")-1 AS CHAR) || '/' || CAST(YEAR("Time"."Date") AS CHAR) END) || ' Q3' WHEN MONTH("Time"."Date") IN (1,2,3) THEN (CASE WHEN MONTH("Time"."Date") >= 4 THEN CAST(YEAR("Time"."Date")-1 AS CHAR) || '/' || CAST(YEAR("Time"."Date") AS CHAR) ELSE CAST(YEAR("Time"."Date")-1 AS CHAR) || '/' || CAST(YEAR("Time"."Date") AS CHAR) END) || ' Q4' END
- "Time"."Calendar Quarter End Date" - after some testing I found this is the same as reporting quarter end date and much simpler to use
- "Headcount" - calculated using the formula - count(distinct "Worker"."Person Number")
- FTE - which has also been calculated from Worker.Normal Hours
I have filtered by:
- Assignment status = Active - Payroll Eligible,
- Department name = X,
- "Assignment Event Details"."Effective Start Date" < = "Time"."Calendar Quarter End Date"
- "Assignment event Details"."Effective End Date">= "Time"."Calendar Quarter End Date"
- "Worker"."Termination Date" is null or >= "Time"."Calendar Quarter End Date".
The returned headcount per quarter is too low and jumps around as it is only counting when there is an assignment change i.e. not all employees active in that quarter. BUT if I input static dates into the filters e.g. replace Calendar Quarter End Date with "30-06-2025" (and remove any time variables from my results) I get the correct numbers. I'm guessing this means there is an issue with the time-event join?
Please help!
Answers
-
Hi SarahDonoghue,
Try the below options:- Use Workforce Management – Worker Assignment Real Time instead. This subject area:
Returns current assignment data as of a given date
Supports effective date filtering via:
SET VARIABLE PARAM_EFFECTIVE_DATE = '@{P_DATE}{2025-06-30}';
Is better suited for headcount and FTE trending over time2. Use a Union or Combined Analysis
If you must stay in the Event Real Time subject area:
Create a union query that pulls all active workers as of each quarter-end, not just those with eventsUse a custom filter like:
Effective Start Date <= Quarter End Date
AND Effective End Date >= Quarter End Date
AND Termination Date IS NULL OR >= Quarter End Date3. Consider BI Publisher for Historical Accuracy:
PER_ALL_ASSIGNMENTS_M
PER_PERIODS_OF_SERVICE
PER_PERSONS
Join with PER_GRADES, PER_JOBS, and HR_ORGANIZATION_UNITSThanks,
Riyaz Ali1 - Use Workforce Management – Worker Assignment Real Time instead. This subject area:
-
Hi Riyaz, thank you for the reply, I very much appreciate you taking the time to respond.
Can you explain option 1 in more detail? In the Workforce Management – Worker Assignment Real Time SA there are no Time variables. Even when filtering Assignment Start/End Date by an example quarter end I get inconsistent results e.g. extra employees I was not expecting.
Thank you again
0