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 AM

same functionality was achieved using below formula
(A-B)/B
A=PERIODROLLING(x,-3,0)
B=PERIODROLLING(x,-4,-1)

Similar Messages

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

    Use 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
    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

  • Issue with nested aggregated in time series

    Hi Experts,
    I have a small requiremnt using time series.
    eg : (sum(current year4:Quarters bookingamt)-sum(previous year4:Quarters bookingamt))/sum(previous year4:Quarters bookingamt)
    Bookingamt is My measure Name.
    how do we implement above logic can please help regarding this.
    Thanks,
    C Mahesh

    Hi Mahesh,
    These functions help to obtain the data analyzed based on the time. There are two types of Time Series in OBIEE viz..
    1) Ago
    2) To Date
    Following are the prerequisites and procedure to create time series function in OBIEE RPD.
    a) Create a dimensional Hierarchy (ex: YearàQTRàMonth) and convert it to the time dimension. DC on hierarchy and check the box time dimension.
    b) Define the Chronological Key. A chronological key should always be the lowest level in the table and the data in it should be in the format of 20090102 or 200109 (year, month format). DC on level (preferred/last—detail) go to KEYS tab and check chronological key.
    c) Duplicate the existing column, rename and specify the formula for the column.
    1) Ago: This function when specified in any column displays data that is month ago, 2 months ago depending on the specified formula. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series and then AGO. Then in metric go to logical tables and select metric and in level go to time dimension and select month (1 month ago) and give the period as 1(since it is 1 month ago) then transfer two new columns to presentation layer
    Ex: sales: 100,200,300 à -, 100, 200 (1 month AGO).
    2) To Date: This functions allows us to display the aggregated measures based on the formula specified. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series then select TO DATE. Select metric from logical tables (revenue) and as level go to time dimension and select year(YTD) and OK.
    YTD- year to date – Displays aggregated values that is with respect to month since it is YTD. Similarly for QTD and MTD.
    Ex: sales: 100,200,300 à YTD Sales: 100,300,600
    http://www.rittmanmead.com/2007/04/obi-ee-time-dimensions-and-time-series-calculations/ -- How to implement step by step with screen shots.
    http://www.oraclebidwh.com/2009/12/time-series-wizard-in-obiee/ -- you can understand easily how to implement this with screen shot.
    Hope it help's
    Thanks,
    satya

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

    Kris,
    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

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

  • 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:
    aru

    Arumugam,
    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 database

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

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

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

    Once 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?
    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.

  • 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

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

Maybe you are looking for

  • ERROR MESSAGE WHEN I PLUG IN THE MINI

    THE SPECIFIED I/O OPERATION ON DEVICE/HARDISK/DR5 WAS NOT COMPLETED BEFORE TIME-OUT PERIOD EXPIRED. ( WITH OPTIONS TO EITHER: CANCEL.......... TRY AGAIN............OR CONTINUE. WHAT DOES THIS MEAN & WHAT SHOULD I DO ???

  • Ipad iTunes rental volume

    Just rented my first movie on my iPad and the volume is too low even at the highest setting. The preview for the movie was plenty loud, but the rental is unwatchable. I've checked my volume settings on the iPad and it is set to the highest level. Any

  • Use of Zero (0) in Required Drop-Down List Field

    Using LiveCycle Designer ES 8.2.1x and Acrobat Pro Extended 9.1.2. I have a drop-down list (DDL) on a form for entering a quantity.  For certain reasons (i.e., quantity bundling/packages), I want to use a DDL. For one thing, if I set the default valu

  • FDS destination metadata tag

    Can anyone point me in the direction of information regarding the <metadata> tag in an FDS destination?

  • Final Cut Pro X: How to not get it to crash.

    Most times when I use Final Cut Pro X, sometimes it crashes and I have no idea how it is doing that. Can you please do something that can help me stop Final Cut Pro X from crashing?