Current Year and Previou year Data comparision - Urgent

Hi Experts,
In our report we need to compare the sales value for current year and prevous year.
The Fiscal year is the input selection field.
Output report displayed as below
Product|Current year sales|Previous year sales|
404    |120.00          |20.00
400    |122.00          |22.00
Total  |242.00          |42.00
Could any body help how do i use the fiscal year/period or fiscal year for the current sales and previous sales values.
Thanks in advance.
Mahantesh

You have to restricit current year column with the variable Fiscal year and previous year colum with same variable with offset -1.
For year period use a range with from valie '001.1990' and to value a variable for current and the same variable with offset -12 for previous.
Hope it helps.
Regards

Similar Messages

  • Pay_us_wages_w2_v is not picking current year data?

    Hi,
    pay_us_wages_w2_v tabe is not getting current year data, only is getting previous year data.
    Like
    SELECT sum(w2_wages_tips_compensation)
    FROM   pay_us_wages_w2_v puw
    WHERE  puw.assignment_id = 40291--:assignment_id1
    AND
    puw.year     
    = '2013'--TO_CHAR(:P_PAY_DATE_END,'RRRR');
    Please let me know , if any body idea?. We have to run any Program?
    Thanks,
    Ramu

    At first I was not happy. I didnt understand how it worked. I wanted to keep my unlimited. It may not work out for everyone but it does for me.  I have two accounts. one has 5 lines and the other has two. I pay 150 for two lines on one account. I have the 30 dllr 2 gig package. Then I have a dumb phone for the second line. My other account I have 5 smartphones. I pay around 350 for that account.
    Now with the new plans I can combine BOTH accounts into one and make one BIG family plan. All the users in my account do not go over 2 gigs except one but he never goes over 5. Ill get a big data package and save some money. On top of that its UNLIMITED minutes and text which is what we use it for.  Ill be paying around 350ish with a big data package..
    That is 150 dllrs in savings!! Now since I can add usage controls I can control how much data that one person uses.
    Not sure about you guys but to me this is #winning status!

  • OBIEE 11g - Current year date and the same date in Previous year

    Hi Experts,
    I have an attribute say RECEIPT NO, i want to display the "No of Receipts" i.e(count(receipt no)) for any given date in the current year as well as for the same date in previous year.
    Please suggest me how to achieve this in 11g.
    Thanks

    Hi Veeravalli,
    Thanks for your prompt help.
    Could you please ellobarate this. I have to display the count(receipt_no) for the last year same date.
    Thanks

  • Current year data compare with pervious year

    Hi Experts,
    I have created report1 with display the default date data. And we have Date between filter, based on the filter the reports data is changeing.
    My Question is we have another report2 below the report1 but report2 should display exact date of last year.
    i.e. if default date is 29/03/2010 and 30/03/2010 for report1 and
    the report2 should be display the data for exact 29/03/2009 and 30/03/2009 and if date filter may change the report2 also change.
    Note : Both reports are created from same table.
    Thanks,
    Balaa...

    Hi Balaa,
    you can creat a filter like this:
    TIMESTAMPADD(SQL_TSI_YEAR,-1,date)
    This retuns the date of the last year.
    I hope it helps.
    Regards,
    Gianluca

  • Date comparision - urgent

    Hi Experts,
    I have a requirement where i need to count the no. of  operands that are active at the user entered report to date.
    (Logic = operands valid to is  greater than or equal to Report to date user entry variable)
    operands valid to date = iam capturing it using a formula variable replacement path and dimension as Date (ZValidto).
    User entry Report to date = iam capturing it using the customer exit variable and dimension as Date(ZRTDEX).
    Calculated KF(No.of Operands) = (ZValidto >= ZRTDEX) * DataRecordCounter
    The above logic works fine for few records but not for all of them.
    Thanks in advance.
    points will be assigned.
    sam.

    A DATE column does not have a format-- it is stored in the same packed binary format. Date format masks are only important when you go to convert a date to a string for display.
    If you want to ignore the time component of the date, you would need to TRUNC your date, i.e.
    SELECT C.idnumber,A.fullname, A.description
      FROM Contact C,
           Action A
    WHERE TRUNC(c_date) = to_date('02/16/2009', 'mm/dd/yyyy')
       AND C.actioncode = A.code ;Of course, this will prevent Oracle from using an index on C_DATE. The solution to this is to create a function-based index on TRUNC( c_date ), i.e.
    CREATE INDEX idx_trunc_cdate
      ON contact ( TRUNC( c_date ) );Oracle would then be able to use the new index IDX_TRUNC_CDATE for your query. If all your queries want to ignore the time component, you may want to evaluate whether you can get rid of the index on C_DATE alone.
    Justin

  • CRM Interactive Reports show only current year data

    Hello,
    We have configured CRM Interactive Reports for IC scenario (CRM 2007) and are using reports like 'Service Ticket Volume', 'Service Ticket Closure', etc.
    The issue is when we run reports (through IC_Manager business role), they only display data from January 2009 onwards. There is lots of data available in the system for 2008 which we can see from the backend. And we are also selecting date range that includes 2008. But somehow the report only shows tickets from Jan 2009 onwards.
    Any clue why this is happening?
    Thanks,

    We've resolved this issue so I'm closing this message.
    Thanks,

  • Dimension Current Flag and Last Update date not updated - SLD issue!

    Hi.
    ODI is running pretty well now. I have created several interfaces from flats, multi database tables, but still have to test the services and cdc, etc... later I will do this.
    I am having a small issue here when dealing with Slowly Changing Dimensions. I am trying to populate a product dimension. I use a Load KM and the SLD KM. Then I update a product row in the source, and I wish to make sure that type-II runs OK for major and minor changes after running the interface.
    Well minor changes run ok, deletes don't run at all, and update for major changes should generate another surrogate key and turn the old record "current flag" to zero and "close"/update the last update date as well!!!
    What am I missing here? Is this related to the KM restrictions?
    "Restrictions:
    - Make sure to map ALL target table columns flagged as: "Surrogate Key", "Natural Key", "Current Record Flag", "Start Timestamp" and "End Timestamp". Notice that mappings set for the "Current Record Flag", "Start Timestamp" and "End Timestamp" columns are not used."
    Do I need to implement somehow that behaviour or use another KM?
    Another question regarding data warehousing: Well usually in a bespoke DW we can have N sources, N staging areas, and several data marts. Using ODI, for instance what are the best practises to create or simulate this behaviour??
    I know that using a Knowledge Module I can load/extract (to temp tables in the source work schema), then integrate in the target schema.. using the same schema to temp staging tables or another schema.... what is the best aproach?
    Any dw people wants to share some experiences here?
    Thank you all.
    Best regards,
    Alvaro
    Message was edited by:
    Alvaro Silva

    Thanks Cezar :)
    Well Updates work if I unckeck 262!!! :) But deletes are not setting the CURR to zero!!!
    PS: um abraço para ti também .... o mundo é pequeno! :) será que podes adicionar-me no messenger para alguma troca de experiências? [email protected]
    Alvaro
    Message was edited by:
    Guest

  • How to design extractor can have only current Fiscal Year data.

    Dear Experts,
    I require a full upload DSO , which can have only current fiscal year data . I have created view putting there certain conditions for minimising the data size. How i can restrict it , to have only current fisacal year data for YTD reports. It would be daily uploaded.
    Should i created Data Source based on function ?
    Regards,
    Anand Mehrotra.

    while extracting the data from source you can set the filters at the info package level so that it will not extract the previous years data.
    In the data selection tab in Info package enter the current fiscal year and schedule the IP it will extract only the current year data.
    next execute the DTP to load data till DSO.
    the data is restricted in the infopackage level before entering to PSA so there is no need to write any routines in the DSO level.
    Edited by: prashanthk on Feb 1, 2011 12:45 PM

  • Load Transactional Data Current Year: 0PM_OM_OPA_1

    Hi Experts,
    We are doing load monitoring on dailiy basis, As we are doing some testing in the BW Development system, we are loading data into the cube 0PM_C01. we want to load the current year data (2007-2008). but whenever we are trying to load through the InfoPackage "Load Transactional Data Current Year: 0PM_OM_OPA_1" it doesn't delete previous load requests. It was initially configured with this option not selected. we recently changed it, but it still doesn't delete. The only difference we see between this load and others that do delete is that this one is executed from a process chain rather than an InfoPackage Group. What do we need to do to make it delete previous load requests?
    And moreover the data is updated in the data target with two infosources namely 0PM_OM_PA_1 and 0PM_OM_PA_2.
    Because you eliminated use of the four conditions, it deleted the delta initialization and delta update requests loaded from InfoSource 0PM_OM_OPA_2.  We don't want it to do that!!!  I'm not sure whether we had any test data in the cube that had been loaded from the flat file, but I imagine it would delete those as well.  I believe we need all four conditions checked,
    So please help me in this regard. points will be assigned.
    Regards
    sekhar

    Hi experts,
    Please help in this regard.
    we are loading the data from two insources to one data target. two insources are :
    0PM_OM_OPA_1 and 0PM_OM_OPA_2 , as they are loading the  current year data.
    we have scenario like this please give your valauble inputs.
    I am still perplexed by the "Overlapping" option.  Why doesn't the "Same or more comprehensive" option work?  The requests we want it to replace have identical Data Selection because they were loaded by the same InfoPackage.  The InfoPackage "Load Transactional Data Current Year: 0PU_IS_PS_2" (ZPAK_3RUTSXU2BWPBKELMBE0T6NS3U) uses the "Same or more comprehensive" option and it does delete previous requests.  What is different about 0PM_OM_OPA_1?
    points will be assigned for the speedy reply.
    thanks
    sekhar

  • Load Transactional Data Current Year: 0PM_OM_OPA_1" doesn't delete previous

    Hi Experts,
    We are doing load monitoring on dailiy basis, As we are doing some testing in the BW Development system, we are loading data into the cube 0PM_C01. we want to load the current year data (2007-2008). but whenever we are trying to load through the InfoPackage "Load Transactional Data Current Year: 0PM_OM_OPA_1" it doesn't delete previous load requests.  It was initially configured with this option not selected.  we recently changed it, but it still doesn't delete.  The only difference we see between this load and others that do delete is that this one is executed from a process chain rather than an InfoPackage Group.  What do we need to do to make it delete previous load requests?
    So please help me in this regard. points will be assigned.
    thanks
    sekhar

    Hello,
    I think as you are running this in process chain, you need to add the step "Delete Overlapping Requests from InfoCube" after the load step so that the previous request will be deleted.
    regds,
    Shashank

  • To fetch current year,QTD data

    What is the techinical name of variable to fetch the current year data ,YTD , QTD data
    do i need to go for customer exit variable or is there any business content variable available
    Thanks,
    Anita

    Hi Cris,
    Follow Below steps:
    1.     Create one variable as below:
            =[Date] Where( [Date] = Max([Date]) In([Emp ID]))
    2.     Now Select your table. Go to Analysis > Filter. Click on "Add filter", Select the variable created                          above. Now put the filter as "Is not null".
    You will get desired data.
    Regards
    Rakesh

  • Power View in SharePoint only shows current year.

    I have a customer using the Power View add in for SharePoint 2013 based on SQL 2014.   I have created a BISM object that connects directly to an OLAP cube.
    When I build reports or Pivot tables against this object they work fine.  However when I build dashboards in Power View they only show the current year's data
    We do have a default date dimension which forces for some reason Power View to only display current year. Therefore the slider doesn’t work since it has only current year / date showing up.
    After removing the date dimension in one of our dev. cubes, Power View showed all dates and we were even able to uses the date animation with slider worked fine.
    We don't want to do this in production however, because many of our reports rely on the default date dimension.
    Has anyone come across this or know a workaround?
    SG

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • Facing issues with 3g Mobile Data Usage Current Period and Apps Volumes are differ.

    Hi All,
              i am facing some data mismatch with my iphones. the actual mobile data usage volume and data usage for Apps volumes are showing different data.
    for eg : Mobile Data Usage - Current Data Usage - Current Period volumes showing 342 MB but if i check the  Use Mobile Data For Apps Volumes for all Apps including System Service Data's and Uninstalled Data's are showing very less ( around 200 MB only ) compare with Current Period Volumes.
    Mobile Data Usage - Current Data Usage - Current Period  and Use Mobile Data For Apps ( Apps wise data usage ) Data's are not matching..
    Please let me know will it show like that only or its an issue ????  if you want i can share the screen shot as well.

    Hello kasinathadurai,
    Welcome to the Apple Support Communities!
    I understand that you have some questions about cellular data usage and apps that use cellular data. For this question, I would refer you to the attached article that will help explain how data usage, call time, and app cellular data is calculated. 
    Learn about cellular data settings and usage on your iPhone and iPad (Cellular Model) - Apple Support
    Have a great day,
    Joe

  • Expression - First date and last date of current month, current year

    Hi
    I need to have 2 ssrs expression as I can use  as default parameters in my report where I can -  out from my Time dimension, get the
    first date of the current, current year - and one where I get last date, current month, current year.
    My data source is a SSAS cube and my timedimension is structured like this:
    [Time].[Days].&[2009-01-16T00:00:00]
    Any suggestions how to solve this ?

    Hi ,
    You can use below in Default Values in ssrs ;
    for first Day of current month and year
    ="[Time].[Days].&[" +Format(dateadd("m",0,dateserial(year(Today),month(Today),1)), "yyyy-MM-dd")+"T00:00:00]"
    output will be ;
    [Time].[Days].&[2014-09-01T00:00:00]
    For last day of current month and year
    ="[Time].[Days].&[" +Format(DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1), "yyyy-MM-dd")+"T00:00:00]"
    output will be ;
    [Time].[Days].&[2014-09-30T00:00:00]
    Please correct me if I misunderstood your requirement.
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

Maybe you are looking for