Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Current FY Quarter +1
Hi
I need to create an analysis to show deals for the current quarter (Jun 01 - Aug 31) and then another analysis to show current quarter +1 then current quarter +2 ...I could not figure it the timestampadd formula that I need to use for that...would you be able to help.
Thanks
JE
Answers
-
Do you really need to use timestampadd?
A quarter isn't a date, it's a string like '2020 Q3'. In your time dimension you are supposed to have them as part of the hierarchy: year > quarter > month > date.
So when you talk about:
Joe Choueiri-Oracle wrote:...need to create an analysis to show deals for the current quarter (Jun 01 - Aug 31) and then another analysis to show current quarter +1 then current quarter +2 ...
You mean an analysis for '2020 Q3', '2020 Q4' and '2021 Q1' or you are really using dates in a way or another making up some kind of quarter figures by an aggregation into columns formulas in the analysis?
0 -
The ideal way to do this is to have a date/time dimension that has all the date attributes you need to capture like the previous quarter, current month, current year, week number, the list goes on. If these are all pre-calculated then you can just use it rather than attempting to evaluate these at runtime.
0 -
re: Joel's suggestion see -> http://onlyobi.blogspot.com/2013/07/create-date-dimension-using-sql.html
0 -
No I dont need to use timestampadd...all I want is to build 4 tables, mainly with quarters
- Top 10 deals closing in current quarter
- Top 10 deals closing in (current quarter and next quarter)
- Top 10 deals closing in (current quarter and next 2 quarters)
- Top 10 deals closing in (current quarter and next 3 quarters)
Thanks
Joe
0 -
Hi Joe,
your immediate need might be what you describe but what Gianni / Joel are pointing you to is one of the cornerstones.
A sound time hierarchy begets so much useful functionality; -
- Time based measures; Ago, Period Rolling, Total To ...Month / Quarter, Year
- Time based drills
- Alternative hierarchies - Fiscal
Really, there are two paths you can take with OBIEE, the tactical where you achieve what you set out to achieve but never use the tool to the full potential, or the strategic where you exploit the full value add that OBIEE can provide over your data layer
With the time measure in place you can then build the rolling quarter functionality that you describe.
https://gianniceresa.com/2017/01/time-series-functions-why-how-what-where-obiee/ https://tekslate.com/create-measure-using-periodrolling-function
http://obieetutorialguide.blogspot.com/2012/03/time-series-functions-obiee.html
So, you really do need a sound time dimension, it enables so much.
0