Using Time Series Functions in Answers 11g
Hi All,
I am using OBIEE v11.1.13, I want to use Time series AGO function in Answers level, its syntax is:
AGO(expr, level, interval)
for level part: should i only give the <name of the level in the hierarchy>, is it compulsary that i should introduce the Hierarchy to presentation layer?
Thanks,
Richa
for level part: should i only give the <name of the level in the hierarchy>, is it compulsary that i should introduce the Hierarchy to presentation layer?Hierarchy shud be present at presentation layer so that you can select the level from there and work on Time Series functions in answers.
Similar Messages
-
How to use time series functions for this requirement
we are on OBIEE 11g (11.1.1.5)
Any pointers and links are really helpful.
I have a requirement where YTD sales are displayed in a column. We wan to compare that number to what that number was last year at the same time. Tried to use TODATE, AGO and it did not work.
|| used for column seperation below.
ProductGroup || YTD Sales Rev||YTD Sales Rev 1 Year Ago||YTD Sales Rev 2 Years Ago
Climate Solutions || 1.7 mil (1/1/2011 - 7/1/2011) || 1.45 mil (1/1/2010 - 7/1/2010) || 1.15 mil (1/1/2009 - 7/1/2009)
Thanks in advance
kris
Edited by: user566193 on Aug 10, 2011 6:06 PMKris,
Basically you want to combine the 2 time series functions here i.e. TODATE & AGO.
Here you go..
You can create first a YTD logical column in BMM say YTD Sales Rev..Then create another logical column with calculation as AGO(YTD Sales Rev, YEARDIM, 1) or AGO(YTD Sales Rev, MONTHDIM, 12).
Similarly, you create other measures...OBIEE 11g has time series function in Answers as well but I'd say try to create using RPD as you to calculate 1 logical column based on another. Better to push it on RPD side.
Hope this helps -
Last Year MTD/YTD Column Without Using Time Series Function
I need to calculate MTD and YTD of last year without using time series function.
My requirement is like:
We are working on Fiscal year.
Suppose user will select a date: 15-Jan-2013Use a period table with Period Ago attributes and join these to an alias of your fact table. In other words, use a period table (let's say Day is grain) that would have
WAgo, QAgo, YAgo, (etc.) attributes for each day. Join this table to aliases of the fact tables on these columns.
Thanks. -
How to find the year ago measure with out using time series functions
hi all
is there any way to find year ago sales with out using time series functions like ago
Thanks
SreedharHello Madan,
Thanks for the reply.
It still doesn't consider the product into account.
My columns are as below
Prod Week End DATE Current Sales Prior Sales % Change
A 12/4/2010 100 0
A 12/11/2010 200 100
A 12/18/2010 300 200
B 12/4/2010 400 300(this value is not for prod B, i want this to b 0 aswell. But we get product A's last sale amount)
Is there any way this can be done. I have tried evaluate,MSUM.
I cannot build a time dimension as all I have is a view.
Thanks,
Deep -
TODATE time series function in OBIEE 11g
Hi,
I have a problem with time series function. I have month level in time dimension hierarchy.
I have used below expression to get month to date results in my reports.
column
expression----> TODATE(fact.measure, hierarchy.Month level);
when i am using this column in my reports it is showing null values. The below error i am getting in view log files
----------------> Converted to null because it's grain is below query's grain
Note: Here i have measures, year,qtr,month,day,shift,hour in single physical table in physical layer.
Is it a problem to have measures and time columns in a single physical table?
Please let me know if you have any solution.
Thanks,
AvinashYes, it shud be a prob. Try using seperate tables for fact n timedim
-
Nested aggregation using time series functions
Hi All,
I have a requirement where i need to find the growth using below formula
(A-B)/B
A=PERIODROLLING(x,-3,0)
B=PERIODROLLING(AGO(x,QUARTER,1),-3,0)
where x is a measure
I see that OBIEE doesn't support nested aggregates on time series function is there any other way this can be achieved
Thanks in advance,
KSS
Edited by: K.S.S on Mar 19, 2013 2:53 AM
Edited by: K.S.S on Mar 19, 2013 2:54 AMsame functionality was achieved using below formula
(A-B)/B
A=PERIODROLLING(x,-3,0)
B=PERIODROLLING(x,-4,-1) -
Scatter plot using time series function - Flash charting
Apex 3 + XE + XP
I am trying to build a time series scatter plot chart using flash chart component.
Situation :
On each scout date counts are taken within each crop. I want to order them by scout dates and display them in a time series chart. Each series represents different crop.
I am posting the two series queries I used
Queries:
Series 1
select null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=1
order by SCOUTDATES.SCOUTDATE' ASC
Series 2:
select null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=4
order by SCOUTDATES.SCOUTDATE' ASC
Problem
As you can see the observations are ordered by scout date. However when the chart appears, the dates dont appear in order. The chart displays the data from crop 1 and then followed by crop 4 data, which is not exactly a time series chart. Does flash chart support time series or they have no clue that the data type is date and it should be progressive in charting ? I tried to use to_char(date,'j') to converting them and apply the same principle however it did not help either.
Any suggestions ?
Message was edited by:
tarumugam
Message was edited by:
aruArumugam,
All labels are treated as strings, so APEX will not compare them as dates.
There are two workarounds to get all your data in the right order:
1) Combine the SQL statements into single-query multi-series format, something like this:
select null LINK,
"SCOUTDATES"."SCOUTDATE" LABEL,
decode(CROP.CROPID,1,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 1",
decode(CROP.CROPID,4,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 4"
from "COUNTY" "COUNTY",
"FIELD" "FIELD",
"VARIETYLIST" "VARIETYLIST",
"INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
"SCOUTDATES" "SCOUTDATES",
"CROP" "CROP"
where "SCOUTDATES"."CROPID"="CROP"."CROPID"
and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
and "CROP"."FIELDID"="FIELD"."FIELDID"
and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
and "COUNTY"."COUNTNAME" ='Kings'
AND CROP.CROPID in (1,4)
order by SCOUTDATES.SCOUTDATE ASC2) Union the full domain of labels into your first query. Then the sorting will be applied to the full list, and the values of the second series will be associated with the matching labels from the first.
- Marco -
Display Issues Using Time Series Function
I have created a time dimension (Total Time > Year > Quarter > Month) and created QTD, YTD, QTD_AGO, and YTD_AGO metrics. I join a materialized view with revenue metrics to property dimension and calendar dimension with grain of year-month.
When I build the following report A, all data is present for 20 markets:
A - Market (property dim) , Unit Count (property dim), QTD Revenue (fact)
When I build the following report B, all data is present for 20 markets:
B - Market (property dim) , Unit Count (property dim), QTD_AGO (fact)
When I build the following report C, I am missing unit count for 3 markets of the 20 markets:
C - Market (property dim) , Unit Count (property dim), QTD Revenue (fact), QTD_AGO (fact)
If I remove one of the markets that properly displays from report C, all unit counts appear. If I display just the 3 markets missing unit counts, their unit counts appear.
I have tried several redesign approaches, looked for data issues, cleared cache, waited for data to refresh, and I can’t get this to work. Would the materialized view cause any issues? ANY ideas/suggestions are MOST appreciated!
Note – OBI 10g on Oracle databaseHi
If time dimension lowest granularity is month then how can you get data at day level that is Quarter to Date??
set the fact LTS content tab at proper dim levels.
and set the chronological ket at lowest level and other levels based on your req.
Thanks
Jay. -
Time Series Functions in Answers
Is it possible to use AGO in Answers? If I use the same syntax I do in the Admin tool, i get a syntax error. Is this possible/ what's the syntax?
Unfortunately, that doesn't quite do the trick.
I need to be able to show a list of Quarters and the corresponding increase/decrease from N quarters back
e.g,
year quart dollar increase
2005 Q1 $1000 %50
2005 Q2 $1000 %50
where the increase is dollar/(dollar from k quarters back) -
Use of time series functions with horizontally fragmented fact tables
Hi Guys,
in OBIEE 10g it wasn't possible to use time series functions [AGO, TO_DATE] on horizontally fragmented fact tables. This was due to be fixed in 11g.
Has this been fixed? Has somebody used this new functionality? What the the limitations?
Tkx
EmilHello,
Can you give us some examples for "horizontally fragmented fact tables", we can tell you whether we can do that or not?
Thanks, -
Time series function - everything UP TO start of year
Hi,
I have a requirement to do the following in OBIEE 11.1.1.6.9 however am having some trouble. Basically we have an analytic which is filtered for the current fiscal year for financial actuals:
So running gives us something like:
Year Amount
2013 £1000Now what I need to do is show a single column which represents the actuals for all years prior to the one selected.
So for example, if I had the following dataset:
Year Amount
2010 £500
2011 £500
2012 £750
2013 £1000...and I filtered by year 2013, I would want to see:
Year Amount Previous Years Total
2013 £1000 £1750I wont know how may years this can go back (ie, could be many and variable) so can't just add up successive AGO() statements. I know I could not filter on 2013 directly and then use "FILTER(amount) using year" on the first column, but that seems very inefficient, especially seeing as the actual analytic contains a lot of other columns which would all need to have the same done.
If anyone can shed any light on how this might be done using time series functions then I'd really appreciate it.
Thanks,
John.No requirements are the same :). The analytic is restricted to a single year (i.e. to show that years actuals), but I need to show also everything which occurred in the previous YEARS since the beginning of time. So take for example I have a project XYZ which is being costed on a year by year basis. My requirement is to show something like:
Year Proj Prev Curr TTL
2013 XYZ £100,000 £1000 £101,000So I've spend £1000 this year, but £100,000 in all previous years. To I know that to date this project has cost me £101,000. Hope that makes a little more sense! -
Time series functions in OBIEE
Hi
I am new to OBIEE.
In Report i want to use the AGO function to find the previous quarter revenue
But the AGO function requires time dimension level as shown in following syntax
how should i insert it in the function
Syntax
AGO(expr, [time_level], offset)
Thanks
SravanthiOnce you have day dimension with checked for 'Time dimension'
you can see day dimension in rpd expression builder, once you select the function you'll choose each columns.
for ref:
Check these links
http://gerardnico.com/wiki/dat/obiee/ago
or
http://iniu.net/content/obiee-time-comparison-using-time-series-function-ago
Pls mark as correct -
Strange Question on Time Series Function
Hi All,
I find a strange question when i use time series function. The result of report like this:
-----year area revenue year_ago_revenue
1、 2009 a 100
2、 2009 b 100
3、 2010 a 200
4、 2010 b 200 100
the last column's value of row 3 is null, but it must be 100, I execute the physical sql in log file in database, the result is 100, but show null in report, why? I really can't understand. Any one know why? Thanks.For the report which is working correct, what level of information you are seeing? In that report whether the Year Ago is working correctly.
In time hierarchy, how did you set the chronological keys?
Thanks,
Vino
Edited by: Vinodh NK on Jul 23, 2010 2:56 AM -
Time Series Function not doing it right
Hello guys
I have setting up the time dimensional hierarchy with Year -- QTR---Month--- Days order..
I have a measure call 'Forward Amt' which needs to applied with Month-to-date calculation. Therefore I am using time series functions.
I have copied the same measure and renamed it as 'MTD Forward Amt' and defined the todate function according to the syntax:
TODATE("Forward Details"."Forward fact"."Forward Amt", "Forward Details"."DatesDim"." Dates Month")
I set everything according to the standard steps
In the presentation however when I am running reports using dates = 03/10/2010, I am getting:
Month Forward Amt MTD Forward AMT
3 3000000 The $3000000 is actually correct value for the date 03/10/2010, but the MTD Forward AMT is empty..
For further investigations, I decided to take out the date column and date filter, then I got:
Month Forward Amt MTD Forward AMT
1 500000000
2 10000000
3 349000000
4 500000000
5 10000000
6 349000000I don't think this is correct result of the todate function at month level..
Could anybody suggestion any approach for me to investigate this behavior?
ThanksI’ve got Live Trace so I can’t vouch for Image Trace, but if what Monika says is right (and it usually is) you can select the areas with black fill and lock them. Then delete the stuff that isn’t coloured.
I believe that Image Trace has the possibility of producing stacks rather than compounds (like Streamline in the old days).
You should definitely go for stacks. They make editing much easier. -
HI all,
I use Time Series Function to get year ago Revenue, in fact table , the date is from 2007 to 2010, but in report,
it has one row of 2011, the Revenue of 2011 is null, and year ago Revenue is 2010, the report like this:
year Revenue year_ago_Revenue
2007 __50________
2008 __80________ 50
2009 __100_______80
2010 __120_______100
2011 ____________120
I want to remove the row of year 2011, how can i do that?Since you only asked how to get rid of the 2011 line, here are two ways:
1) Filter on Time.Year column <> 2011
or better
2) Filter on Time.Year column <> YEAR(CURRENT_DATE)+1
Maybe you are looking for
-
Sequence issue with Toplink 9048
We are trying to get sequences to work using Toplink 9.048 but keep getting errors. We reference are sequences in our descriptors like the following: descriptor.setSequenceNumberFieldName("ACRS_APPOINTMENT.ID"); descriptor.setSequenceNumberName("ACRS
-
Buddies phone/camera icon keeps disappearing
I"m logged onto ichat, but after some time the icons for audio/video chats next to my buddies start disappearing. It doesn't happen to all of them at once or even to certian buddies...it's very random. what causes this and how do i fix it? macbook pr
-
How to un-freeze my ipod touch
can someone help me on how can I un-freeze my ipod touch
-
Final Cut Pro X 10 Export Error
Hey Guys, When I try to export a fcpx 10 progect i get an error saying The operation couldn't be completed. (com.apple.Compressor.CompressorKit.ErrorDomain error -1.) how do i fix this thanks
-
I was given the task to create a line of code that would count the frequency of each number, boldarray[counter]*bold*. I'm stuck because the numbers are randomized and I am suppose to find the count for each of the random numbers, seeing as only 10 o