Comparing AGO vs TODATE - few time-series questions

Hi All,
I just thought that someone might actually shed some light on the following situation.
I'm using AGO function for reporting CY, PY, PY-1 - etc.
So, AGO is essentially showing the value (or aggregated value) of the metrics at the same time period - and I usually use year, not months in the function.
Now, my understanding is that when I have CYTD and PYTD - I must use TODATE function. Please correct me if I'm wrong. Like if I need to show % variance over different times periods (Previous year to Current Year) and the current year data MUST be compared to the same data in the previous year. For example, if we are in January of current year, the comparison must be between Oct-Jan of current year to Oct-Jan of previous year, not the full previous year.
Here, I should probably use months' level in this situation, correct? Please correct me if I'm wrong.
Is TODATE getting a current system time and date? Or Do I need to go about creating a dynamic variable Current Month?
UPD:
http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/
this is very helpful actually
Message was edited by:
wildmight

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

Similar Messages

  • Time series questions - how to do AGO function for prior year end

    Question on how to perform the following calculation in OBIEE:
    I need to create a time series calculation that will calculate a metric as of Dec prior year. For example, my users will select Mar 2010. I want to show the amount for Mar 10 as well as the amount for Dec 09. If the select Jun 10, I will show them the amount for that month as well as Dec 09.
    Is there a way to do an AGO function that will give me this value? I can't use a filter calculation on my column because filter on the period will exclude these records

    Thanks John. Your suggestions seems promising but I'm having issues when I tried it out. I am receiving the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Fiscal Period, Prior Fiscal Year End Date') must be a static level. (HY000)
    What I did was create a new level off my Fiscal Time dimension which is a child of Total. I tried creating my AGO calculation using this level but received that error message in Asnwers. Any ideas on what I may be doing wrong?

  • Time series question

    Hi,
    From the Time Series documentation, it looks ike we have to
    create an IOT table in order to use time series functions (fill
    for example).
    We have a table with several columns and few million rows. It is
    not an IOT table. Can I apply time series functions on data
    coming out of non-IOT table ?
    Thanks
    Vissu

    Hi,
    If you don't have data in period table then how you can expect the values.
    For more reference on time series functions look @ this OBIEE -Time Series in OBIEE
    It will give you more information.
    Regards,
    VG

  • Time Series Question - How to avg for Period children but not parent

    I have a calculated account I'm trying to have average at the Period Child level but have the Period Parent level do a straight calc on the totals. My cube is set up like this:
    Period
    - Jan
    -- JanWeek1
    -- JanWeek2
    -- JanWeek3
    -- JanWeek4
    -- JanWeek5
    Account
    - BIlled Hours
    - Revenue
    - Avg Houly Rate = "Revenue" / "Billed Hours" (I have time series set to average)
    My issue is that at the Week level things are averaging correctly, But at the Month level it is taking the average of the 5 weeks. How can I get it to just look at the total Revenue for the month divided by the total Billed Hours (while still having the weeks do an average?)
    Thanks in advance for any guidance.

    You probably don't need to use Time Balance Average at all for this calculation. I'd suggest setting the member to Time Balance None, then tag it as 'Dynamic Calc', and finally tag it as 'Two-Pass', to ensure that the Revenue / Hours calculation is done after the period roll-up.
    I think that would give you the result you want.

  • Dynamic Time series question

    Hi, I'm fairly new to essbase. I have a time dimension as below.Period1 -Day1 to Day35Period2 -Day36-Day63......Period12 - Day337-Day364.I'm trying to get a Period to date value, but Essbase always seems to give me 'To-Date' value by using DTS. What I need is to be able to select the Period as my latest time period. Any help will be appreciated.ThanksHarsha

    Basically DTS is set on the outline. You specify which gneration. your PTD value is at (gen2 from what I can see from your posting).The latest time period is set by the user in their options (Display tab, at the bottom). Then when the user enters p-t-d in a time dimension area of the spreadsheet, the p-t-d is up to the period specified in the options. Or you can specify p-t-d(day14)Therefore, taking your structure p-t-d with day 13 specified would give you day1 to day 13, with day 45 specified would give you day 36 to day 45 abd so on ...Period1 -Day1 to Day35 Period2 -Day36-Day63...... Period12 - Day337-Day364. Hope this helps.

  • 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

  • YTD, MTD, YAGO, Function (Time-series Functions TODATE, AGO) Like OBIEE

    Dear BO Gurus,
    I am a newbie to business object. I would like to ask are there any ready made time series functions which can be used in the BO Semantic layer (universe).
    Like Year to Date, Year Ago. Functions like TODATE and AGO functions found in OBIEE semantic layer (siebel analytics). It was just simple there, I had to use the function on the semantic layer and BI server would raise the query to get the answer.
    The syntax was
    Todate(measure, time_dim_attribute)
    Ago(measure, Time_Dim_Attribute, period)
    Thanks & Regards
    Ishaq

    Dear Gurus,
    There is no DB function in oracle to do this (AGO/TODATE).
    OBIEE issues time-series queries, in the form of AGO and TODATE. AGO gives you, for example, the value of sales one month ago or one quarter ago, whilst TODATE gives you the total of sales month-to-date, or quarter-to-date, or year-to-date. Both of these time-series functions rely on the existence of a time dimension in your business model and mapping layer, with the period you can refer to in the AGO and TODATE functions being determined by what levels you have in this time dimension.
    This eliminates the need to create and store complex time-based
    reporting tables.
    I would only like to know does the universe designer has this sort of functionality which is present in OBIEE semantic layer. Or I need to create and store time-based reporting tables.
    The question can best be answered by some-one has worked on both the BI platforms (OBIEE and BO).
    Thanks & Regards
    Ishaq

  • SQL for Time Series Functions AGO and YTD

    When we use a time series function such as AGO or TODATE, OBIEE creates 2 physical queries. One query reads the calendar table. The other query reads the fact table without any date filter in the WHERE clause. Then the results of the 2 queries are stitched together. The query on the fact table returns a lot of rows because there is no filter on date.
    Is there a way to force OBIEE to put a filter on the date when performing the physical query on the fact table when using AGO or TODATE?
    Thanks,
    Travis
    v11.1.1.6

    We do have a date filter on the analysis. We need the analysis to show sales for a certain month and sales for that month a year ago, so we use the AGO function. However, it is really slow because it does a physical query on the sales table without filtering on date and then filters the results of that physical query by the dates from the physical query on the calendar table.

  • 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

  • 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,
    Avinash

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

  • Bad performance due to the use of AGO and TO_DATE time series functions

    Hi all,
    I'm building an OBI EE Project on top of a 1TB DW, and i'm facing major performance problems due to the use of the AGO and TO_DATE time series functions in some of the Metrics included on the reports. I discovered that when a report with one of those metrics is submited to the DB, the resulting query/explain plan is just awful!... Apparently OBI EE is asking the DB to send everything it needs to do the calculations itself. The CPU cost goes to the roof!
    I've tried new indexes, updated statistics, MV's, but the result remains the same, i.e., if you happen to use AGO or TO_DATE in the report you'll get lousy query time...
    Please advise, if you have come across the same problem.
    Thanks in advance.

    Nico,
    Combining the solution to view the data in dense form (http://gerardnico.com/wiki/dat/obiee/bi_server/design/obiee_densification_design_preservation_dimension), and the use of the lag function (http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_period_to_period_lag_lead_function) appears to be the best solution for us.
    Thanks very much.

  • Like Time Series function AGO, but for Future calculations

    Hello All,
    Is there a time series function that can do the same as AGO but going forward?.
    I tried using the same AGO function but adding <<number of periods>> = -1, but that didn't work.
    I'm interested on getting daily, monthly or yearly future calculations.
    Thanks.
    Edited by: PabloC2 on Mar 3, 2009 1:37 PM

    Hi
    try this
    and in 6th point of blog entry, you may need to put plus symbol to add
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    i didn't check.. but hope it works out

  • Time Series Function Question

    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

  • Time series and Order series questions

    Hi Guys - Need some help in understanding/Visualizing some basic APO concepts. I do not want to move further without understanding these concepts completely. I did read sap help and couple of apo books but none gave me a complete understanding of this very basic concept.
    1. Data is stored in livecache in 3 different ways. time series, order series and atp time series. for now I am concentrating on just time series and order series. Can some one help me understand with an example how data is stored in time series and how it is stored in order series? I read that data which is not order related is called time series data and which is order related is called order series data.
    My query is even in DP time series data, data is stored with respect to product and location that is transferred to snp. In SNP too data is processed with respect to product and location. so what is the difference in time series data and order series data?
    2. what are time series key figures and what are order series key figures? I read safety stock for example is a time series keyfigure. why is it not a order series key figure? what makes a keyfigure time series or order series? can some one xplain this in detail with an example or numbers?
    3. there is a stock category group in snp tab of location master LOC3. Stock category should be product related right? how is this related to location and what does this field mean in location master
    Thanks a lot for your help in advance. Please let me know if I am not clear in any of the questions.

    Hi,
    Time series:  Data is stored in buckets with no reference to orders.( If you place the mouse on time series data and right click for
                         display details , you will not find any information.
                          Suitable for tactical planing and aggregated planning. Usually in demand planning.
    Pre requisite: 1. You need to create time series objects for the planning area.
                           2. When creating planning area you should not make any entries for the Key figure in the field Info Cube, category
                               and  category group.
                           3. When creating planning area any entry you made in the field Key figure semantics with prefixed with TS.
                               (Optional entry)
    Order series: Data is stored in buckets with reference to orders.( If you place the cursor on the order series data and right click
                          the mouse for display details , you will find information of order details.)
                         Useful for operative planning.
                         *You will have real time integration with R3.
    Pre requisite: 1. You need to create time series objects for the planning area.( though you are creating Order series)
                          2.When creating a planning area specify a category or category group or enter a key figure semantics with prefix
                            LC.
                         3. When creating planning area you should not make an entry for the key figure in the field Info cube.
    Thanks,
    nandha

  • Unable to create time series ago function

    Hello guys
    I am running into a problem about time series function, ago function
    I have a simple schema, fact <---->Time dimension
    I have created time dimension hierarchy where month is the lowest level, I have also made it "time dimension" and month is the "chronogical key"..
    When applying ago function, I am putting my measure from the fact table, level as "month" from time dimension table, and 1 meaning 1 month ago, when I complile it, I get the following error:
    [nQSError: 27009] Unresolved identifier: "FTTNBILLSUM"."FTTNOBIEEBILLTIME"."Month".
    Could anybody help me out as what the system doesn't like about this column?
    Thanks

    Thanks Maden
    I did the correction and now it's giving a different error: [nQSError: 22038] Function AGO requires at least one measure attribute in its first argument.
    My code is:
    Ago("FTTNBILLSUM"."F_Bill_Sum"."ATM_UNITS_Sum" , "FTTNBILLSUM"."D_Time"."Month" , 1)
    I have time hierarchy that names: D_Time with Month at the lowest level with Chrono keys, there is no level above it except grand total level, so only 2 level hierachy
    I have a fact table that is F_Bill_Sum, which is join to D_Time... I made the D_time both the name of table and hierarchy
    Please let me know what this error is coming from
    Thanks

Maybe you are looking for

  • Devices and I are in one city but time zone and location based apps show devices location in another city

    iPad2 with IOS 8.1.2 located with me in Eastern Time Zone city but settings under General reflects Central Time Zone(Chicago).  All location based Apps are reflecting a Central Time Zone city, one that I have never visited.  I did an erase and restor

  • Get the count of rows in a table control

    Hi Experts,   How do I get the count of the rows in a table control during run time. I am developing a BDC in which I have to check all entries in a table control. My requirement is to get the total number of rows in a table control dynamically. Than

  • Need Sequence for this logic

    Hi, I need sequence for autogenerate of code Table 1 id     code We need to autogenerate code for every new entity of id  ex: id          code sbi        sbi001 hsb        hsb002  xyz        xyz003 And ex: id          code sbi      s001 hsb     h002

  • How to include a message with photo in Win Live and LR4

    I have Win 7 - 64 bit, Win Live Mail and LR 4.  I can attach the photos and send the email successfully but cannot include a message.  It puts my message into a HTML Doc next to the photos.  How can I access the body of the email to write my message?

  • IChart- x-axis data grouping

    Hi Experts, How can we do x-axis data grouping in icharts??? In the below example I have shown a date and shift wise grouping in x-axis Is it possible in x-axis??? Thanks in advance!!! Regards, Vinothkumar G.