Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 215 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Monthly budget, daily actuals, and YTD comparisons: level-based measures?

I've got an issue that's in my OBIEE blind spot. Really appreciate the input.
We have a "Appointment Measures" fact, with a LTS at the "Day" time grain. There are several other dimensions that make up the granularity, but the most relevant one is "Scheduling Department".
We also have a budget by month and Scheduling Department. I've included this table as a separate logical table source in the "Appointment Measures" fact. I also have this table tied to the "Appointment Date" dimension by the first date of the month.
So,
Appointment Measures
- Appointments Daily Fact table
- Sched Dept Monthly Budget table
I want a single query that returns:
Actual Appointments Month-to-Date
Budgeted Appointments for the Month
Fiscal YTD Actual Appointments (for example, through 7/17/2016) - defined in metadata using ToDate function
Prior Fiscal YTD Actual Appoints (in this example, through 7/17/2015) - defined in metadata using AGO and referencing Fiscal YTD function
Fiscal YTD Budgeted Appointments (would include the July 2016 amount)
Is there a way to model this (with, I assume, level-based measures) such that time series functions work as expected?
Thanks,
John
Answers
-
I think I've figured out how best to handle this. Sometimes it takes writing a forum post to sort yourself out.
Will post solution if it works as expected.
0 -
To solve this particular problem, I made my Monthly Budgeted Amount a "ToDate" sum of budgeted appointments at the Appointment Date > Appointment Month level.
Given that the monthly budget amount returns for the first day of the month only, a "ToDate" function will always return the monthly amount, regardless of which day of the month I filter on.
More testing to do at various levels of aggregation, and I need to inspect the SQL for good measure, but so far it is working.
-John
0 -
Well, never mind... this doesn't quite work.
If I report at the month level but filter at the day level--even if I don't include the DAY in the output--OBIEE is summing "month to date" budget counts across all days of the month.
So this approach does not work as expected.
Will look at level-based measures again.
-John
0