Rolling months - Time series function

Hi,
I am new to OBIEE and this forum, and wondering someone could guide me through this requirement.
I have a requirement that User needs to see inventory for rolling past 13 months, and should display inventory numbers(snapshot) for the first day of the month.
Date     Inventory $
1-Jan-12     46652
1-Feb-12     25145
1-Mar-12     78542
1-Apr-12     45215
1-May-12     24156
1-Jun-12     98541
1-Jul-12     21478
1-Aug-12     25144
1-Sep-12     26545
1-Oct-12     48855
1-Nov-12     45698
1-Dec-12     12546
1-Jan-13     26586
How can I get past rolling 13 months in OBIEE? I have a variable created for "Rolling 13 months" and "First Day of month", but I guess they are not working when combined. Please advise.
Thanks,
P

If I understand correctly, I'd put a filter on the Date column using the Timestampadd function available in OBIEE. Something like:
"Table"."Date">= Timestampadd(SQL_TSI_MONTH, -13, MONTH("Table"."Date")
Let me know if this is not what you were looking for.
Please award points if helpful/correct.

Similar Messages

  • 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

  • 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

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

  • Time series Function

    Hello Folks,
    i have been trying to understand regarding the time series functions and time series calculations to compare two date columns like current date to month date ago.
    i know using AGO and TODATE functions, we can calculate the measures i.e. measures during this period(AGO) and measures till today(TODATE)
    apart from this, i heard from an expert that there are other two methods which can be used in compare two date columns
    can anyone please help me with this? i was trying to google eveything and couldnt get a clue. as the expert told me that i can not find those two methods in documentation, and have to try by own. i worked on it but couldnt get it
    so please help me ASAP.............ASAP....................ASAP
    thankyou
    kumar

    David,
    i know, using AGO function, we compare the measures for Month ago, quarter ago etc and using TODATE function, we calculate the measures from year to uptodate or quarter to uptodate.
    what exactly i am trying to know or understand is, without using any type of functions like ago and to-date and by just using Logical fact tables and dimensions and dimensional hierarchies, can we model a system to calculate the same values (customer name, current month sales, month ago sales) or (Customer name, current quarter sales, quarter ago sales) etc
    please pardon me if i am wrong in framing the question.
    thank you
    kumr

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

  • 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 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?
    Thanks

    I’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.

  • About Time series Functions

    Hi Gurus,
    How to implement time series(i.e. year ago,qtr ago,month ago) functions with out using any functions in 10G.
    how many types of imports we have in the physical layer.
    Thanks,

    Hi,
    Time series functions can be implemented in the BMM layer with a new logical column.
    Refer these links to implement
    http://allaboutobiee.blogspot.in/2012/03/time-series-functions-in-obiee.html
    http://gerardnico.com/wiki/dat/obiee/function_time
    mark if helpful/correct..
    thanks,
    prassu

  • How to apply time series function on physical columns in OBIEE RPD

    Hi,
    I know a way to apply time series function(Ago and ToDate) by using existing logical columns as the source. I have set the chronological key and created time dimension. In the expressiion builder for the same Time Dimension appears at the Top so that we can use its level.
    But I couldn't apply a time series function when i have to create a logical column using physical columns. In the expression builder for the same, Time dimension does not appear in the list. Neither can i use any column from the time dimension. Please let me know a way to do it.
    Thanks.

    Time series functions are - by design and purpose - only valid for derived logical columns and not useable inside physical mappings.
    If you want / need to do it on a physical level, then abandon the time series functions and do it the old-school way with multiple LTS instances.

  • 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

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

    Hello,
    Can you give us some examples for "horizontally fragmented fact tables", we can tell you whether we can do that or not?
    Thanks,

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

  • 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

Maybe you are looking for

  • Update wont download

    I have an update from 5.1 firefox but it wont down load. instead of the download bar being solid blue it looks like a blue and white barber shop horizontally that never stops

  • Problem in enter-query and execute-query in TEMPLATE.fmb in Oracle Apps R11

    I have created the form using TEMPLATE.fmb in Oracle Apps R11i. There is 2 problems listed below when it queries the records:- 1) Cannot query the record by the specific value e.g. Cannot retrieve the PO records by entering the specific PO number. 2)

  • Invoice as PDF

    Hi all, I need some advice. The task is to print the invoice as PDF-file and then mail it via SAP to the customer. Do you have any ideas how to do this? Thanks for all your answers. Florian http://www.mindsquare.de

  • Using SET SERVEROUTPUT ON in procedure

    Hi, Can I use SET SERVEROUTPUT ON inside a procedure. The reason is I am building a procedure in Toad and will execute in SqlPlus. In future I will only use SqlPlus to execute and view my result.

  • Help required for denormalisation

    Dear Expert Friends , We are developing a new Data Mart by using the existing tables in the data warehouse. I want to implement denormalisation to create the new tables to avoid unneccessary joins for faster retrieval of data. But My problem is : Tab