Compare month sales with previous year same month sales

hi all.
we need to compare given month of this year with same month of last year. we need to compare sales quantity and value.
the query is on 0RT_C40 multiprovider. We have tried all options using 0Calmon, calday, fiscal year... but whenever we specify offset, we are not getting data. there is valid data for previous year.
plz let us know what else to do? check with 0RT_C40.
thanks in advance.
regards: gaurave

Gaurave,
Are you selecting the time period in a selection in columns or rows, or are you selecting the time period in the Filter or Free Characteristic area.
When you make the initial selection of say Period 11.2007 in the Free Characteristic area, and then within a selection but on an offset to derive 11.2006, the fact that you have made your selection of 11.2007 in the Free Char area will restrict the entire query results to this time period.
Both your picks on time should be in selections in the Columns or the Rows.
Regards
Gill

Similar Messages

  • Convert the 0CALQUARTER into previous year same quarter

    Hi All,
    How to conver the 0CALQURTER to Previous year same quarter in User exit (CMOD).
    Please give a sample code.
    Thanks

    Hi Chakri,
    The Sample code is:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    Data: v_loc_year(4) TYPE n.
    Data: v_pre_year(4) TYPE n.
    Data: v_month(2) TYPE c.
    CASE I_VNAM.
    to calculate "Year to Last month" from fiscal year/period with user entry
      WHEN 'ZCAL_QUAR'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
        WHERE VNAM = 'ZCAL_QUAR1'.
            CLEAR L_S_RANGE.
            v_month = LOC_VAR_RANGE-LOW+4(2).
            v_loc_year = LOC_VAR_RANGE-LOW+0(4).
            v_pre_year = v_loc_year - 1.
           CONCATENATE v_pre_year v_month INTO result.
          ENDLOOP.
        ENDIF.
    ENDCASE.
    **ZCAL_QUAR is your User Exit Variable, ZCAL_QUAR1 is your normal selection variable where user enter the value.
    Hope this helps.
    Let me know if it doesnt work.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 27, 2009 10:08 AM

  • Monthlwise Income Statement with Previous Year Comparison

    Hi
    Good day to all.
    The requirement is to create a Monthwise Income Statement for the Current Year with the Previous Year Comparative figures (and Average for Previous Year and Current Year thrown in).
    We have designed this report using Report Painter using the Library 8A2 based on GLPCT Table.
    We have been able to get the Monthwise figures for the current year.
    Could somebody elaborate on how to achieve the following:
    1. How to get the Previous Year Figures in the same report.
    2. How to get the Average for the Current Period depending upon the Periods upto/for which the user chooses to run the Report? For example, the user must be enabled to run report for a range of Periods (for example Period 5 to Period 8) and the Report should average the totals using a denominator of 4).
    Any help in this regard will be highly appreciated.
    Regards
    Harinath

    I am Thankful to SDN,
    but i have solved my problem on my own.
    I ill be back if i have any problem in future.
    Bye

  • How to compare this week with last years week sales ?

    Hi all,
    I have a table called Sales with two columns  Date and UnitsSold
    Date is of type smalldatetime   and will have the date of the sales
    while UnitsSold is type int and will have the number of units sold
    I need to write a stored procedure that will compare between a week's sales from last year with a week sales from this year and show the percent in sales difference
    Thanks

    DECLARE @thisYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2014-01-01'))
    DECLARE @thisYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2014-01-01'))
    DECLARE @lastYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2013-01-01'))
    DECLARE @lastYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2013-01-01'))
    DECLARE @thisYear INT, @lastYear Int
    DECLARE @salesTable TABLE (date DATE, unitsSold INT)
    INSERT INTO @salesTable (date, unitsSold)
    VALUES
    ('2013-07-07',10),('2013-07-08',9),('2013-07-09',8),('2013-07-10',7),('2013-07-11',6),('2013-07-12',5),('2014-07-13',4),
    ('2014-07-06',12),('2014-07-07',13),('2014-07-08',14),('2014-07-09',15),('2014-07-10',16),('2014-07-11',17),('2014-07-12',18)
    SET @thisYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @thisYearThisWeekStart AND @thisYearThisWeekEnd)
    SET @lastYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @lastYearThisWeekStart AND @lastYearThisWeekEnd)
    SELECT @thisYear AS thisYear, @lastYear AS lastYear, CONVERT(float,ROUND(((@thisYear+.0)/@lastYear)*100,2))
    You should really use a calendar table.

  • Current year period comparison with previous year

    Hello Experts,
    i need to compare qty of
    period 01 2006 with period 01 2005-->for this period
    period 01,02 2006 with period 01,02 2005-->for next period
    period 01,02,03 2006 with period 01,02,03 2005 -->
    after that...etc...
    Note:
    -i am having time char fiscal year/period
    -now we are in period 02
    -to get this year period i am using the variable,
    "Cumulated to Last fiscal Year/Period" to restrict. so, this will give period 01 of this year.
    - is there any standard variable to get last years period
    - else, how to achieve this?
    Thank you very much.
    -Vam.

    Hi,
    u can try with the Variable: Cumulated up to Current Fiscal Year Period  0FYTCFP.
    i have not tried.its just an idea.
    from sap help:This variable denotes an interval from period 1 of the current fiscal year to the current fiscal year period.
    First the fiscal year variant, which serves as the input parameter for determining the current fiscal year, is defined.
    http://help.sap.com/saphelp_nw04s/helpdata/en/99/ae22419e2ab167e10000000a155106/frameset.htm
    or
    Variable: Cumulated up to Last Fiscal Year Period
    Technical name: 0FYTLFP
    Use
    This variable denotes an interval from period 1 of the current fiscal year to the period before the current fiscal year period.
    First the fiscal year variant, which serves as the input parameter for determining the current fiscal year, is defined.
    cretae 2 restricted keyfigures like this:
    RKF1:
    Quantity
    0FISCPER restricted by 0FYTCFP / 0FYTLFP
    RKF2:
    Quantity
    0FISCPER restricted by 0FYTCFP/0FYTLFP with offset '-1'.
    and use respective text variables to view Fiscal year/period value accordingly in RKFs.
    hope this helps.
    regards
    Message was edited by: c c
    Message was edited by: c c

  • Compare current value with previous value

    Hello,
    I would like to compare the current value with the previous value of the current value.
    How can I solve this problem?
    Maurits

    Hi,
    after going through the basics course you surely can understand that example:
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Finacial statement report Comparison with Previous year in report painter

    Hi Experts,
    I am new to report Painter.I developed financial statement report in report painter with following data:
    Table: FAGLFLEXT
    Rows:GL Account Hierarchy(defined Manually)
    General data selection: Ledger
    Column 1: CCode,record type,version,period,fiscalyear
    Column 2: Ccode,record type,version,period,fiscalyear
    I tried various variables for fiscal year in both columns but in general data selection two fiscal year fields appeared and in output  it is showing values according to only one fiscal year field in general data selection hence it is displaying values only in first columns and empty values in second column.
    I hardcoded fiscal year values in both columns but still fiscal year field is appearing in general data selection and value input to that fiscal year results in displaying values in first column and empty values in second column in output.Please let me know where i went wrong.
    Thanks&Regards,
    narasimha.

    Hi Narasimha,
    Can you please post your solution.
    Thanks,
    Srini

  • MDX to fetch record from 1st of current month to 5th of next month and same for previous year

    In my date dimension I have a attribute CalendarDate. I do have a hierarchy [Date].[Year].[Quarter].[Month].[CalendarDate] as well. I need to fetch data starting from 1st working day of current month to 5th working day of next month by MDX. I do have a attribute
    to filter working day as IsWorkingDay. How can we get a dynamic MDX that will find the current month first and than it will filter the record from 1st working day of current month to 5th working day of next month. And same for the previous year same month
    to compare.
    Thanks in advance!
    Palash

    Hi P,
    You can use a calculated member to dynamically add all the days in the current month and the first 5 in the following month.  You will need to change measure, cube and hierarchy names.
    with member measures.ThisMonthAnd5 as 
    sum([Date].[Year].parent.children,Measures.[Sales])
    +sum(Head([Date].[Year].parent.nextmember.children,5),Measures.[Sales])
    select 
    {Measures.[Sales]
    ,Measures.ThisMonthAnd5
    } on 0,
    non empty [Date].[Year].[CalendarDate]  
    on 1
    from MyCube
    Richard

  • How to define the Previous Year Up to Date in BI 7?

    Dear Expert,
    I have got a BI 7 report requirement which needs to restricted a key figure with Previous Year Up to date.
    I have found a time variable as Current Year Up to Date but not able to find the one for Previous Year Up to Date.
    Is it possible that I can use it as below to restrict the Key Figure:
      ZMP_CTYD (Current Year To Date) -1   (current year to date with the off set set to -1)?
    If this is not a right way, could you let me know what is the correct way to restrict the Key Figure for Previous Year Up to Date?
    Further information about the requirement:
    I need to get the difference between current year up to date and previous year up to date for a key figure.
    For example, to get the difference between the  amout related to the preiod between Jan 1, 2008 and May 22, 2008 and the amount related to the period between Jan 1, 2007 and May 22, 2007.
    Thank you very much!
    Arthur

    Hi,
    YTD and CTD are different. One is all the way till year end and the other one is through current period. One way of doing this is to define your restricted KF definition. You can use the existing Variable that you already have and insert / restrict posting period from 'time dimension"  1 - 16, in most cases there are 16 period, or 1 to "latest period" depending on what you have. The key here is your " POSTING PERIOD" restriction
    Hope this helps
    assign points if helpful

  • Reg:-Previous Year Quarter

    Hi All,
    I need to build a new report on Balance Sheet Quarterly in Financials. My reqiurement is..Show the Quarterly Balance sheet comparing Curent Quarter and Previous year Quarter
    i.e Current Qtr vs Previous Year Qtr.
    In the report levl , I have used Presentation variable for Current Quarter:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
    In the Dashboard, I used two filters Fiscal Year, Fiscal Quarter.. So if select Fiscal Quarter 2011 Q2 then the user should also be able to see 2010 Q2 data.
    May I know how to achieve this.
    Thanx in advance.

    Hi all,
    I have built a report on Balance Sheet using following columns:
    1) General Ledger Code
    2) Current Quarter
    3) Previous Quarter
    4) Global Amount
    Now I got a new requirement to add a column Variance to the layout which should be difference of (Current Quarter- Previous Quarter).
    For current Quarter, we have used this formula :FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
    For Previous Quarter , we have used this formula:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" = ( case when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 1' then cast(cast(substring('@{var_qtr}{2011 Q 1}' from 1 for 4) as int)-1 as char(4))||' '||'Q 4' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 2' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 1' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 3' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 2' else substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 3' end)))
    I need help how to calculate variance..

  • How we create Variable for Previous year for COPA reports

    Hi Guruss,
    I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
    Thanks

    Thanks Jagannadha,
    I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
    Waiting for reply.

  • Reg : Curr Month,Previous Month,Curr Month Previous Year

    Hi all ,
                 I have a req where I have to display the sales for
    Current Month               Sales value
    Previous Month             Sales value
        Curr Month                Sales 
    Previous Year
    Curr Month and Previous Month I got it with Time Series AGO Function .
    But current month for the Previous Year , I am not able to proceed .
    Kindly help.
    Reg,
    Niv D

    Hi NIV,
    You can use the same time series function to calculate current month of last year values.
    Ago (measure column , year , 1)
    it describes the last year sales of current month
    OBIEE -Time Series in OBIEE
    Regards,
    VG

  • Data per month and previous year

    Hi all,
    I have a requirement that is to show 2 columns, one for the actual data for a month and the other one to show the data for the same month of previous year.
    For example:
    Month   Profit_Center Actual Previous_Year
    08.2010 10000           10.25  12.50
    I know that I can create the second column filtering by same month-12, but when i show the Month,the result is:
    Month    Profit_Center Actual Previous_Year
    08.2009 10000            10.25   0
    08.2010 10000             0         12.50
    We want to show just one row with the actual month and both columns. How can I do it, without change the backend. I would like to do it in front end (in query designer).
    Regards, Federico

    Hi Sukhi,
    Thanks for your answer. I have tried with offset also, but the data is filled in 2 rows cause of i am doing a drill down by Calmonth.
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 0
    (08.2009) | 0 | 80
    And I want to show just one row, like this:
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 80
    The idea of this is to compare the data between the month that i put in the preselection and the data of same month but the previous year.
    Thanks in advance for your help, Federico

  • Bi 7.0 SD report for previous year, month, current month, rolling 30days.

    I have Sales document type in rows and in column, I have no of sales documents.
    Now, I need sales documents in rows and no of sales documents in columns according to
    created on date: 0calday of types as follows
    List of columns:
    Previous year    last quarter   Current quarter     Current month    30 days rolling.
    How do I define these RKFs.. do we have standard date variables for RKF.
    Thanks
    Jeff

    Hi ,
    You dont have a standard date variable
    I have the solution for ur problem
    here u can go for creation of variable for column KF and assign the value for each sales document type = 1 by using a customer exit
    Pls assign some points if answer is helpfull
    Regards ,
    Subash Balakrishnan

  • Condition to calculate order quantity with previous 3 months history of act

    Hi,
    We have a requirement of the report is i need to calculate order quantity (SD) with condition that it should have been produced with previous 3 months with finished goods sales quantity (MM), please suggest suitable formula so that order quantity should be calculated only if it was produced with previos 3 months of finished goods quqntity. Thank you
    Regards,
    Manju

    Hi Geeta,
    Would really appreciate if you can send me sample of condition which we can restrict with order quantity which is produced with 3 months of history of finished goods production. Thank you
    Regrads,
    Manju

