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

Similar Messages

  • 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

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

  • 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

  • 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

  • KE30 with currnt year and previous year columns

    I continually get memory low when I run a KE30 report. I have made some changes to see if I can determine the possible cause. What I noticed was the following: If the report is just for the current year and I look at KEDT the number of actual record read is approx 1,500,000. If the report is just for the prior year the actual records read is approx 1,800,00. If the report is for current year and prior year the actual records read is approx 9,000,000. 9,000,000 seem to be aprox the total number of PA records, i.e. the actual records is the total number of PA records.
    This is a complex report with aprox 120 rows and 9 columns, reading record types F,D and B.
    Has any one had a similar problem and that may be able to help.
    Regards
    Rob Viljoen

    I assume the other 6M records is years prior to the current year?
    You have two options, investigate the selection criteria that results from the report, and try and stop it selecting the other 6M records as well. Something is happening in the report that contains both years, which opens up the net effect of the selection criteria.
    I am certain that you will find something in the aforementioned. If not, try and split the report into pieces, where a summary report is called first, and then the user drilldown into the detail report.

  • Current Year and Previous Year (derived) data comparison

    Scenario:
    Dimension Table for Date:
    -Current Year
    -Previous Year
    -and other date related fields
    Fact Table:
    -Sales (contains current year sales depending on the filter set)
    *Filter on Year
    Would anyone know how will I create a measure for Previous Year Sales?
    So that whenever my report shows the current year (for example: 2009) data of my sales, I can also have a column that would also display the previous year data and it will automatically know that it would display the previous year data of the Current year displayed in my report.
    Also, how to derive the percentage change of this 2 columns.
    Year: 2009
    Branch --- Current Year Sales (Sales from Fact table) 2009 --- Previous Year Sales 2008???
    I want to add the Current Year Sales And Percentage Change of Sales in the Business Model/Mapping Section. so that it would be available in the presentation layer of Oracle Answers.
    Thanks.
    Edited by: user12074468 on Oct 16, 2009 4:38 PM

    Use column filters. Click on the fx button on your Sales column. Click on the Filter button. Now go to the Time.Year column you have and click on it. When the filter window comes up, click on Advanced and convert the filter to SQL. Now insert the Current Year column so that you have Time.Year = "Current Year" Click "OK."
    Get another Sales column and put it in your workspace. Follow the above procedure except this time use th Previous Year column.
    Now you have two Fact columns, one that filters for the Current Year and one that filters for your Previous Year.
    Now for your variance, click on one more column and place it in your workspace. Click on the fx button. This time click on the "Column" button. You will see a list of your columns. From this, create the (Current Year)-(Previous Year)/(Previous Year)*100.00. In the Data Format tab, change the format to percentage.
    You also have the option of creating the above calculations in the BMM layer too.

  • 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

  • How to display current postion and previous position in the same row?

    I need to produce a promotions/transfer report that gives the employee's current position as well as his/her previous position in the same row.
    for example:
    Employee current position current organization current company previous postion previous organization previous company
    Jane Smith Executive PA ZYX ltd Harmony personal assistant ABC ltd Yahoo
    I am using the per_all_people_f, per_all_assignments_f, per_periods_of_service, hr.all_organization_units, per_all_positions tables
    Somehow i cannot manage to display the previous position. I can only get so far to display the current postions
    Any ideas? here is the full code
    --this query gives current info
    select ppf.employee_number, ppf.full_name
    , (DECODE (ppf.sex, 'M', 'Male', 'F', 'Female') ) gender
    , (DECODE (ppf.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race
    , ppf.ORIGINAL_DATE_OF_HIRE
    , paf.EFFECTIVE_START_DATE current_postion_start_date
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Current_Position
    , ho.name Current_Organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) current_company
    from per_all_assignments_f paf,
    hr_all_positions_f_tl hpt,
    hr_all_organization_units_tl ho,
    per_all_people_f ppf
    --where paf.person_id = 16170
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ASSIGNMENT_NUMBER is not null
    and ho.organization_id = paf.organization_id
    and ppf.person_id=paf.person_id
    and paf.EFFECTIVE_START_DATE between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    order by paf.EFFECTIVE_START_DATE
    --this query gives previous position, organization and company
    select ass.EFFECTIVE_START_DATE
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Previous_Position
    , ho.NAME previous_organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) previous_company
    from per_all_assignments_f paf, hr_all_positions_f_tl hpt, hr_all_organization_units_tl ho
    where paf.person_id = 16170
    and paf.EFFECTIVE_START_DATE not in (select max(paf.EFFECTIVE_START_DATE)
    f rom per_all_assignments_f paf
    where ass.person_id = 16170)
    and paf.PRIMARY_FLAG ='Y'
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ORGANIZATION_ID=ho.ORGANIZATION_ID

    Ok so here is my problem. The current position display 3 times. The rest is correct. it only display once. Any ideas on how to get rid of the 2 extra rows that is being displayed with the current position?? I only need the current position to display once with the previous position info.
    select distinct pvs.person_id,
    peo.EMPLOYEE_NUMBER empno,
    peo.FULL_NAME,
    (DECODE (peo.sex, 'M', 'Male', 'F', 'Female') ) gender,
    (DECODE (peo.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race,
    peo.ORIGINAL_DATE_OF_HIRE,
    pvs.EFFECTIVE_START_DATE curr_start_date,
    RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') current_position,
    pvs.ORGANIZATION current_organization,
    substr(pvs.PAYROLL,5)current_company,
    a1.previous_position,
    a1.previous_organisation,
    a1.previous_company
    from per_periods_of_work_v pv,
    per_assignments_v2 pvs,
    per_all_people_f peo,(select distinct RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') previous_position,
    pvs.ORGANIZATION previous_organisation,
    substr(pvs.PAYROLL,5)previous_company,
    pvs.job_id job_id,
    pvs.organization_id,
    pvs.position_id,
    pvs.location_id,
    pvs.PERSON_ID,
    pvs.PEOPLE_GROUP_ID,
    pvs.EFFECTIVE_END_DATE,
    pvs.EFFECTIVE_START_DATE
    from per_assignments_v2 pvs
    where sysdate > pvs.EFFECTIVE_END_DATE
    and pvs.person_id=4723
    )a1
    where peo.person_id = pvs.person_id
    and pvs.person_id = pv.person_id
    and a1.person_id = pvs.person_id
    and pvs.EFFECTIVE_START_DATE between peo.EFFECTIVE_START_DATE and peo.EFFECTIVE_END_DATE
    and pvs.PEOPLE_GROUP_ID <> a1.people_group_id
    and pvs.JOB_ID <> a1.job_id
    and pvs.ORGANIZATION_ID <> a1.organization_id
    and pvs.position_id <> a1.position_id                     activating this elimnates 1-Feb-2008 info
    and pvs.effective_start_date -1 = a1.effective_end_date     activating this eliminates 1-feb-2008, 1-jul-2006, 1-april-1996 info
    and pv.person_id = 4723
    order by pvs.effective_start_date desc

  • 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

  • Current fiscal year and previous fiscal year restriction in Query  Customer

    Hi ,
    My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
    I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
    Could you please provide customer exit code if you have or recomend if you know any other options.
    Appriciate you help
    Thanks

    hi try this
    take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
    The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
    so for current year
    WHEN 'CURRPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    for previous period
    WHEN 'PREVPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_year = l_year - 1.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    bye
    Boujema

  • 12 month but devided into current and previous year

    hi guys
    i have this requirement to disaply amount for current period and previous period for 12 month.
    Current period is the period of  user entered year and previous period is previous year 
    So if user enter feb 2007 u2026Then current year is  feb, jan ,dec 2006
    And previous period is   Nov 2006  to March 2006
    user is entering the value 0CALMONTH ...and report to need to display 12 month internval betwen years. my problem is how to check the year  and interval
    please help me without any custom exit? can it be possible thru varibale?

    Hi,
    I think i misunderstood your question previously.
    You can create offsets on CALMONTH and achieve this easily.
    1)In the columns are of query disigner, create selections for 12 months by using CALMONTH and offset each field by -1 or -2,-3,-4 ..... -12.
    2) Create a Text Variable to show the month Value in column header
    3) Create a structure in columns area and place it below all the CALMONTH selections
    4) Include all your Key Figures inside the structure.

  • 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

  • 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

Maybe you are looking for

  • Trendline in graphic

    Hi, I'm using Crystal Reports XI, I create a graphic in my report and I want to have a trendline in this graphic. I look on the Internet and the helpfile but I didn't find a way to do it. It is possible ? Regards, Hugo

  • Iphoto events vs albums

    If photos are deleted from events will they remain in the albums I created. I copied and pasted the pics from events into albums, and now want to delete the events so we don't have duplicates...

  • Dashboard as window in Spaces?

    Anyone know if there is a way to make Dashboard one of the window zones in Spaces? Sorry if this is a feature request, but it would make my life so much easier! (I love Spaces.)

  • Custom match codes

    Dear All, There is one new error saying that "Custom matchcodes can no longer be used in the unicode systems". Please explain the error. Regards Akshay Korade

  • RSA1 doesn't work!!!!

    Hi Friends, I've got a big problem. I was modifying an open hub destination, including a routine assignment in the transformation rule. After execution the DTP, the system gave me a Dump. After that, the system took me out of RSA1. I tried to re-ente