Doubts regarding Time Series Measures

Hi,
In my instance i have two calendars
1) Enterprise(or) Fiscal Calendar (Aug to July)
2) Gregorian Calendar (Jan to Dec).
So now my question is if we apply To Date function using Both Calendars how will it work.
For ex: If i create an Year To Date function using Gregorian Calendar then it will fetch results from Jan 1st to Till Date. And same if i used Enterprise Calendar then it will fetch results from Aug 1st to Till Date.
Is my above understanding correct. Correct me if am wrong any where.
And now i have one more requirement, My client wants to change the dates in the calendar i mean for Fiscal Calendar they dont want from (Aug to July) but From (Dec to Dec) is this possible, if so please clarify how and where..
Help is greatly appreciated.

Raj,
For your requirement I wrote a procedure in which for the date '01-jan-2010' it converts to the financial year of '26-Dec-2009' and the same is updated inside your calendar_table in the column fis_dat based on which you can easily find your fiscal_year, month and so on. The same can be much simplified and i ll update if find time.... Check and revert me back.
Create or replace procedure fin_cal
as
begin
DECLARE
temp_date date;
fisc_date date;
temp_fisc_date date;
previous_date date;
pre_year int;
year_date int;
cursor c1 is select trunc(date_time) from dates1 where time_key >= 20100101 and time_key <= 20120101 order by trunc(date_time); // calculated from 1st jan 2010 -2012
begin
open c1;
loop
fetch c1 into temp_date;
exit when c1%notfound;
year_date:=to_number(to_char(to_date(temp_date,'dd-mm-yy'),'yyyy'));
pre_year:=year_date-1;
if to_char(temp_date,'dd')='01' and to_char(temp_date,'mm')='01' then
fisc_date:=to_date(pre_year||'12-24','YYYY-MM-DD'); // the initial date is 24-12-prioryear...
dbms_output.put_line(fisc_date);
update dates1 set fis_dat=fisc_date where trunc(date_time)= trunc(temp_date);//fis_dat is the column in the table
else
select fis_dat into previous_date from dates1 where trunc(date_time)=trunc(temp_date)-1;
temp_fisc_date:=TO_DATE(TO_CHAR(previous_date,'YYYY-MM-DD'),'YYYY-MM-DD') + 1;
update dates1 set fis_dat=temp_fisc_date where trunc(date_time)= trunc(temp_date);
temp_fisc_date:='';
end if;
end loop;
end;
end;
begin
fin_cal();
end;
Regards,
Anitha.B

