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

Similar Messages

  • When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week a

    When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week and used tons more data than usual and am hoping that will save me this month.

    concretedonkey, I'm glad you were able to take advantage of this offer when you ordered your new iPhone 6. I can certainly review your account to ensure this was added for you. Please reply to the direct message I have sent you.
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • Time Dimension _ Report on Current month and previous year.TOTAL

    Hi,
    My Time dimension is as under .
    July2013, Aug2013 ,......Jan2014,,,. June2014  = 2014.TOTAL
    My requirement is to report based on context view along with previous period total (.TOTAL) values.
    For example :      If i am using CV as : 2013.JUL my report should show 2013.JUL & 2013.TOTAL
                                If i am using CV as : 2014.JUN my report should show 2014.JUN & 2013.TOTAL
    Can anyone provide some direction to build the above scenario
    Regards
    Krishna

    Hi,
    do you have the property YEAR in your time dimension filled out? If so, you could use EPMDIMENSIONOVERRIDE function together with an Excel cell.
    Let me build an example:
    Assuming your report has two columns, one for the current month and one for the total year. I would split this into two, one report per month, i.e. column. The first report will show the current period, the second the total. Somewhere in the header of your sheet use:
    EPMDimensionOverride("001";"TIME";EPMMemberProperty(;EPMContextMember(;"TIME");"YEAR")&".TOTAL")
    001 is the default ID of the second report.
    BR,
    Arnold

  • CO-PA planning for individual months and previous year with same layout

    I would like to create a planning layout that uses a SINGLE value to define multiple period/year columns, which is driven by the value of the first period of the plan years.
    The planning layout would look something like this:
    2012  2012  2012      2012   2012          2011
    JAN   FEB   MAR u2026   DEC    TOTAL     TOTAL
    I want to create a variable PER01 and use the following as my column definition
    PER01               (JAN 2012)
    PER01+1               (FEB 2012)
    PER01+2               (MAR 2012)
    PER01+11                (DEC 2012)
    PER01-1 TO PER01-12                            (TOTAL 2011)
    What am I doing wrong in the following sequence?
    1.  Create local variable in transaction KEPM
    Edit>Variable>Define variable
    Here is my entry:
    Characteristic          Period/year (Characteistic PERIO)
    Variable                               PER01 (Note zero-one, not oh-one)
    Value from                               001/2012 to 012/2012 or
                   001/2012 to 001/2012 or
                   Blank
    What should be u201Cvalue fromu201D range be set to from the three above choices?
    2.  Create a planning level
    Which of these is correct for the selection criteria for period/year range?
    (X)          PER01
    (X)          PER01      to      PER01
    (X)          PER01     to      PER12     
    3.  Iu2019ve tried I think about all possible combinations and permutations of values and keep running into this error message:
    KG1003
    Planning package can not be edited with planning layout
    Planning layout has one or more variables for characteristic u201CPERIO.u201D  These variables are given values from the selection criterion for the planning package.  The selection criterion (single values and/or nterval) must match the variables.
    The system tries to replace the variables in the planning layout with the selection criterion for the planning package.  If for example, there is a variable for asingle value in the planning layout that is a planning characteristic, then the selection criterion must contain a single value.  If there are two variables from the from and to value of an interval in the planning layout for a characteristic, then an interval must also exist in the selection criterion.
    SAP course AC605 states that "Users will be prompted to enter the values for these variables when planning."
    To date, I am not getting a popup to allow me to enter in period 001/2012.  What am I missing/overlooking?
    Thanks,
    Bob

    Thanks Ajay for your reply.
    In the sake of completeness, here is my solution incorporating your suggestion:
    Characteristic     Variable     Name                          Value from    Value to     
    PERIOD/YEAR     PER01     FIRST PERIOD/YEAR     001/2012     012/9999     
    Settings                         
    Planning level     MYLEVEL          001/2012           
    Planning package     MYPACKAGE     001/2012           
    Planning layout      MYLAYOUT          PER01, PER011, PER012, PER01+3, etc.
    The trick was to specify only the single value 001/2012 for period/year as shown above, rather
    than specifying a range..
    Bob McGaffic
    Pittsburgh, PA

  • Key figure comparision between current year and previous year

    Hello collegues,
    I have created a WEB Intelligence report with key figure ROI (return on investment which is calculated out of three other key figures (capital, revenue and costs). I would now like to calculate the percentage period (year) differences between key figure ROI - between current year (month) and previous year (month).
    Do I have to add coding within a key figure formula within WEBI Rich Tech client or within universe builder.
    The key figures were extracted from SAP BW and added to a universe which is basis for WEBI rich tech client report.
    thanks and regards,
    Christian

    Hi Stratos,
    so I see - i have to use the variable Editor and then define a measure and add coding in the formula field. Do you have an e-mail address ín order to send you the report and explain in more detail what I would like to see - here it is not possible to upload a report...
    thanks and regards,
    Christian

  • YTD and and previous year to date as variables

    HI All,
    If your cube doesn't have YTD and and previous year to date as variables to use - can these be created?
    Regards J

    Hi,
    Yes it can be staged in cube but you need to write routine and transformation/update rule level.
    If you need for some query requirement then you may achieve the same at query level. For this you need to create some Restricted Key figures by restricting your key figure with Calyear/month as per your need.
    Query level approcah will be much easier then the cube level.
    I hope it will help.
    Thanks,
    S

  • Chart: amount (count) of records per month (and year). How?

    I need to create a chart eventually. Can't get what formula to use. The data is:
    1 | 15 Jan
    2 | 20 Jan
    25 | 14 Mar
    26 | 16 Mar
    28 | 20 Mar
    The chart should show amount(count) of records per month(and year). So in this example:
    Jan: 2
    Mar: 3
    Hm... totally lost. Any tips?

    To do this it would be best to add a column in which you isolate the month from the rest of the date information. Here's an example:
    You may hide the Month-Isolated column if it impacts your presentation.
    The Month-Isolated formula is: =IF(ISBLANK(B), "", (MONTH(B)))
    The formula for the count in the Summary table is: =COUNTIF(Data Table :: $C, COLUMN())
    Hope this gets you on your way.
    Regards,
    Jerry

  • I want to keep date special month and year.

    I want to keep date special month and year.
    Example in sqlplus
    insert into area(input_time) values(to_date('MAR-04','MON-YY'));
    and select
    select input_time from area;
    the result
    01 MAR 2004
    in Oracle
    01-MAR-2004 12:00:00 AM
    I don't keep day, but I want to keep month and year.
    Can you do?
    Thanks.

    An Oracle date column must contain a date down to the second. If you don't specify a day or a time, it will default to the first of the month and midnight.
    If you want a column to only contain values at the beginning of a particular month, you can create a CHECK constraint that verifies that
    input_time = trunc( input_time, 'MM' )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Displaying current year and previous year's data.

    hi all,
    we have fields like doc.no, company code, costcenter, posting date, year etc... in a query.
    we are using this query to display data in VC,
    how can i display the current year and previous year's data in two different tables using the available fields.
    any help will be highly appreciated.
    thanks,
    Rk

    Hi Rk,
    You can achieve your requirement using 'Filter' operator. Drag one 'Filter' operator into visual composer story board and drag the output into filter and add condition(Check year=2008) and drag one table from filter. For another table use another filter and change the condition.
    Hope it helps...
    Regards
    Basheer

  • Parameter for Current Month and Previous Month

    I'm trying to create a parameter for current month and previous month based on the ex_date, but not sure what i'm doing wrong. 
    where ex_date = @SelectDate
    I created a second dataset below for the values in the parameters.
    SELECT Month(CURRENT_TIMESTAMP) AS 'Month', 'Current Month' as 'Current Month'
    union all
    SELECT Month(CURRENT_TIMESTAMP)-1 AS Month, 'Previous Month' as 'Previous Month'
    Results
    Month Current Month
    3 Current Month
    2 Previous Month
    Once I preview it I get "Conversion failed when converting date and/ or time from character string" I changed the data type to "date/Time" but that did not make a difference. The date is convert (varchar(10), ex_date, 101) so looks like
    11/12/2014. 
    I've also tried expressions like =month(now()) to pull current month with same error so i'm not sure what i'm doing wrong. Any ideas?

    i tired this real simple report
     in the first dataset - my main report query - select name from sysdatabases where month(crdate())=@month
    in the second dataset - select month(getdate()) as Month1
    in the parameters - choose int data type and available values - select the second data set
    in the first data set- add this parameter..( i am assumming you know this, since you have done)
    in the preview you should get the drop down with current month number - 3
    and if you run the report, it will display the database names that were created in march. remember we are no checking year, so will get all that were created in march across the years.
    Hope it Helps!!
    I'm looking to have the dropdown say "Previous Month" and "Current Month" as a option. I know how to get the information in SQL, but not sure how this translates or put into a parameter.
    Current Month
    list_date BETWEEN
    DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)
    AND
    DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0)
    Previous Month
    list_date between
    CONVERT(varchar,dateadd(d,-(day(dateadd(m,-1,getdate()-2))),dateadd(m,-1,getdate()-1)),106) /* Last Month */
    and
    CONVERT(varchar,dateadd(d,-(day(getdate())),getdate()),106)

  • Records for parameter month and previous month

    Hi,
    I have a request where the user parameter is calender year month (YYYYMM).I need to show the records of both the entered month and previous month.
    For ex: if the user enters 201107, I need to show the records of 201107 and 201106.
    Also,I am not using dashboards.
    Any suggestion...
    Thanks

    No, I don't see this as a solution. A session prompt can only be overridden by using a Request Variable, but they are found in Dashboard prompts which you have excluded as a solution. Therefore, any session variable you set would be "hard-coded" eliminating end-user interaction. Sorry.
    You will need to deploy dashboards for this. I will also add this: eliminating dashboards really restricts the power of OBI because it makes it difficult to implement interactive reports such as the one you are building. Perhaps you should use this example as a push to consider adding the value of dashboards to your environment.
    As this is useful information to others, please mark applicable posts that resolved your question. Thanks.

  • Selective deletion in DSO  for current and previous year

    Hi,
    Can any one give an idea how can I selectively delete current and previous year data (only). is there any process type that can help me in process chains. This should be before loading a fresh load for the same period. this is for psodo delta.
    or
    any other alternative, plz. suggest.
    Thanks
    ganesh
    Edited by: Ganesh on Jul 7, 2008 12:08 PM

    Hi,
    If you have any date value example posting date or 0CALMONTH.., you can filter the date using the selection conditions and selectively delete the data.
    Process:
    Manage of DSO->Contents Tab->Selective (with delete Icon)->Deletion selections->give the period->Execute->Start->Yes->continue.
    Hope this helps..........
    Rgs,
    I.R.K

  • Select-options split date into month and assign to low and high

    Hi,
       In my select-options i am giving BEDAT (01.04.2004 TO 30.10.2005).I need to split month and
    year in separate fields.that is
    select-option_low-month in one field
    select-option_high-month in second field
    select-option_low-year in third field
    select-option_high-year in fourth field.
    Finally i need to move these four fields to it_final.
    select * from mbewh into corresponding fields of table it_mbewh
               for all entries in it_final where matnr = it_final-matnr and
               bwkey = it_final-werks and lpmon = ? and lfgja = ?
               and  bklas <> ' '.
    what input i have to give in lpmon and lfgja in select query to get for lfmon (04 to 10)
    and lfgja (2004 to 2005).
    suggest some ideas.

    Hi ,
    Can you please check the following code.
    Hi ,
    data :  l_low_yr(4),
              l_high_yr(4),
              l_low_mon(2),
              l_high_mon(2).
    Splitting the select option date to month and year into low and higher values
    l_low_yr        =   s_date-low+00(04). "  Year low value from the date range
    l_low_mon    =   s_date-low+04(02). "  Month low value from the date range
    l_high_yr      =   s_date-high+00(04)."  Year high value from the date range
    l_high_mon   =   s_date-high+04(02)." Month high value from the date range
    selecting the data from the table mbewh based on some conditions.
    select * from mbewh into corresponding fields of table it_mbewh
               for all entries in it_final where matnr = it_final-matnr and
               bwkey = it_final-werks and lfmon BETWEEN  l_low_mon and l_high_mon
    and lfgja BETWEEN l_low_yr and l_high_yr   and  bklas EQ  ' '.
    This select will retrive the desired data records from the table MBEWH.
    Please let me know if this works according to your requirement.
    Thanks and Regards
    Saritha

  • BEx - Display current year and previous year by day on the same row

    Hello experts, need some help/suggestions on how I can accomplish the following please. 
    We have a requirement to show MTD revenue by day for the current year and previous year.  The desired result will have the following columns
    Calendar Day   |     Current MTD Revenue     |     Prev MTD Revenue
    11/01/2009       |      15,131,005                    |        15,138,668
    11/02/2009         |    15,055,345    |                        15,523,762
    However, the result is showing up as follows:
    Calendar Day   |     Current MTD Revenue     |     Prev MTD Revenue
    11/01/2008       | |                                                   15,138,668
    11/02/2008       | |                                                   15,523,762
    11/01/2009       |      15,131,005 |
    11/02/2009       |      15,055,345 |
    The number of rows for Calendar Day varies depending on the date the user selects.  We only want to display the days for the current year with the Previous Year Column on the same row. 
    Can someone please let me know how I can get the results to display on one line for each day? 
    Thanks,
    David

    I have the same issue on my end, and am interested in responses. I searched the forum and found this suggestion in another post; not sure if this solution will help, but it looks like it might. This was a response from poster RadhaN:
    RadhaN  
    Posts: 390
    Registered: 8/27/09
    Forum Points: 876 
       Re: a simple query to show sales versus last year on daily basis/   
    Posted: Sep 21, 2009 9:53 AM    in response to: Shlomi Weiss           Reply 
    HI Shlomi
    Create a virtual characteristic in your infoprovider that can calculate the day from calendar Day. In ZXRSRZZZ while adding code for this virtual characteristic use the function module DATE_COMPUTE_DAY to compute the day for every calendar day.
    For calculating Sales Current year, create a restricted ky figure with Sales as the key figure. Add 0CalDay to this RKF and create a variable for this infoobject(Eg: ZCURYEAR) that will receive input from the user for the range of dates eg: 08/16/2009 - 08/22/2009.
    For Sales Prior year, create another restricted key figure with Sales. Add 0CalDay to this RKF and add a customer exit variable. In the Customer exit code use the ZCURYEAR variable and offset it to prior year in both the upper and lower limits. This should work.
    I hope this helps.
    Thanks.

  • Current year and previous year

    Hi All Grus,
    i have a one requirement user will give input 30.04.2009 . the output should show last ten days including user entered date like 21.04.2009 to 30.04.2009 for current year and previous year
    this current year and previous should show column wise in row wise i need year like  given below
    user input:  30.04.2009
    row            column                                                                               
    21.04.09  22..04.09. 23..04.09 ..............................................................  30.04.2009
    2009       100          200            300         ...............................................................     500                            
    2008        200          300          600          .................................................................    1000               
    Edited by: kek.uthayakumar on Aug 4, 2009 7:57 AM
    Edited by: kek.uthayakumar on Aug 4, 2009 7:58 AM

    Hi
    You need to have customer exit variable on this calday and write code to obtain your logic. Search in SDN for sample codes:
    enter information required in search forum SAP Business Explorer (SAP BEx)
    Regards
    Ravi