Maybe you are looking for

  • ITunes 9 Genius not updating - iTunes Store Error

    Using iTunes 9, I am trying to update my Genius so that I can have the Genius Mixes however it seems to always be stuck on "Sending information to Apple-". I've let it run for 3 hours with no success and twice have had it say the there is an error wi

  • Latest flash version will not display images or video

    Latest flash version will not display images or video in 2 x Windows 7 Pro 64bit machines, 1 x Windows 7 Home Premiums, and 1 x XP SP3 under VMWare Workstation 7. Problem plagues Firefox, Chrome, and IE on all systems. Also running Norton Security fr

  • Transfer messages to a new apple ID

    I have an old phone using my mother's apple ID. I just got a new phone and will be using my own apple ID. How do I transfer my old messages, etc to my new apple ID?

  • Rebate settlement with $0 value

    There are instances with a rebate agreement, that the business will decide they no longer require a rebate. The remaining balance would not be issued to the customer; but returned to the business. My user want to settle the rebate agreement by create

  • With 3g, I keep getting "server not responding" on my iPad2...what do I do?

    at home, where I do not have WIFI, I have been unsuccessful for the last day to get an internet connection via 3G. Getting emails is  not a problem, but when I try to access the internet, all I get is "server not responding".....do I contact ATT or i