Variation calculation without time series?

Hi all.
I've got a pivot table like the one below. Time series is not implemented in the rpd, due to performance reasons. Is there a way to calculate the variation between two measures on two different dates in a pivot table (Difference column below), similar to what we achieve using the AGO() timeseries function. The dates are chosen by the user from a dashboard prompt, so I am not sure if calculated item would apply here and dynamic items ($1, $2) does not work too. The pivot table has more columns and rows than the example below.
_________________Dates
Product___01/10/11____02/10/11____Difference
A__________10_________15___________5
B___________8__________6___________-2
C___________8__________8___________0
Thank you.
Regards,
Edited by: user10634835 on 03-Oct-2011 01:54
Edited by: user10634835 on 03-Oct-2011 02:06
Edited by: user10634835 on 03-Oct-2011 02:08

Hi,
By using $2 - $1 in the new calculated item under pivot table view.
Ex:
Name 3-10-2011 1-10-2011 diff
dev 423 400 23
let say from date =1-10-2011 refer as $1
to date =3-10-2011 referd as $2
*$2-$1 will get any two date difference..fully automatically*
*100% it will work...i have also implemented the same*
Thanks
Deva
Edited by: Devarasu on Oct 3, 2011 5:18 PM

Similar Messages

  • Time Series in Oracle 11g

    Oracle 8i hase Time series for defining calendars and other functions. How does Oracle 10g/11g support Time series features. I could not find any information about Time Series in the 10g/11g documentation.

    Thanks a lot for the responses.
    I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
    I would like to explain with an example.
    1) The following query creates a table named stockdemo_calendars and defines a calendar
    named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
    but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
    CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
    name CONSTRAINT calkey PRIMARY KEY);
    INSERT INTO stockdemo_calendars VALUES(
    ORDSYS.ORDTCalendar(
    0
    ’BusinessDays’,
    4,
    ORDSYS.ORDTPattern(
    ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
    TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
    TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
    TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
    ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
    TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
    ORDSYS.ORDTExceptions()
    -------------- How can I create such calendars in 11g?
    2) For example, the following statement returns the last closing prices for stock
    SAMCO for the months of October, November, and December of 1996:
    select * from the
    (select cast(ORDSYS.TimeSeries.ExtractTable(
    ORDSYS.TimeSeries.ScaleupLast(
    ts.close,
    sc.calendar,
    to_date(’01-OCT-1996’,’DD-MON-YYYY’),
    to_date(’01-JAN-1997’,’DD-MON-YYYY’)
    ) as ORDSYS.ORDTNumTab)
    from tsdev.stockdemo_ts ts, tsdev.scale sc
    where ts.ticker=’SAMCO’ and
    sc.name =’MONTHLY’);
    This example might produce the following output:
    TSTAMP VALUE
    01-OCT-96 42.375
    01-NOV-96 38.25
    01-DEC-96 39.75
    3 rows selected.
    --------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g?

  • Time Series in Discoverer.

    Hi, wondering if anybody knows how I can use time series functionality in Discoverer3.1 and 3i?

    Thanks a lot for the responses.
    I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
    I would like to explain with an example.
    1) The following query creates a table named stockdemo_calendars and defines a calendar
    named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
    but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
    CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
    name CONSTRAINT calkey PRIMARY KEY);
    INSERT INTO stockdemo_calendars VALUES(
    ORDSYS.ORDTCalendar(
    0
    ’BusinessDays’,
    4,
    ORDSYS.ORDTPattern(
    ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
    TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
    TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
    TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
    ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
    TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
    ORDSYS.ORDTExceptions()
    -------------- How can I create such calendars in 11g?
    2) For example, the following statement returns the last closing prices for stock
    SAMCO for the months of October, November, and December of 1996:
    select * from the
    (select cast(ORDSYS.TimeSeries.ExtractTable(
    ORDSYS.TimeSeries.ScaleupLast(
    ts.close,
    sc.calendar,
    to_date(’01-OCT-1996’,’DD-MON-YYYY’),
    to_date(’01-JAN-1997’,’DD-MON-YYYY’)
    ) as ORDSYS.ORDTNumTab)
    from tsdev.stockdemo_ts ts, tsdev.scale sc
    where ts.ticker=’SAMCO’ and
    sc.name =’MONTHLY’);
    This example might produce the following output:
    TSTAMP VALUE
    01-OCT-96 42.375
    01-NOV-96 38.25
    01-DEC-96 39.75
    3 rows selected.
    --------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g?

  • Issue in new macro calculating values in time series in CVC

    Hi friends.
    I'm new in APO.
    I have a problem with a new macro in CVC which calls up a FM to calculate and store data.
    This new macro calculates the selected data in time series (TS) and e.g. we select 3 days to make calculation with this macro, the first selected day in TS is ignorated.
    We created this macro to do this calculation when user enter some manual values and want it to be calculated in the deliver points in CVC, by TS.
    This macro calls up my Z function which internally calls up a standard FM '/SAPAPO/TS_DM_SET' (Set the TS Information).
    Sometimes, this FM, raises error 6 (invalid_data_status = 6), but only when I user 'fcode_check' rotine together.
    After that, we call the FM '/SAPAPO/MSDP_GRID_REFRESH' in mode 1 and 'fcode_check' rotine in program '/sapapo/saplmsdp_sdp'.
    Firstly, I thought it could be dirty global variables in standard FM so I put it inside a program and called it by submit and return command. But now I think could not be this kind of error because it did not work. And inverted the results, and now only first line os TS get storted and change in CVC.
    It's a crazy issue. Please friends. Guide me for a solution!
    thanks.
    Glauco

    Hi friend. Issue still without a correct solution yet.
    A friend changed the macro adding another step calling the same function. Now this macro has two calls in sequence to same FM. Now it's working, but we can't understand why it's working now.
    It's seems like dirty memory in live cash.
    Nobody knows how to solve this!
    Glauco.

  • 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

  • Better approach time series calculations

    Hi,
    I have a technical answer. In your opinion, to improve performances, is better calculate YTD, QTD, PY.... etc., values using Time Series functions available in OBIEE (YearToDatel, AGO, PERIODROLLING...) or put them in ETL Flow so OBIEE Server only must take results without any calculations?. Using OBIEE Functions the effort is less, but perhaps they create overhead for OBIEE Server so query time responses increase dramatically?
    Have you an example showing queries to perform to calculate Time Series Functions without OBIEE functions, so I can insert them in my ETL flows?
    Thanks
    Giancarlo

    OK,
    but it's better to have only one fact table containing columns for all measures I need (e.g. first column: YTD, second column: QTD, third column: MTD)... and so on (so i would have a LTS with only one Source table) or a distinct table for each measure (e.g. Table FACT_TABLE_A_YTD, FACT_TABLE_B_QTD and so on and combining them in a LTS having multiple Sources (FACT_TABLE (monthly), FACT_TABLE_A_YTD, FACT_TABLE_B_QTD)...
    Giancarlo

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

  • 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

  • Fragementation with Time series calculation

    Hi,
    I have three 3 tables
    Table1 for Region 1 , Frag Logic =Region = Region 1
    Table 2 for Region 2 Frag Logic =Region = Region 2
    Table 3 for Region 3 Frag Logic =Region = Region 3
    we use fragementation to query based on the region.Now i have duplicated Table 1 to calculate the Previous date for time series
    Table1 for Region 1 , Frag Logic =Region = Region 1
    Table1 for Region 1 Prev ?
    Table 2 for Region 2 Frag Logic =Region = Region 2
    Table 2 for Region 2 Prev ?
    Table 3 for Region 3 Frag Logic =Region = Region 3
    Table 3 for Region 3 Prev ?
    After adding prev tables i am almost lost,Do i need to add the Fragmentation for Prev tables also ,else we dont need as main and Prev tables are created as Alias from the base tables.Please share your thoughts.

    To use TimeSeries on Fragmentation in OBIEE, is identified as a bug
    http://obieetalk.com/time-series-and-fragmentation

  • 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

  • Balance for open periods in a time series enabled cube

    Hi,
    We have a request to calculate balance for open periods in a time series enabled cube, I don’t there is any inbuilt function for this.
    Any ideas on how to calculate this without adding new members/formulae in the time dimension. Currently we compute this in the report
    EX:
    BOY(May) = Jun+Jul + … + Dec
    Thanks,

    You will have to add a member somewhere. Suppose you add it in scenario, then you could use sumrange for the current member range offsetting the current monthe by 1 and use null for the end month wich gives you the last month in the time dim.

  • Time-series Chart

    Warning, CR Newbie here so this may be a stupid question. I am evaluating the trial version of CR to see if it will be a good fit for an upcoming project. I've seen some related posts in the SCN, but no answers that quite fit.
    I'm looking to create a line chart (or a scatter chart) with time-series data. My dataset includes a time stamp field (yyyy-MM-dd hh:mm:ss) and some floating-point temperature values like this:
    2014-05-01 08:00:00, 123.4, 115.1, 109.2
    2014-05-01 08:00:10, 123.6, 116.0, 109.8
    The desired outcome has the date / time along the X-axis with data points spaced proportionally in the X dimension and plotted in the Y-dimension according to the temperature. The interval between the time stamps is not always the same, so numerical scaling is required on both axes. The desired chart would show a temperature scale along the vertical axis, three trend lines for the three series of temperature data and times shown on the X axis label.
    I've played with several options in an attempt to make this work. On the data tab, it would seem I would want to select "on change of" and then my time-stamp field. However, with this selection, I can only use summary values and end up with a chart with a single data point for each series. I don't need or want any summary calculations carried out on the data, I just want to plot it so I can look at a trend over time. I can get trend lines if I select "for each record" on the data tab of the wizard, but then my X-axis is meaningless and the horizontal scaling is misleading unless the interval between my samples is constant.
    I would welcome any suggestions on how best to accomplish this with Crystal Reports.
    Thanks for reading.

    Jamie,
    Thanks for continuing to reply. I am getting close, but still no success.
    Here is the procedure I've followed and problem:
    Put chart in RF section
    Start Chart Expert
    Chart Type = Numeric Axes, subtype = Date axis line chart
    Data tab
    On change of datetime field
    Order... ascending, printed for each second
    Values avg of my data fields (must select summary when on change of is used)
    Right-click on X-axis label, select Group (X) Axis Settings
    Scales tab: base unit, major unit and minor unit can only be set to days, months or years
    I cannot set the minimum and maximum date with resolution other than day
    Right-click Chart, select Chart Options...Axes tab: show group axes set to show time scale
    No matter the setting I use, I can't find a way to adjust the resolution of the time scale lower than days.
    I tried using a formula to extract only the time portion of my datetime field. I used that as my "on change" data series, hoping maybe CR would automatically recognize I was looking at a fraction of a day if I did that. No good - now it gives me a date scale with the dates showing up as the beginning of the epoch, but I can still only get resolution of integer days.
    Thanks for your patience and persistence.
    - Max

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

  • Read optimization time-series data

    I am using Berkeley DB JE to store fairly high frequency (10hz) time-series data collected from ~80 sensors. The idea is to import a large number of csv files with this data, and allow quick access to time ranges of data to plot with a web front end. I have created a "sample" entity to hold these sampled metrics, indexed by the time stamp. My entity looks like this.
    @Entity
    public class Sample {
         // Unix time; seconds since Unix epoch
         @PrimaryKey
         private double time;
         private Map<String, Double> metricMap = new LinkedHashMap<String, Double>();
    as you can see, there is quite a large amount of data for each entity (~70 - 80 doubles), and I'm not sure storing them in this way is best. This is my first question.
    I am accessing the db from a web front end. I am not too worried about insertion performance, as this doesn't happen that often, and generally all at one time in bulk. For smaller ranges (~1-2 hr worth of samples) the read performance is decent enough for web calls. For larger ranges, the read operations take quite a while. What would be the best approach for configuring this application?
    Also, I want to define granularity of samples. Basically, If the number of samples returned by a query is very large, I want to only return a fraction of the samples. Is there an easy way to count the number of entities that will be iterated over with a cursor without actually iterating over them?
    Here are my current configuration params.
    environmentConfig.setAllowCreateVoid(true);
              environmentConfig.setTransactionalVoid(true);
              environmentConfig.setTxnNoSyncVoid(true);
              environmentConfig.setCacheModeVoid(CacheMode.EVICT_LN);
              environmentConfig.setCacheSizeVoid(1000000000);
              databaseConfig.setAllowCreateVoid(true);
              databaseConfig.setTransactionalVoid(true);
              databaseConfig.setCacheModeVoid(CacheMode.EVICT_LN);

    Hi Ben, sorry for the slow response.
    as you can see, there is quite a large amount of data for each entity (~70 - 80 doubles), and I'm not sure storing them in this way is best. This is my first question.That doesn't sound like a large record, so I don't see a problem. If the map keys are repeated in each record, that's wasted space that you might want to store differently.
    For larger ranges, the read operations take quite a while. What would be the best approach for configuring this application?What isolation level do you require? Do you need the keys and the data? If the amount you're reading is a significant portion of the index, have you looked at using DiskOrderedCursor?
    Also, I want to define granularity of samples. Basically, If the number of samples returned by a query is very large, I want to only return a fraction of the samples. Is there an easy way to count the number of entities that will be iterated over with a cursor without actually iterating over them?Not currently. Using the DPL, reading with a key-only cursor is the best available option. If you want to drop down to the base API, you can use Cursor.skipNext and skipPrev, which are further optimized.
    environmentConfig.setAllowCreateVoid(true);Please use the method names without the Void suffix -- those are just for bean editors.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

Maybe you are looking for