"Previous Period" Calculation

I'm building a 12 monthl trend reports in Deski and need to call a previous period value (which i halve already retrieved in the query) into a current period calculation. The example would be "Installation Revenue divided by Previous Period Installations".  Is there an easy way to do this?

You try to create a variable using the "Previous" function in Deski and use this variable in your calcualtion.

Similar Messages

  • Any BAPI for calculating Previous Period Balances?

    Is there any BAPI for calculating previous period balances my period is 04 and have to display 123 period balances.
    please help.
    Moderator message: please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 5, 2010 4:45 PM

    Well, did you even try via SE37 a simple F4 with BAPIBALANCE or BAPIACCBALANCE* will give you the answer....
    Regards,
    Raymond

  • Dax Calculating Same time previous period with nonstandard periods

    I need help dealing with prior period calculations where the periods are not standard.
    In our business we define these time periods based on 8 to 10 week periods that really have no correlation to standard weeks, months or quarters.  Additionally there may be some time between these periods that are not defined. For example:
    Period 1 (p1) = June 18 - Sept 2
    Period 2 (p2) = Sept 17 - Dec 9
    The length of the periods are variable and when one ends another does not necessarily begin.
    I need to figure out how to compare the sum of a metric in Period 2 with the sum of a metric in Period 1.
    I have a standard Date dimension. And I have a period deminsion with the period labels (p1, p2 etc.) the start date, the end date of the periods, and a column called previousPeriod that has the label of the prior period.
    Each Fact has a Period ID so that I can use period as a dimension.One of my measures is Sum(sales).
    I want it so that if I am viewing the Tabular cube by period, I can have the sum of sales for that period, and the prior one. I hope it is clear what I am trying to do.

    You should add to your Date table a column that contains an incremental number for each period, then write something like:
            CALCULATE
                [Sales],
                ALL
    ( 'Date' ),
                FILTER
                    ALL
    ( 'Date'[IncrementalPeriod] ),
                    'Date'[IncrementalPeriod]
                        =
    EARLIER ( 'Date'[IncrementalPeriod]
    ) - 1
    I suggest you this pattern that will be published on March 31 - it contains many more examples, including how to write the make this formula working also with a partial arbitrary selection of days in the selected period:
    http://www.daxpatterns.com/time-patterns
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

  • Calculating previous period inventory

    Hi All
    Is it possible to find out the inventory in a particular period. Like if I want to find out what was the inventory available in 2nd period of 2009.
    I know from MBEW we can pick up the inventory in current period, previous period and previous year's inventory.But is it possible to find out for a particular period.
    Thanks.

    Hi
    Try in MB5B or S_P00_07000139 reports, and also MBEWH table.
    Thanks

  • R12 - FSG: Calculation Using Previous Period Balance

    My client has the following requirement for an FSG:
    Period 1 Period 2 Period 3, etc.
    Row 1 PTD Actual/Account
    Row 2 PTD Actual/Account
    Row 3 PTD Actual/Current period -less- PTD Actual/Previous period
    In other words, for 1 row of the report, we need to display the period's activity instead of the ending balance.
    What would be the best way to do this?

    Hello.
    On column account assignments choose the Net Activity.
    Octavio

  • "lock" values of tax depreciation for previous periods

    Hi all,
    is it possible to lock calculated values of depreciation for previous periods? We need it for the case when e.g. depreciation key is changed. Then we want preserve the values for previous periods and change only the future values. But please note that we want this for depreciation area, which does not post values to GL.
    thanks
    Zbynek

    Hi,
    It did not work for me. I changed the useful life from 30 to 20 yrs and then used menu path Edit/Recalculate values. Then I used the Tx S_ALR_87012936 to display the depreciation values for individual months. But all the values were the same, i.e. the values for previous periods were not kept.
    So is there a way to keep these values?
    thanks,
    Zbynek

  • Vendor evaluation report to be run for previous period

    Hi,
    Is the possible to run the Vendor evaluation report for back date.
    i.e. if the period of evaluation is 30 days, can we run the report for previous periods
    Regds,
    Ritesh

    Depending on the library you are using, can you verify whether you can use one of the following variables?
    1PERIK   
    1PERW   
    5ACPERI  
    6-PERIK  
    8WPERIO
    All these variables use fiscal periods and not calendar periods, that way you don't have to bother about number of weeks in a period, unless you really need to do the calculation based on number of days in a period.
    If your library does not support these variables, then pl copy one of these variables (GS11) with appropriate details into a custom variable and use it in your report.
    Let me know.
    Regards
    Subodh

  • How to get "Valuated unrestricted-use stock in previous period"

    Hi!
    I need the Valuated unrestricted-use stock in previous period for a material.
    I'm using the MCHB table but CVMLA field doesn't match with the value calculated by standard tcode.
    There is any FM that can help me?
    Thanks
    Salvatore

    Problem solved

  • Table for previous period stock

    Please provide me the table name or report from which I can get only quality stock in previous monht
    I just need the quality stock in previous month
    need a table

    xxxxH tables certainly have correct data, just not in good readable form.
    you need to use a function module to retrieve the previous  period stock:
    A calculation of previous period data for table MARD could have the following form.
      select * from mard into table mard_tab where werks = 'ABCD'.
      call function 'MARD_EXTEND'
        exporting
          xvper = 'X'
        tables
          mard_tab = mard_tab.
    table MARD_TAB is filled with the previous period information.

  • Adding asset in the previous period and depreciation run

    Hi Experts,
    I want to know whether we can add an asset for the previous period and run the depreciation.
    I will try explaining with an example.
    Let us say,I forgot to add an asset and i want to add an asset now with date as 1st July 2008. Is it possible? If it is possible will the system calculate the depreciation from July or will it calculate from the date the asset has been added?
    Please explain.
    Thanks,
    Sasidhar

    Hi
    It will allow you to add a new asset in the closed period with few conditions
    Since you have given in your example as july 2008, check whether your FI year is open. Then check the asset period whether its opened are closed
    If all the periods are not resticting you, you can go a head with adding an asset
    Your depreciation will be calculated from the date of purchasing, that means only the calculationg will happen from that period and not the accounting entry
    You will have only one planned depreciation from july to current period as per your example. So when your running the planned depreciation run for the current period, the entire depreciation will get posted now
    You can do repeat run only for one period prior to the current planned period and not at any prior period
    So with your example of july 2008, if your running AFAB monthly, repeat run may not work
    Warm Regards
    Bala

  • Query for Previous Period Accumulated Dep

    Can someone suggest me the best way to query the previous period accumulated depreciation for an asset.
    I am facing with every way I have tried.
    1st Way = Current Accumulated - Current Month Deprn (FA_DEPRN_SUMMARY). But in case of retired assets, the Current Accumulated becomes 0. So, this wudnt be a correct value to display.
    2nd Way = Going back one period and taking the Accumulated Depreciation value. This is very problematic in queries. I got error for some dumb scenario I didnt test in the query. Apparently if there are more than 2 rows in FA_DEPRN_DETAIL, then 2 records will return instead of one.
    Can someone help me out.
    Regards

    Hi,
    Check why the amounts in accum dep is calculating less amounts?
    If your dep key and dep rates are correct, then there is no problem with the dep calculations.
    Still if you feel that, a particular asset is to be depreciated more than the planned dep, you must perform a unplanned dep postings with Tcode ABAA
    Before doing this you must have been done the config for the unplanned dep via the below tcodes.
    OABU, and AO95.
    Then try to post run planned dep with ABAA now, since this will only create an internal asset accounting document for the date 31.03.2009.
    So if you run the dep run for the 12 period (if you follow apr-mar) with repeat option and by selecting list assets and execute it.
    Here you see an separate dep doc will be generated for unplanned dep for your asset.
    hope this might help you.
    Thanks,
    Srinu

  • Reading previous period value is logic

    Hi,
    There's a need to read previous period value is logic for some processing, can you please help me out how this can be achieved. I have a selection for time in the package called %TIME_DIM% and I am running for the current period. I have tried following options
    First
    *WHEN XYZ
    *IS "ABC"
    *REC = (FACTOR=GET(TIME=PRIOR), SOMEDIM=VALUE)
    *ENDWHEN
    When above code executed with current period (no record exists for current period) nothing is read.
    Second
    *XDIMMEBERSET TIME = PRIOR, %TIME_DIM%
    *WHEN XYZ
    *IS "ABC"
    *REC = (FACTOR=GET(TIME=PRIOR), SOMEDIM=VALUE)
    *ENDWHEN
    In the above case no record is selected and surprisingly the select statement fired (got it form the log) is for the last time period maintained in the system - 1. So if I have time dimension members till 2020.DEC this picks up 2020.NOV. I didn't understand why?
    Would appreciate help on this.
    Thanks

    Anand,
    It is not very clear what you are trying to achieve here.
    Perhaps you already have this, but below some explanation about special time selections that you can use in SQL logic.
    The time shift instructions
    To simplify the calculation of leads and lags in financial reporting applications, the following new instructions have been implemented for SQL-based logics:
    PRIOR
    NEXT
    BASE
    FIRST
    The instructions PRIOR and NEXT support an optional numeric parameter. This parameter represents the number of time periods by which the current period must be shifted. If omitted, the functions will assume a time shift of 1 period (forward or backwards). Negative values are accepted (A negative value for a NEXT function corresponds to a positive value for a PRIOR function and vice-versa).
    Examples:
    TIME=NEXT          // In a monthly application this means next month
    TIME=PRIOR(3)     // Three periods backwards
    TIME=NEXT(-3)     // Same as PRIOR(3)
    The keyword BASE always represents the last period of prior fiscal year. When the fiscal year is a normal calendar year and the frequency is monthly, the base period of 2004.JUN is 2003.DEC.
    The instruction BASE can be useful in YTD applications, where the opening balances need to be retrieved from the last period of prior year.
    The keyword FIRST always represents the first period of the current fiscal year. When the fiscal year is a normal calendar year and the frequency is monthly, the base period of 2004.JUN is 2004.JAN.
    In case the time shift goes past the boundaries of the TIME dimension, these time shift functions will return no period.
    These functions can be used in four ways:
    -     To re-direct the destination period in a *REC statement
    Example 1: *REC(TIME=NEXT)
    Example 2: *REC(TIME=BASE)
    -     To retrieve a value from a different period in a *REC statement
    Example 1: *REC(FACTOR=GET(TIME=PRIOR(3))
    Example 2: *REC(FACTOR=GET(TIME=BASE)
    -     To add periods to the selected data region in a XDIM_MEMBERSET statement
    Example: *XDIM_MEMBERSET TIME=PRIOR, %TIME_SET%
    In this example, if the first modified period is 2004.APR, the instruction PRIOR will add 2004.MAR to the region to process).
    -     When the keywords PRIOR, FIRST or BASE are added to a XDIM_MEMBERSET instruction, the time period PRIOR, FIRST or BASE can be also evaluated in a WHEN / ENDWHEN structure, like in the following example:
    *WHEN TIME
    *IS PRIOR
         // ignore
    *ELSE
         *REC(u2026)
    *ENDWNHEN
    In presence of an XDIM_MEMBERSET containing the PRIOR keyword, like in the above example, the WHEN structure here shown will recognize 2004.MAR as PRIOR period.
    Following is an example of logic that performs a carry-forward of account ACCREC, while adding to it the periodic amount from EXTSALES.
    *XDIM_MEMBERSET TIME=PRIOR,%SET%,%PREFIX%.DEC
    *CALC_EACH_PERIOD
    *WHEN TIME
    *IS PRIOR
         *WHEN ACCOUNT
         *IS ACCREC
              *REC(ACCOUNT=u201DOPEACCRECu201D,TIME=NEXT)
         *ENDWHEN
    *ELSE
         *WHEN ACCOUNT
         *IS EXTSALES
              *REC(FACTOR=-1,ACCOUNT="OPEACCREC",TIME=NEXT)
              *REC(FACTOR=-1,ACCOUNT="ACCREC")
         *IS OPEACCREC
              *REC(ACCOUNT=u201DACCRECu201D)
              *REC(ACCOUNT=u201DACCRECu201D,TIME=NEXT)
         *ENDWHEN
    *ENDWHEN
    Hope this helps,
    Alwin

  • Opening Balances for Previous Periods

    Hi Experts,
    There is a client requirement of entering opening balances for GL for previous periods before going live.
    eg it is required to have OB for 2006,2007 and 2008 before live transactions are entered into the system.
    Please enlighten on how to carry out this.
    Regards,
    Asap

    Hi Asap,
    You could only have one OB for one account.  If those OB for different years are for different accounts, it is ok.  Otherwise, you have 2006 OB only. You may create JE to get something like OB for 2007 and 2008.
    Thanks,
    Gordon

  • Billing Document cancelled in previous period

    Hi Experts,
    There is an issue that an invoice was created in the month of Jan. 2010, it got cancelled due to some reason and while cancelling it user has manually put date of Dec.2009. It has impacted the customer ledger. Here the previous period is opened as client's requirement.
    Kindly suggest the solution.
    Thanks & Regards
    Girish

    Pass a manual accounting entry for reversing the effect of cancellation in Dec09 month.  Pass another entry in Jan10 month too.
    I am sorry but since the document is totally closed and cancellation sets itself off against the invoice document, you can't do much.  You cannot cancel a cancellation document to reset its effect.
    Thanks
    Kapil Sharma

  • In previous period posting system is allowing less qty for goos issue

    Dear All,
    I am doing goods issue in previous period.Though in material master previous period system is showing 0.125 MT of material ,in MB5B same quantity of material in previous period is available also I checked in MB51 for all material document and transactions ,still system is allowing me to issue only 0.046 MT not
    0.125MT. What may be the reason--but it is allowing 0.125 MT for current period.
    Thanking you in advance
    Mrinmoy Chakraborty

    Hi,
    Please check your stock detail for your material with MB5B in back date.
    And check in back date the stock is available for your requirement.
    Regards,
    Mahesh Wagh

Maybe you are looking for

  • Populate a drop down list with data from Excel and fill in a text field, based on drop down selectio

    Hi! I have a problem with a PDF form: There's a drop down list that I populate with Excel data that I've put in an XML file through an XSD file -- no problem here. The drop down list has a data binding to the XML file, so that a choice in the drop do

  • Prob with decode function

    hi iam having prob with the following decode function declare c varchar2(20); begin select decode(deptno, 10, 'accounting', 20,'Research', 30 ,'sales', 40,'operations','UNKNOWN') into c from dept where loc='DALLAS'; dbms_output.put_line('DEPARTMENT i

  • Help Reqd in SQL Syntax

    Hi, I am using the following statement: select * from table1 where field1 = 'a' and rownum <= 10; After I execute this statement SQL Plus gets stuck, I am not able to figure out what I am doing wrong here, Please advice, Thanks, Raja

  • INS-40912] Virtual host name: rac2-vip.localdomain is assigned to another system on the network.

    Hi, I am getting the INS-40912 error while installing clusterware software. PFB my host file entry on rac node1 127.0.0.1   localhost.localdomain localhost ::1         localhost6.localdomain6 localhost6 # Public 192.168.0.151    rac1.localdomain     

  • How to divide brush strokes?

    Hi everybody, I have no problem dividing objects using the "divide" tool in the Pathfinder palette, but I was wondering if there was a way to divide brush strokes? For example, let's say you wanted to paint three brush strokes right next to each othe