Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 17 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
- 78 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Ago function
Answers
-
Hi Robert,
Here below I attach my time dimension hierarchy
The Key in this case is DAY, like in all others time dimensions. In my report if I use AGO function and I use the month as a filter, It will work, when I use week it will not
0 -
Hi Luigi,
I don't think you are understanding me.
For functions like AGO to work you have to have a well formed time hierarchical dimension with appropriate chronological keys at each level.
Appropriate = uniquely reflecting the level of granularity of the level in question.
You need to check the key that is defined as the unique identifier at week level in your time dimension hierarchy that must have been created to enable AGO to work for month to work.
Your key should be along the lines of 201749 for week 49 of the year 2017, 49 by itself is not valid. (Or a surrogate key equivalent that changes at the same rate as the underlying year / week does.)
What you are showing me is the dimension, you need to show me the (probably level based) hierarchy.
More importantly you need to check that the week key is fit for purpose, and not a weak key....
0 -
Hi Rober,
Ok now, I'm sorry but I have been enjoying BI for 7 days. Below I attached the schema requested I hope it will be ok for you to understand my problem:
In the physical column on the right I also opened the period variable used in my report
Thanks a lot
Luigi
0 -
Hi Luigi,
thanks for the screenshot, what I am asking you to do is to click on the WEEK key in your business model hierarchy as per your screenshot above, query the PHYSICAL column. Then when you are 'on' the physical model column use the tool to query the underlying database and ascertain if your key; -
a. truly represents the granularity of your physical weeks, i.e. if you have 5 years data and 52 weeks in each year (to keep my maths simple) do you have 5 x 52 week distinct keys?
b. Is the key sufficient to represent the uniqueness at that level, i.e. NOT 48,49,50, but 201748, 201749, 201750 or surrogate key equivalent.
Hope that clarifies?
0 -
Hi Robert,
I moved as you asked me, below I show that WEEK in the database is well linked to, but it is not a unique key as it seems:
To do it I think I should go on my Physical model, AL_PERIOD_SCH_SHIP_DATE, click on properties, and in the section Key I add a new one; that is week...right ? Now is as showed below:
I didn't understand your previuos A and B points.How can I find out if my key sufficient represents the uniqueness at a certai level ?
Thanks
Luigi
0 -
My point is a crucial one.
Keys are of paramount importance in OBIEE.
In the AL_PERIOD_SCH_SHIP_DATE I would expect (in one row for todays date as an illustrative example); -
YEAR_ID 2017
QUARTER_ID 201704
MONTH_ID 201711
WEEK_ID (I see this is not present in your table, sound of alarm bells here!!! - your week probably looks like 47 not 201747 - i.e. it is not a key which would let me find ONLY the week in question, BECAUSE IT LACKS SUFFICIENT DETAIL TO DO SO - excuse the capitals!)
So, I would suggest in your business model logical table you need to create a concatenation of Year_ID and Week to make a Week_Id which can then validly be used as the key in the time dimension and which will work in the AGO function.
Note - as a function this will not be the most performant way to do it, the best way is to go back to your Data Warehouse developers who populate the table and ask them to create a unique week id in the physical table, and then model it through to use it in the appropriate place.
For further explanation on the concepts see this => https://gerardnico.com/wiki/dat/obiee/obis/time_dimension
0 -
Thank you Rober, I've studied the instruction in the link, now I start working on my DWH and I will bring you up as sonn as I have new
Luigi
0 -
Sure, hope you get there.
Kindly also mark whatever helped or turned out to be correct for the benefit of those who follow.
Robert.
0