COPA Report current period and previous period issue

Hi Gurus,
I have defined COPA report (Tcode KE94) based on line items. Now I want all values to be displayed based on an entry parameter in terms of period. That is to say that  If I give input values of "010.2013" as a period entry , my report should display the values for the the period specified i.e. 010.2013 in the first column and in second column  values for the period 009.2013 should be displayed and in the third column values for the period 001.2013 till 010.2013 should be displayed cumulatively.
For this, I choosed the character "period/year" in General data selection tab, clicked "Variable on/off" tab and gave values "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year.
For the 1st column (1st column which is suppose to display the values according to selection parameter), along with the character "company code" , I choosed the character "period" and clicked "Variable on/off" tab and gave value "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year.
For the 2nd column (2nd column which is suppose to display the values for the immediately preceeding period of the selection parameter), along with the character "company code" , I choosed the character "period" and clicked "Variable on/off" tab and gave value "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year. While doing so, I selected operator as "-" and choosed offset as 1.
For the 3rd column (3rd column which is suppose to display the cumulative values from the beginning of the fiscal year till the period mentioned in the selection parameter), along with the character "company code" , I choosed the character "period" and selected 001 in "From" and 016 in "To" tab.
Company Code selected in all the three columns is same and I have selected actual values i.e. 0 for "plan/actual indicator" tab.
When I run the report through Tcode KE30 , I give values as "010.2013" for the From and To selection tabs. System shows the values as per the selection parameter in the 1st column which is correct  but display values same as per coulmn 1st in the 3rd column which is wrong because it should be cumulative. 2nd column is blank. 
How to display the values for the immediately preceeding period and for cumulative period?
Regards,
makrand

Dear Ajay,
Thanks for the reply. Here are the screen shots.
For the general data selection tab
For the first column "current month" i.e. for the month
For the second column "Last Months"
For the third column "Cumulative" i.e. year to date
Following is the result of KE30
Values for the period 010.2013
You can see that values in the report for the period 011.2013 contains value for the previous period which is 59090.21
This value is matching when the report is run for the period 010.2013.
But in both the reports,the figures for Current month and YTD (year to date) are same.
Please let me know what setting is required in the current month column.
Regards,
makrand