Maybe you are looking for

  • MY MACBOOK KEEPS ON CRASHING

    MY BRAND NEW MACBOOK 2.0 GHZ 1 GIG OF RAM AND EVERYTHING WAS FINE I HAD BOOTCAMP INSTALLED IT WORKED FINE FOR A COUPLE OF DAYS AND THEN IT JUST STARTED CRASHING SO MUCH SO I TOOK BOOTCAMP OUT. AND IF I TRIED TO TURN IT BACK ON AND IT WOULND'T WORK, S

  • Can i use a 85 watt charger with a new macbook air

    Can i use a 85 watt charger with a new macbook air that comes with a 45 watt charger. One says its 14.8 volts and the other is 20 volts.

  • Problem use SQL query in coding report with SBO

    Hi everyone! I have problem in execute query to delete and create a report with SQL 2000 in SAP. Try         oForm.DataSources.DataTables.Item(0).ExecuteQuery("DELETE FROM rptReport") Catch ex As Exception End Try          oForm.DataSources.DataTable

  • SHD0 for VA02

    Hi i want to make payment terms not changed in VA02 so i try to use SHD0 . VBKD-ZTERM in program SAPMV45A screen 4303 but when i try to make invisible it is not working by transaction variant ., any where am i missing ..i avtivated the transaction va

  • Manually updating

    ok so that helped but how do i manually update my ipod...i am able to import the cd but where do i go from there?