Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 281 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 106 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
I have created a measure using Aggregation based on Dimension when i am using this measure to create
I have create 1 measure using complex aggregation(Aggregation based on Dimension) i am creating Headcount measure using Sum and Last Aggregation
After that i am creating another Measure Year Ago Measure based on this Headcount Measure but this Year Ago measure which i have created is not giving desired result.
Did anyone faced this problem before and Please provide me the solution and Thank in advance.
Answers
-
Headcounts are inventory style - to compare over time you are better off storing snapshots of the counts at regular intervals. Doing the calculations logically won't give it to you and trying to nest some of the aggr rules (last, first, etc) in timeseries functions will be problematic.
Once you have a snap shot the AGO() works like a charm: Date, HEADCOUNT, AGO(HEADCOUNT)
0 -
Hi Thomas Thanks for you answer but i am not able to understand correctly can you please explain it in detail.
0 -
Use of information drives physical design ... so in your case you want to know a count at a particular point in time AND what it was at a referential point in time past.
To do this you need to take snapshots of the counts as they are - so then you can look back. It is far to involved to be trying to look back in time to figure out what the count was at any point by starting with history and adding all the hires and removing the fires/transfers on every request.
Here's a good write up from Kimball on the types of fact tables:
http://www.kimballgroup.com/2008/11/fact-tables/
What you would need is a Periodic Snapshot Grain table.
To make this 'thinkable' -- I assume you look at your bank balance occasionally ... but to know what it was a few months ago you look at an old statement. That statement is a periodic snapshot of your account at that time and you probably get one monthly. You could take your own weekly snapshot of your account by printing the web page (or getting the ATM receipt) weekly - nonetheless those are snapshots.
0 -
Hi Thomas,
Thanks you this solution on the Periodic Snapshot Table, but is there any other way to do it from RPD.
0 -
Your issue is solved with a physical structure not a logical one.
0