Last 3 years data

Hi Experts,
I am new for OBIEE and i have small requirement
I have a report with (year,Prod,sales) and there is prompt for year when i am selecting the year from prompt it as to show last 3 years data also. (if i select 2012 it as to show 2010,2011,2012 data in the report)
Regards,
Rafi

As I am new for OBI could you please elaborate the steps how we reach this and i facing problem in calling Presentation variable in column
Steps I implemented
1>     Created prompt on Year and created presentation variable also for that year prompt*(P_year)*
2>     In answers I created report with 3 columns *(YEAR,PROD,SALES)*
3>     In Year -->add filter --> ADD presentation variables--> in variable expr i gave P_year
But I Strucked here could you please help in this part to reach my requirement or please post any related links or documents.
Regards,
Rafi
Edited by: Rafi.B on Jul 31, 2012 2:43 PM

Similar Messages

  • DTP Routine to load only last year data

    Hi Gurus,
    I have a requirement to load only last year ( 0CALMONTH  i.e MM/YYYY)  data based on current year in transformation, Please could you correct below code...
    DATA: l_idx like sy-tabix.
      DATA: DATE_H TYPE D.
      DATE_H = SY-DATUM(4) - 1.
      l_t_range-SIGN = 'I'.
      l_t_range-OPTION = 'EQ'.
      l_t_range-HIGH = DATE_H.
      if l_idx <> 0.
        modify l_t_range index l_idx.
      else.
        append l_t_range.
      endif.
      p_subrc = 0.
    Right now it is bringing upto last year data. Please could you guide me what changes needs to be done...
    Thanks
    Ganesh Reddy.

    DATA: DATE_H(6) TYPE c,
                 DATE_L(6) TYPE c'
                 L_YEAR(4) TYPE c.
    L_YEAR = SY-DATUM(4) - 1.
    CONCATENATE L_YEAR '01' INTO DATE_L.
    CONCATENATE L_YEAR '12' INTO DATE_H.
    l_t_range-SIGN     = 'I'.
    l_t_range-OPTION = 'BT'.
    l_t_range-LOW     = DATE_L.
    l_t_range-HIGH     = DATE_H.

  • Not getting Last year data in query

    Hi All
    i have created one query on cost element cube.i have two col in the query i.e amount(present year) and amount (past year).
    For getting the past year data I have set the offset -12 for the fiscalyear/ period variable in the query i also restricted the fiscal year variant v3 in the amount. but i am not getting the corect value  for the past year . if i run for 2011 and 2010 for the same period i am getting right value in Amount(present year) but if i run the query for 2011 for same period i am not geting right value in amount previous year data. Kindly help me how to  get right data.

    Hi Atul,
    There are certain restrictions when you are reporting over multiple time frames,
    1) You should not put the global restriction of the time period on which you want to display data e.g. 0CALMONTH or 0FISCPER etc.
    you can put the global restriction but it should be at high granularity. for e.g. when you are reporting on Present month and last month then you can put restriction on Year, here you should take care when you are giving input as first month then last month of previous year data will not be displayed untill year is restricted for current as well as previous year.
    Another thing is
    2) You should not put time characteristic in drill down otherwise data aggregation doesn't happen.
    If you want to take any time characteristic input then it should be included in the specific RKF only, though Input ready variables.
    Regards,
    Durgesh.

  • Dates -- Pulling the last year data!, which should'nt be the case.

    Need some basic SQL Help ..
    Iam supposed to pull the data based on a date column(end_time) -- Yesterday 3PM untill Today's 3PM.
    Iam getting last year's data too in additon to Current Data.
    Where am i comparing wrong??
    SELECT a.*
    FROM table a
    WHERE TO_CHAR (a.action_end_time, 'MM/DD/YYYY HH24:MM:SS') >=
    TO_CHAR (SYSDATE - 1, 'MM/DD/YYYY')
    || ' 15:00:00'
    AND TO_CHAR (a.action_end_time, 'MM/DD/YYYY HH24:MM:SS') <=
    TO_CHAR (SYSDATE, 'MM/DD/YYYY')
    || ' 15:00:00'
    ORDER BY a.end_time;

    Date math, 1 = 1 day 1 / 24 = 1 hour, trunc with no date format gives midnight
    Try this.
    select a.* from table a where
      a.action_end_time between trunc(sysdate) + (15 * 1 / 24)
                            and trunc(sysdate - 1) + (15 * 1 / 24) In your example you are comparing strings, not dates.

  • How to load member for "sales same date last year"?

    I need to load a member in Measures named "PriorYrSales" with "Sales" for the same date last year as today's date. Thus, retrieving "PriorYrSales" for 2/10/2002 would return the sales amount for 2/10/2001. Since days roll-up to months, quarters, years, it would be easy to determine how we're doing compared to the same time last year.Data is loaded each day for a date range from the current date and the preceding x days. Substitution variables are available for the beginning and ending date and the same dates for last year.For example: Data is loaded from beginning date of 2/01/2002 through ending date of 2/10/2002.The prior year date variables contain 2/01/2001 and 2/10/2001.The time period dimension is as follows:FY01->Jan2001-->01012001 (Alias: 1/01/2001)-->01022001 (Alias: 1/02/2001)-->all the dates in Jan->Feb2001-->02012001 (Alias: 2/01/2001)-->02022001 (Alias: 2/02/2001)-->all the dates in Febetc.FY02->Jan2002-->01012002 (Alias: 1/01/2002)-->01022002 (Alias: 1/02/2002)-->all the dates in Jan->Feb2002-->02012002 (Alias: 2/01/2002) -->02022002 (Alias: 2/01/2002)-->all the dates in Febetc.Thanks your any and all suggestions.Phil

    Perhaps I wasn't clear in the first post. The intent is to easily compare sales for a current date/period to the same date/period last year. Neither Excel nor Analyzer provide a method that I'm aware of to retrieve data as follows:-------------------------------------Period Sales PriorYrSales Diff4/15/2002 1,000 900 100-------------------------------------(900 is sales for 4/15/2001)(100 is the calculated difference.)Nor can I do this:-------------------------------------Period Sales Period Sales Diff4/15/2002 1,000 4/15/2001 900 100-------------------------------------What Excel and Analyzer do allow is:-------------------------------------Period Sales 4/15/2002 1,0004/15/2001 900-------------------------------------I readily acknowledge that the data is redundant but I can't think of another option that will allow Excel and Analyzer to easily retrieve the values for comparison. If the PriorYrSales member can be loaded then the users can compare years, quarters, months and days quite easily.My challenge is knowing how use a calc script to derive prior year dates that correspond to current year dates. Something like:PriorYrSales->04152002 = Sales->04152001I've considered arrays but I've never used them and the documentation is not helpful enough for me.Thanks for your response.Phil

  • ABAP Logic - This Month This Year to This Month Last Year problem

    Hi All,
    I have a following requirement ... the report currently compares This Month This Year to This Month Last Year. But this is not a valid comparison for the user until the end of the month is reached as only then is it comparing 2 full months. We would like to use a formula replacement path variable to work out which proportion of data we have for this month. ie. if its day 15, we have 50% of data (if there are 30 days in the month - this just an example), therefore we should only show 50% of This Month Last Years column so that the comparison between the 2 is sensical.
    So I'd like the formula variable to return a ratio or percentage which I can then use in a calculated key figure in the query to pro-rata the last year data.
    The query currently displays data by Fiscal Period, so when working out the ratio I would need to check which Fiscal Period we're in and also consider that the data is loaded every night, so on the 1st day of a Fiscal Period we are comparing everything up until yesterday.
    Can anyone see in problem with the logic of this, or better yet, has anyone done this before and maybe has some code for me? Is there another way I could be doing this?
    Edited by: Julius Bussche on Sep 19, 2008 4:31 PM

    Have you tried google for this Error Message...
    http://support.microsoft.com/kb/959077

  • Parameter for Last Week, Last Month & Last Year from the current Date

    I have a crystal report that has a StartDate & EndDate parameters from the stored procedure that I am calling. Now i got a new requirement saying that my user wants a drop-down parameter in which they need to be able to select last week (Sunday to Saturday), last month, last year instead of manually selecting start date and end date parameters? Can anyone please explain me how to do this?
    (FYI, I am using Crystal 2008)

    Hi Naveen,
    You'll need to handle the logic in the Stored Proc's where clause.
    If you're using oracle, I have something like this in the Stored Proc's where clause for our reports:
    Where {Date_Field} Between
    Decode('{?Relative Date}',
    'Yesterday', sysdate - 1,
    'Last Week', Tunc(sysdate, 'IW')-7)
    AND
    Decode('{?Relative Date}',
    'Yesterday', sysdate,
    'Last Week', Tunc(sysdate, 'IW'))
    where 'Relative Date' is a prompt in the Stored Proc and 'yesterday'. 'last week' are the 'static values' in the prompt.
    -Abhilash

  • Just bought a new iphone 5 i have an old imac computer OSX 10.5.8 and itune version 10 (updated at great cost last year for iphone4) it dosen't let me restore data... any chance of update or do i have to thow away my computer (and never by Mac aga data 0

    Just bought a new iphone 5, i have an old imac computer OSX 10.5.8 and itune version 10 (updated at great cost last year for iphone4) it dosen't let me restore data... any chance of update or do i have to thow away my computer (and never by Mac again?)

    You an use your iPhone without connecting it to a computer.
    But the product description for the iPhone clearly states that in order to sync with a Mac you must have OSX 10.6.8 or later. That version of the OSX is usually called Snow Leopard. There are two mo recent versions of OSX. OSX 10.7.x (Lion) and OSX 10.8.x (Mountain Lion).
    If you can upgrade your computer to at least Snow Leopard I suggest you do so.

  • Mavericks install failed on my late 2008 MBP. Says I should contact the software provider. Want to do a system restore, using Time Machine, but latest date to use is from last year - even tho did a backup before the download?

    I downloaded the free Mavericks upgrade to my late 2008 MBP on Friday.  I made sure to plug in my external hard drive so that Time Machine could back up beforehand.  (I should say I'm not clear about the different kinds of backups that Time Machine does - I just plug it in and let it go.).
    So have tried several times over the weekend to install, it takes 46 minutes each time - only to tell me it can't do it.  There was an error message of needing to contact the software provider (or something similar).  After searching the internet (on my husband's computer - since my MBP is rendered useless right now) I decided maybe I should wait on Mavericks and just do a system restore.  However, when I plugged in the Hard Drive and proceed to System Restore, the latest date available is one from September of 2012 (14 months ago)...  I've wondered if the date might be wrong?  But I'm afraid to choose it because I'm not sure what I would lose.  It might take me back to Snow Leopard rather than Lion... (however, the version on Restore was 10.8.1 which is Mtn Lion, right?  Even tho it was last year...)
    Some sources online say that I should go into applications and delete the install -- but I can't get to anything on my computer. 
    I tried to do a reboot in safe mode - but not sure if it worked... 
    I did look on the installer log error and the latest error is: 
    Local Host  Report crash [378]
    Can anyone help me?  (Using simpleton, non-techie language?
    Thanks

    I downloaded the free Mavericks upgrade to my late 2008 MBP on Friday.  I made sure to plug in my external hard drive so that Time Machine could back up beforehand.  (I should say I'm not clear about the different kinds of backups that Time Machine does - I just plug it in and let it go.).
    So have tried several times over the weekend to install, it takes 46 minutes each time - only to tell me it can't do it.  There was an error message of needing to contact the software provider (or something similar).  After searching the internet (on my husband's computer - since my MBP is rendered useless right now) I decided maybe I should wait on Mavericks and just do a system restore.  However, when I plugged in the Hard Drive and proceed to System Restore, the latest date available is one from September of 2012 (14 months ago)...  I've wondered if the date might be wrong?  But I'm afraid to choose it because I'm not sure what I would lose.  It might take me back to Snow Leopard rather than Lion... (however, the version on Restore was 10.8.1 which is Mtn Lion, right?  Even tho it was last year...)
    Some sources online say that I should go into applications and delete the install -- but I can't get to anything on my computer. 
    I tried to do a reboot in safe mode - but not sure if it worked... 
    I did look on the installer log error and the latest error is: 
    Local Host  Report crash [378]
    Can anyone help me?  (Using simpleton, non-techie language?
    Thanks

  • Last year column data not displying

    Dear All,
    I am working on one of reporting issue where data is not getting displayed for few Last year columns. I have checked at the back end and data is available in info providers.
    I want your help to identify possible reason. I carried below trouble shooting steps.
    1: checked data in back end and its available
    2: all restrictions are proper.
    3: there no issue with query properties, I check all.
    I am doubtful about customer exit code so here it is. Please suggest me whether its good or not.
    WHEN 'ZVAR_LYCW'.
        IF I_STEP = 2.
          CLEAR LOC_VAR_RANGE.
         BREAK-POINT.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZVAR_CALDAY'.
            CLEAR : L_S_RANGE,
                    v_loc_date,
                    v_loc_date1.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
            L_S_RANGE-LOW(4) = L_S_RANGE-LOW(4) - 1. "low value previos year
            L_S_RANGE-HIGH = LOC_VAR_RANGE-HIGH.
            L_S_RANGE-HIGH(4) = L_S_RANGE-HIGH(4) - 1.
            v_loc_date = L_S_RANGE-LOW. "take input value in another variable
            v_loc_date1 =  L_S_RANGE-HIGH.
            L_S_RANGE-LOW =  v_loc_date.
            L_S_RANGE-HIGH = v_loc_date1. "high value = input, taken into another variable
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        endif.
    Please help.
    Thanks,
    Vishal

    Hi vishal,
    try this:
    WHEN 'ZVAR_LYCW'.
    IF I_STEP = 2.
    CLEAR LOC_VAR_RANGE,L_S_RANGE,
    v_loc_date,
    v_loc_date1.
    * BREAK-POINT.
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZVAR_CALDAY'.
    v_loc_date =  LOC_VAR_RANGE-LOW+0(4) - 1.
    v_loc_date1 = LOC_VAR_RANGE-HIGH+0(4)-1.
    L_S_RANGE-LOW = v_loc_date.
    L_S_RANGE-HIGH = v_loc_date1.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    endif.
    Edited by: JAIGUPTA on Jan 20, 2012 6:14 PM

  • Using Fiscal/Year Period to get last year all months data

    Hi,
    Had a requirement to get Last Years 1-12 months data based on Fiscal/Year Period. So here i am using Fiscal/Year period as my input. Please let me know with code.
    Regards,
    Vishnu

    Hi ,
    Where you want to write code ?
    Well the basic logic will be like :
    TYPES: BEGIN OF ty_range,
    sign TYPE c LENGTH 1,
    option TYPE c LENGTH 2,
    low TYPE c LENGTH 8,
    high TYPE c LENGTH 8,
    END OF ty_range.
    DATA : t_range TYPE TABLE OF ty_range,
    w_range LIKE LINE OF t_range.
    DATA :v_lastyear type c length 4  .
    v_lastyear = sy-datum(4) - 1 .
    w_range-sign = 'I'.
    w_range-option = 'EQ'.
    concatenate  v_lastyear '001'  t into w_range-low.
    concatenate  v_lastyear '012'  t into w_range-high.
    APPEND w_range TO t_range.
    ****it will select data from source package for last one year .Internally year and period store like YYYYPPP  (2011001)
    select  SOURCE_PACKAGE WHERE 0fiscper  IN t_range.
    you can modify selection statement as per your requirement .
    hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Hi, how do i transfer dates on my calendar from last year to this?

    Hi how can i transfer dates on my calender from last year to this?

    Dbl click on the event and choose Edit. Then Repeat>every year.

  • Assign Assets value date bydefault as last year doc date.

    My scenario is :
    Assets Purchased date is 01-02.2009(which comes in last year) & we are posting it today.
    I keep default value date as doc date.
    But it comes by default  when i post in same fiscal yr.When i post with last yr doc date,then it takes today date as value date.
    How to keep last yr doc date as value date?

    Thanks.
    I have kept the rule as 3-prime & 4-Alternative.
    Still i m not getting .
    Posting date       01.07.2009
    Document date : 01.02.2009
    So i want Valie date as 01.02.2009.
    I think this rule is applicable in same yr of Posting & Value date only.
    When i use date within same yr then this rule getting apply,but when i used different fiscal yr then it takes Posting date as value date.
    So how to Keep value date as doc dt( which is in last yr) ?

  • Till Last Year, To Date -  Discoverer......

    We have following table X
    PNO Date Amount
    10 10/31/2006 10
    10 11/30/2006 15
    10 11/30/2007 20
    10 12/31/2007 30
    10 1/31/2008 15
    10 2/29/2008 25
    10 3/31/2008 40
    We need to create report as follows, the parameter is the Date.
    Lets say user pass parameter : 3/31/2008
    The report should look like,
    PNO TillLastYear To date
    10 75 155
    Till Last Year - Sum of Amount column till Last Year
    To Date - Sum of Amount Column to the date parameter passed.
    Could some on guide me how to achieve this......?

    Hi,
    You need to add the PNO item into your report and then create calculations based on your date item:
    TillLastYear SUM(CASE WHEN DateItem < TRUNC(SYSDATE,'Y') THEN Amount END)
    ToDate SUM(CASE WHEN DateItem < :DateParameter THEN Amount END)
    Rod West

  • Last year to date

    afternoon all,
    I am so confuse with these year to date dates, what is the best practice if you want to get all the dates from last year upto today's date.
    For example, Today is 16/01/2009, so effectively the last year to date would be 16/01/2008 to 16/01/2009.
    I am thinking of using =Today-365
    or  =Currentdate-365
    or  =(dateserial('y',-1,)
    Perhaps you can give me some ideas?
    Regards
    Jehanzeb

    I forgot to ask another question. I am using the following formula under my Record Selection formula,
    Does this formula means from Last year to date?
    ({lab_rework.rework_date} in date(year(currentdate),1,1) to
    dateserial(year(currentdate), month(currentdate)+1,1)-1
    Sorry but I am so confused with these date formulas.
    The purpose is to get last year to date records, that is 16/01/2008 to 16/01/2009 where 16 is currentdate.
    Regards
    Jehanzeb

Maybe you are looking for

  • Need to reformat. Missing Tiger Install disc.

    I've been having multiple problems with my G5 for the past few days. Here's a list in chronological order: I came back from a vacation and my Mac took an incredibly long time to load up. Any program I tried to open either failed or took almost 10 min

  • Left clicking mouse acts as if I'm right clicking, and comes up with right click menu?

    Hi I was wondering whether anyone could help me with this, I've had this problem for a week or so now and it's beginning to get frustrating. I have a newish iMac, bought in January, and I've been having this problem the last week or so, where when I

  • Recommendable external portable Firewire 800 drives?

    Anybody have any recommendations for Firewire 800 portable hard drives to use for extra storage with a MBP (with cost and capacity)? Thanks! doug

  • TemplateConfigTool vs. Recommended Parameters

    Hello, We have implemented a NW '04 SPS15 landscape and used the Template Configuration Tool to apply the appropriate settings on the J2EE.  Just before the Go-Live checks I noticed that the Dispatcher and Server, Manager ==> ThreadManager settings a

  • Mail 4.2 started overloading my computer when posting a reply

    Hi Recently my Mail program is OK to start, but when I try to reply to someone's email, the text I enter stalls, the beach ball starts, and then I can only get another word or two in when the ball stops, until the ball starts again. Also, it seems th