Similar Messages

  • How can you build time series measures in OBIEE without using TODATE AGO fu

    How can you build time series measures in OBIEE without using TODATE and AGO function?
    Please provide steps to build time series
    measures in OBIEE without using TODATE and
    AGO function. Dashboard results not storing
    in cache when using TODATE and AGO functions.
    eventhough its cached users queries not
    hitting cache because queries doesn't match
    exact date time when using TODATE and AGO
    functions. so I want to build queries using
    sysdate and some simple calculations. Please
    send your inputs/ideas for my questions..
    Thanks in Advance

    This can be using Msum function in answers. Use the following formula, here dollars is my metric. Change the formula based on your metric.
    Msum("Sales Measures".Dollars ,2) - "Sales Measures".Dollars
    the report will be cached and better performed compared with time series. check ti
    - Madan Thota

  • Time Series Measures

    Greetings All,
    I created two time series measures in a fact table using AGO and TODATE - e.g., last month sale and year to date sales
    In Answer when I select one of these two fields the data returned are correct. However, when I select both fields in a report I am getting error: column does not exist in this table.
    Is selecting two or more time series measures not allowed?
    Here is the entire error msg:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT Calendar."Calendar Month Name" saw_0, "Sales Facts"."Amount Sold" saw_1, "Sales Facts"."Last Month Sales" saw_2, "Sales Facts"."Change From Last Month Sales" saw_3, "Sales Facts"."Month To Date Sales" saw_4 FROM SH WHERE Calendar."Calendar Year" = 2001 ORDER BY saw_0
    Thanks for your help.

    Thanks for your response.
    Yes, I have Calendar Month Name in Month level and it is indeed not unique. How do I remove it?
    OBIEE version 10.1.3.3.1
    I am using the tables from SH schema for testing.
    The chronological key is Times Id which to the best of my knowledge is correct.
    I tried the following:
    Highlight Calendar Month Level > right click > Display Related > Logical Key > Edit > unchecked Use for drilldown.
    Moved Calendar Month Name under Times Detail
    After This change the Times dim levels are as follows:
    Time Total
           Year
                Calendar Year
                Calendar Year ID
              Quarter
                   CalendarQuarter Desc
                   Calendar Quarter Id
                   Month
                         Calendar Month Desc
                         Calendar Month Id
                      Times Detail
                         Time Id
                         Calendar Month Name                        After this change,
    (1) I can select Calendar Month Desc, Last Month Sales and Month to Date sales and the results are correct.
    (2) However, when I add Amount Sold to the query in (1), I am getting error with following msg:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16015] SQL statement execution failed. (HY000)
    SQL Issued: SELECT Calendar."Calendar Month Desc" saw_0, "Sales Facts"."Amount Sold" saw_1, "Sales Facts"."Last Month Sales" saw_2, "Sales Facts"."Month To Date Sales" saw_3 FROM SH WHERE Calendar."Calendar Year" = 2001 ORDER BY saw_0
    (3) In (1) Replace Calendar Month Desc with Calendar Month Name and the numbers for Month To Date Sales are not correct.
    Any suggestion?
    Thanks.
    Message was edited by:
    rxshah

  • Regarding Time Series Graph in OBIEE 11g

    Hi,
    I need to create a time-series graph in OBIEE 11g. However, the value for time on the x-axis of the graph automatically comes for days.
    Is there any way to change it to hours or minutes?
    Thanks,
    Naman Misra

    Yes, it shud be a prob. Try using seperate tables for fact n timedim

  • Time Series Measure : ToDate

    Hi experts,
    I have been facing a problem,for which I need your help.
    I want to calculate No. of Pending claims till date....
    I am trying achieve it using ToDate Function.
    ToDate(Cliam Fact.Pending Claim,Year)
    But, If I select Year=1999 it will show result like this
    Pivot View :
    Jan-1999 Feb-1999 Mar-1999 ....................
    Pending Claims 10 15 9
    ToDate_Pending 10 25 34
    I want to calculate pending claims before Jan-1999 also
    for ex. till Dec-1998 : if pending claim count is 210
    then for Jan-1999 it has to show ToDate_Pending =220..
    Can we get this by applying ToDate function on TotalLevel of Period Dimension Hierarchy?
    Or do you have any better suggestion for this problem.....
    Plz, reply ASAP.

    As I understand, it's not a YEAR to date, because you don't want the cumul start from 0 each year. Is it right ?
    If so, just try a "running sum" in the pivot table.
    You will have these results :
    Dec-1998 / Janv-1999 / Fev-1999 / Mar-1999
    210 / 220 / 235 / 244
    Jan-1999 Feb-1999 Mar-1999 ....................
    Pending Claims 10 15 9
    ToDate_Pending 10 25 34
    If you need to "break" in function of another dimension, then use the RSUM function with "by" (ex : Rsum(measure by Category_product) )
    (or Rcount, depending on what is your aggregation of your measure).

  • Time series functions are not working for fragmented logical table sources?

    If i remove that fragmented logical table sources, then its working fine.
    if any body know the reason, please let me know.
    thanks and regards,
    krishna

    Hi,
    is because the time series function are not supported for the framentation content, see the content of the oracle support:
    The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
    Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
    Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
    Regards,
    Gianluca

  • Time series functions are not working in OBIEE for ESSBASE data source

    Hi All,
    I am facing a problem in OBIEE as I am getting error messages for measure columns with Time series functions(Ago,ToDate and PeriodRolling) in both RPD and Answers.
    Error is "Target database does not support Ago operation".
    But I am aware of OBIEE supports Time Series functions for Essbase data source.
    using Hyperion 9.3.1 as data source and obiee 11.1.1.5.0 as reporting tool.
    Appreciate your help.
    Thanks,
    Aravind

    Hi,
    is because the time series function are not supported for the framentation content, see the content of the oracle support:
    The error occurs due to the fact the fragmented data sources are used on some Time series measures. Time series measures (i.e. AGO) are not supported on fragmented data sources.
    Confirmation is documented in the following guide - Creating and Administering the Business Model and Mapping Layer in an Oracle BI Repository > Process of Creating and Administering Dimensions
    Ago or ToDate functionality is not supported on fragmented logical table sources. For more information, refer to “About Time Series Conversion Functions” on page 197.
    Regards,
    Gianluca

  • Hi Time series comparsion error

    Hi
    i am practising Obiee labs i got these problem, Time series error
    I created Time Series measure in my Fact and saved with out error it thou,In answer when i selected those columns to compare with Dollar iam getting these Error
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: Ago(Dollars:[DAggr(SalesFacts.Dollars by [ Periods.Month Code, Periods.Year] )], [Level Month], 1). Please fix the metadata consistency warnings. (HY000)
    SQL Issued: SELECT Periods."Year" saw_0, "- SalesFacts".Dollars saw_1, "- SalesFacts"."Change Month Ago Dollars" saw_2, "- SalesFacts"."Percent Change Month Ago Dollars" saw_3 FROM SupplierSales ORDER BY saw_0
    Let me know what do you mean by these Error?

    Hi,
    have you checked that your .RPD file doesn't have any consistency errors or warnings?
    Regards,
    Monica

  • Ti me Series Measures

    Hi All,
    We have created Time Series Measures using TODATE and AGO functions.
    In Answers while creating reports if we just bring measure (# SR's MAGO) we are getting result as below
    # SR's MAGO
    12
    13
    We have data for 2 years.
    is this the expected behavior of this measure, we are understood that we will get only one row of data.
    Regards,
    Somu

    Hey..
    Tell first.. is that measure assigned to any hierarchy level?
    Have you seen the query generating by BI Server?
    It involves that particular ID of the hierarchy level. and also in group by..
    take that query and run in TOAD or any tool..
    You find.. the same result there also..
    I think this is enough to prove you the behavior..
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Jan 7, 2009 3:28 PM

  • Combining Time series functions, is it possible?

    Hello
    I have a requirement where I have to create time series measures. The Todate function and the ago function is pretty straightforward, however, it is required to also have last year Month to date, last year quarter to date measure, is it possible?
    For example, for quantity sold measure, I have created MTD, YTD Quantity Sold and Year Ago Quantity Sold. Now when running report on for July 2010, we will get the total Quantity return between Jan to July of 2010, and based on that, it is required to also view the total Quantity Sold of the same period (Jan 2009 to July 2009)of 2009. Is it possible for this?
    Another challenge i am dealing with is that if the current date is not the end of the month, let's say Oct 10th 2010. Since it has only been 1 week of Oct, they want to also get 2009's first week of Oct instead of the entire Oct of 2009. In this case, how is it implemented?
    Any advice will be greatly appreciated
    Thanks

    it is required to also have last year Month to date, last year quarter to date measure, is it possible?Yes, possible with time series functions..
    for calculating prior ytd,
    ToDate(Ago(measure, YearLevel, 1), YearLevel) last year Month to date:
    try this(din't test, but give a try)
    ToDate(Ago(measure, YearLevel, 1), MonthLevel)last year quarter to date:
    ToDate(Ago(measure, YearLevel, 1), QuarterLevel)btw, need to close your threads if answered...
    Edited by: Kishore Guggilla on Oct 26, 2010 11:31 PM

  • Time Series Functions

    I have added a time series measure in RPD
    Year Ago Sales = AGO("Enterprise Analytics"."Facts Sales Fact"."Sales Le $" , "Enterprise Analytics"."Hierarchy Time"."Fiscal Year" , 1)
    If I pull 'Year Ago Sales' in Answers it takes forever to run it - ( 5-6 minute) - The result is correct.
    If I simply pull - "Enterprise Analytics"."Facts Sales Fact"."Sales Le $" - runs in 5 seconds.
    Is thier any way I can optimize the timeseries functions?
    Any response would be greatly appreciated!!
    We are on Oracle Business Intelligence 11.1.1.6.5 version.
    Edited by: ann 2012 on Mar 14, 2013 2:13 PM

    1. Create an alias fact table (Year Ago) to pull last year value.
    2. Extend your fact table to store another measure (last year sales)
    3. Based on volume of granular data and query pattern on year ago measures, you may create aggregate fact tables.
    hope this helps.

  • Time Series Wizard in OBIEE 10.1.3.3

    How do I accomplish the TIME SERIES WIZARD functionality that was present in Siebel Analytics 7.7 in OBIEE 10.1.3.3. This comparison measure feature seems to be removed in OBI.
    Any inputs will be greatly appreciated.
    Thanks.

    There are several problems with the OBE given in the first url (http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t11)
    (1) pre-built repository and other files (e.g., SH_PartTwo.rpd, SHQuota.xls) cited in the example are not included with download- at least not with 10.1.3.3.1 version I downloaded. When followed instructions to open SH.rpd (included in the download of 10.1.3.3.1) gave error and could not open it. (My DB version is 10.2, op system XP professional)
    (2) Looks like this OBE is a newer version - under Build Diemension Hierarchies the steps 33 (Customer dim), 34 (Promotion Dim) and 35 (Time Diemension) have been removed. This is good because in the older version of this OBE the time dimension (given in step 35) was wrong.
    (3) In Create Time Measure section cannot select month ago sales and month to date sales columns together in a query. When selected together gave error: pls refer to this thread -
    Time Series Measures
    Hopefully the current version of this OBE will be updated with an example that has steps to create time dimensions (Calendar and Fiscal) and other steps so that columns created with AGO and TODATE functions can be selected together in a query.
    Thanks.
    Message was edited by:
    rxshah

  • Time series objects and order objects on what condtion we need to use

    Dear Experts ,
    I have question regarding Time series objects and order objects
    from my understanding
    TIme series objects the data is stored in time buckets without
    reference to orders.
    Order objects the data is stored as orders. Key figure data is
    then saved as orders if semantic 000 is entered in the detail view of the key
    figures in the planning area.
    my question is when to use the option 1 and when should not use
    same for option 2
    Many thanks
    Regards
    Raj

    Hi,
    This depends on the requirement you have also the application you are using.Like DP key figures are generally time series since in DP you do not need order numbers for example for history sales the requirement is the quantity period wise but not the order numbers.
    Again in SNP the distribution and planned quantities are required order wisecoz you need the order numbers you execute the same in ECC system or for Pegging purposes.
    Now the safety stock requirement can not be at order series since this is with relevent to some periods.
    So overall i can say this depends on the requirement of the kay figure.
    Hope this can help.
    regards,
    kaushik

  • Drilldowns on measure columns based on time series functions.

    Guys,
    I am new to OBIEE and i need your Help!! I have a dashbaord report which shows the sales USD for the colums below.
    REGION , PRIOR MONTH , CURRENT MONTH PRIOR YEAR , CURRENT MONTH PRIOR YEAR MTD , CURRENT MTD , ACTUALS YTD.
    All the measures are logical columns caluculated in the RPD using the Time Series Functions. The dasboard report has a Prompt Calender Date and all the measure values are caluclated based on the date entered in the prompt.
    For example if the Calender Date on the prompt is 5/31/2011 then the value for the PRIOR MONTH will the sales for APR-2011 and the value for CURRENT MONTH PRIOR YEAR will be MAY-2010 and so on.
    The business requirement is to provide the drill down capability on these measure columns. When i click the sales number on the prior month column it should give me all the detailed transactions for the month of APR-2011 considering the prompt for calender date is 31-MAY-2011.
    I have provided drilldowns based on the Navigation using the column interatcion but i am unable to understand how to provide the drilldown on the measure columns using the time series functions to caluclate the sales for PRIOR MONTH. CURRENT MONTH PRIOR YEAR...etc.
    Please Help!!!
    Thanks,
    Sandeep.

    1. Create an alias fact table (Year Ago) to pull last year value.
    2. Extend your fact table to store another measure (last year sales)
    3. Based on volume of granular data and query pattern on year ago measures, you may create aggregate fact tables.
    hope this helps.

  • 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
    Sreedhar

    Hello 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

Maybe you are looking for