Similar Messages

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

  • Balance sheet required for current quarter and previous quarter

    Hi Guys,
                 I am using 0FIGL_C10 cube for balance sheet report,i need to create balances for current quarter and previous quarter.
    user will enter the fisper, based on fisper it has to show the current quarter and previous quarter balance.
    how to calculate the quarter using fisper.

    you can use offset with ranges.
    or
    just offset of -1 , -2 & -3 seperately in 3 selections and add it in one column in formula (this will give u current quarter).
    similarly offset of -4, -5 , -6 will give u previous quarter result.
    total of 6 selection and 2 formulas. hide all selections from display.

  • Parameter for current year and previous year

    Hi all,
    I currently have 2 reports where the query is the same except in the where clause I have it filtered to current year and previous year based on the List_Date. I would like to make this one report with a parameter of Current or Previous year.
    Would I create 2 more datasets one for current and another for previous? I would think there is a easier way. Any help or direction would be great.  

    If you define a parameter in SSRS, you can use it's value in your query. Just make sure the parameter name, and CASE (SSRS is case sensitive when it comes to parameters) are the same in SSRS and your query. There's a parameter tab on the dataset properties.
    It SHOULD auto fill, but it never hurts to check, just in case.
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
    Yes it did auto fill the parameter tab in the dataset and I get a parameter to enter the year when I preview the report. Still a little confused on how I do current or previous year. Are the next steps what I need to do?
    @yearParam parameter:
    1) Create  Available or Default values 
    2) Current and Previous year as label
    3) For Value do I need to use a expression for current year =Year(now()) and previous Year?
    4) Add a filter on the tablix for list_date?

  • Display Current Quarter and Previous Quarter???

    Hi Gurus,
    I Had a requirement to display only the current Quarter and previous quarter in the report level using single quarter column.
    and my quarter value type is Q1 2013.
    Please anyone help me out on this asap/
    Thanks.

    Hi,
    Using time serious function you can acheive this requirement.
    http://obieetutorialguide.blogspot.in/2012/02/modeling-time-series-function-in-obiee.html
    OBIEE 11g Time Series Function
    or,
    Using presentation variable you can achieve this.
    Re: OBIEE 10g LY YTD returns YTD for past years
    The above thread for year you can change to qtr.
    Hope this help's
    Thanks,
    Satya

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

  • How to get data for current week and previous week using customer exit in Bex.

    Hi everyone,
    I have a scenario in which I need to display data for current week and previous week (based on "sy_datum" the program has to calculate current week and previous week) in Bex using  Customer exit. I have created one variable in Bex Query Designer and I have written code for the variable in CMOD. But it is not working fine, (I know that we can do the same by using offset value in Bex). Can some one guide me how to achieve my requirement using customer exit.
    Thanks in Advance,
    G S Ramanjaneyulu.

    Hi krishna,
    Thanks for your quick reply, can you have a look at my code,
    case i_vnam.
    WHEN 'ZPWK_CWK'.
    ranges : pre_week for sy-datum.
    data : start_date type DATS,
           end_date TYPE dats .
    ************FM TO GET FIRST DATE OF CURRENT WEEK ************************
    CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
      EXPORTING
        DATE_IN  = sy-datum
      IMPORTING
        DATE_OUT = start_date.   " WEEK FIRST DATE
    end_date = START_DATE + 6.   " WEEK LAST DATE
    END_DATE   = START_DATE - 1.   " PREVIOUS WEEK END DATE
    START_DATE = START_DATE - 7.   " PREVIOUS WEEK START  DATE
    **********PREVIOUS WEEK DATES IN PRE_WEEK******************
    pre_week-SIGN   = 'I'.
    pre_week-option = 'BT'.
    pre_week-LOW    = START_DATE.
    pre_week-HIGH   = END_DATE.
    APPEND  pre_week.
    CLEAR : START_DATE,END_DATE.
    endcase.
    Regards,
    G S Ramanjaneyulu.

  • Difference between current row and previous row in a table

    Hi All,
    I am having a problem with the query. Can some of please help me?
    I need to get difference between current row and previous row in a table. I have a table, which have data like bellow.
    TABLEX
    ================
    Name Date Items
    AAA 01-SEP-09 100
    BBB 02-SEP-09 101
    CCC 03-SEP-09 200
    DDD 04-SEP-09 200
    EEE 05-SEP-09 400
    Now I need to get output like bellow...
    Name Date Items Diff-Items
    AAA 01-SEP-09 100 0
    BBB 02-SEP-09 101 1
    CCC 03-SEP-09 200 99
    DDD 04-SEP-09 200 0
    EEE 05-SEP-09 400 200
    Can some one help me to write a query to get above results?
    Please let me know if you need more information.
    Thanks a lot in advance.
    We are using Oracle10G(10.2.0.1.0).
    Thanks
    Asif

         , nvl (items - lag (items) over (order by dt), 0)like in
    SQL> with test as
      2  (
      3  select 'AAA' name, to_date('01-SEP-09', 'dd-MON-rr') dt,  100 items from dual union all
      4  select 'BBB' name, to_date('02-SEP-09', 'dd-MON-rr') dt,  101 items from dual union all
      5  select 'CCC' name, to_date('03-SEP-09', 'dd-MON-rr') dt,  200 items from dual union all
      6  select 'DDD' name, to_date('04-SEP-09', 'dd-MON-rr') dt,  200 items from dual union all
      7  select 'EEE' name, to_date('05-SEP-09', 'dd-MON-rr') dt,  400 items from dual
      8  )
      9  select name
    10       , dt
    11       , items
    12       , nvl (items - lag (items) over (order by dt), 0)
    13    from test
    14  ;
    NAM DT             ITEMS NVL(ITEMS-LAG(ITEMS)OVER(ORDERBYDT),0)
    AAA 01-SEP-09        100                                      0
    BBB 02-SEP-09        101                                      1
    CCC 03-SEP-09        200                                     99
    DDD 04-SEP-09        200                                      0
    EEE 05-SEP-09        400                                    200
    SQL>

  • Next and previous button issue with Prettyphoto in filtered gallery

    Hi there,
    I'm stryggeling with a next and previous button issue with Prettyphoto in filtered gallery.
    Like to have it like this: http://demohtml.templatesquare.com/think/portfolio.html#!prettyPhoto
    (next and previous buttun are there as well social connection)
    My problem is this: http://finca-sonrisa.bitl.nl/sonrisa_gallery.html
    (social connection is there but no next and previous buttons??)
    Anybody who has a solution fot this. Have tried to change the CSS, Javascript and has followed the instructions from Prettyphoto but without any succes.
    Your help we muchly appriciated,
    Best Regards,
    Rolf

    bump PLEASE HELP

  • 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

  • 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

  • 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

  • Financial Reporting - Current Period Variable

    Anybody know a quick way to get the Current Period Number (eg June = 6 ) for use in a formula? Thanks.

    You'll need to restart FR studio, after you have created the substitution variables. As the studio only performs one read of the sub var database on startup.
    It also won't show up unless you assign a member to it.
    Hope this helps.
    Iain

  • 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

  • Show current month and previous month measures

    Experts,
    My period names are stored like this in the Period Dim table 'Jan 2012'.....'Aug 2012', ... 'Dec 2012' etc..
    To my request, i will pass only the current period value via. a drop down prompt, say 'Feb 2013' and it has to apply filter like this Period."Period name" in ('Feb 2013', 'Jan 2013').
    I cannot use TIMESTAMPADD(SQL_TSI_MONTH, -1, Period."period name") as my period name is a char. Can someone suggest any idea?
    Version : 10.1.3.4
    Regards,
    Sarvan

    Hi,
    This can be achived,but little bit tedious process...
    Create an intermediate report with three columns.
    first column : Monthcolumn,which you are using in prompt.
    Second column :This column is for selected month
    Try to convert Jan 2012 to 201201,Feb 2012 to 201202...This can be achieved by writing a case statement like below
    cast((Case when substring(column from 1 for 3)='Jan' then 01...........)||substring(column from 5 for 4) as int)
    Third column:Prior month
    cast((Case when substring(column from 1 for 3)='Jan' then 01...........)||substring(column from 5 for 4) as int)-1
    Now add the same column formula to the main report and hide it(let's say column name will be "HIDED")
    cast((Case when substring(column from 1 for 3)='Jan' then 01...........)||substring(column from 5 for 4) as int)
    Now you can apply filter based on another request on the hided column.
    HIDED<=Second column in intermediate report.
    HIDED>=Third column in intermediate report.
    Now you will get the desired reults in your report.
    Hope this helps.
    Thanks,
    Pramod.

Maybe you are looking for

  • How do I load a website folder onto the ipad of offline use?

    I have a website that I want to load onto the ipad for viewing without interntet.  I have the entire 1000+ page site and images on my laptop's desktop and I can view it there. How do I put it on the iPad and use it there? Thnaks for the help.

  • BDP-S5100 as a DNLA server to stream SACD to airplay speakers

    Hi Folks,I know my BDP-S5100 acts as a DNLA client to render from different sources but I would like to stream CDs from the Sony to a DNLA renderer connected to my HIFI . Is this possible to do this and would it work with DSD content on SACDs? Thank

  • Emulated DS's  appearing , info packs miss after system copy in 7.0 system

    Hi All We did a system copy of our BI dev system into a new installed BI 7.0 system.As part of the post refresh steps we ran the BDLS run.We noticed that all the info packages were missing and the emulated data sources appeared instead of 7.0 data so

  • SmartView - Manage Process - 11.1.2

    Hi, I set up my process workflow hierarchy. i have e.g. user 'bvo' as owner and user 'jhb' as reviewer. In planning as user bvo i normally promte my entity part to bvo and then he can take ownership. However in smartview this is not possible as i get

  • ITunes is not updating my security code!!!!

    We switched banks, I have a working debit card, yet iTunes keeps telling me the security code is invalid! Anyone know why? Thank you.