Calculation average only in summer period

Dear all,
I am trying to make a report with a summeraverage. This means that I want te report to calculate an average if the date falls between 1 april and 30 septembre. What I used was the formula:
=if (<date> Between ('1-4-2009' ,'30-9-2009')) then (average(<value>))
It seems ok, but I am getting an error. Can someone tell me how to make it work?

Hi,
The formula should be:
=Average((If <date> Between ('4/1/2009' ,  '9/30/2009') Then <value>))
Regards,
Harry

Similar Messages

  • DP macros, calculating average values over a period of time

    Hello
    I have a key figure row, for the future i want this key figure to contain the average of a different key figure row over the last year.
    How would you go about calculating the average value of a key figure row over a period of time and then assigning this value to another key figure?
    I've tried variatons of AVG() and SUM() & SUM_CALC a but none of them seem to get me anywhere, i may not understand completely how rows & values work so any tips would be helpful.
    Iin pseudo-logic: what i need to do is:
    Calculate the average value of a key figure row over a given period (the last year)
    Store this value somewhere, in regular programming it'd be a variable of some kind.
    Assign this value to another key figure row 18 months into the future.
    Regards
    Simon Pedersen

    <H5>Hi Simon,
    If you are a technical guy, you can create a BADI implementation for that macro and manipulate the matrix data like the way you want.
    the procedure to implement a BADI is
    1.SPRO --> SAP SCM - Implementation Guide --> Advanced Planning and Optimization --> Supply Chain Planning --> Demand Planning (DP) --> Business Add-Ins (BAdIs) --> MacroBuilder --> Additional Functions for Macros.
    create a new implementation by copying the class for the BADI defenition '/SAPAPO/ADVX' and write your own code in the method '/SAPAPO/IF_EX_ADVX~USER_EXIT_MACRO '. There is a sample code and proceedure explaining how to handle the data in the internal tables C_T_TAB and C_T_TAB_OLD. the calculations can be made with help of I_T_LINES, I_T_COLS which are rows and columns tables.
    find out the the row and columns of the grid to be read and do calculation and then put the result in the desired cell.
    Please let me know if you need further assistance.
    Regards,
    Srini.
    Award points for the helpful answers <H5>

  • How to consider only values 0 when calculating Averages

    Hi,
    Currently, I am using Avg (table.column) function to caluclate averages. However, one of our user wants to only consider records that are >0 when calculating averages. For example if a result set as 10 records, and only 2 of them has values >0 then typically Avg function would caculate based on (sum of 10 records/10). But per our user's requirement, he wants to consider (sum of 2 records/2) and ignore the remaining 8.
    Can you please tell me how to do achieve this?

    I found the solution after much deliberatiion myself :-). I used the following formula instead of the AVG function and it worked.
    Note that "Fact - +fact name+".column is a numeric column and can have null values.
    SUM(IFNULL("Fact - +fact name+".column, 0)) / COUNT("Fact - +fact name+".column)

  • Filtering and calculating averages of array subsets

    I've got a 2-D array coming out of a loop and I need to calculate average for subsets corresponding to iterations 0-9, 10-19, etc..  Additionally, I need to filter out values above and below acceptable limits before calculating average.  Any suggestions for how to approach this?
    Solved!
    Go to Solution.

    My suggestion is to slog through each array subset, use a for loop to add up the values you want, keep track of the number of values, then divide out for the average. 
    Every tenth reading you could clear the sum and counts.
    The results would be saved in an array that only adds a value every tenth loop.
    You could keep track of the one to ten value separately from the number of values accepted ( a.k.a. Filtering).
    So my slog suggestion would be a for loop, two counters ( # accepted values and one to ten count), an array to store the averages and a numeric to hold the sum.
    The filter criteria would produce a Boolean that would toggle adding to the sum and adding to the # accepted values.
    The Sum and the counters need to be shift registers, and as I mentioned, there would be some logic to clear these shift registers every time the 'one to ten' count got to ten
    Mark Ramsdale

  • During PGI - Error - Posting only possible in periods 2006/12 and 2006/11

    Hi,
    I am a new to SAP.
    I am testing creating sales order. While posting Goods Issue,  I am getting error " Posting only possible in periods 2006/12 and 2006/11 in company code 1000"
    I searched and got solutions in SDN- Forum  as well as SAP best practice buidling blocks and tried but still the same error is appearing.
    I tried the following:
    1) Transaction code - OMSY - The details for company code 1000 is:
    Year-Period-Fin Year - Period-Fin Year-LM
    2006-12     -2006       - 11      -2005     -12
    I modify this to Year to 2011- Period to 1-other fields not possible to modify and save, but the changes does not reflect when we open this screen again. It displsys old date.
    2) Then I tried Transaction code - MMPV -
    I enter the follwoing details
    From Company code -1000
    To Comnpany code -1000
    Period
    Year  - I tried to enter from 01/2005 to 12/2010  and click execute, i am getting error mesasage that these are not current year.
    If i enter 01/2011, it is going to next log page but with errror message that 01/2011 is not current year and 12/2006 is current year.
    3) Then  I tried - SPRO - Financial Accounting (NEW) ® Financial Accounting Global Settings (New) ® Ledgers ® Fiscal Year and Posting Periods ® Posting Periods ® Open and Close Posting Periods
    and entered the follwing data and save.
    Var. A    To account    From per. 1    Year    To period   Year    From per. 2    Year    To period    Year
    1000 +                               1                 2000        12         2011     12                   2000     16            2011
    1000 A    zzzzzzzzzz       1                 2000        12         2011     12                   2000     16            2011
    1000 D    zzzzzzzzzz       1                 2000        12         2011     12                   2000     16            2011
    1000 K    zzzzzzzzzz       1                 2000        12         2011     12                   2000     16            2011
    1000 M    zzzzzzzzzz       1                 2000        12         2011     12                   2000     16            2011
    1000 S    zzzzzzzzzz       1                 2000        12         2011     12                   2000     16            2011
    Please suggest how to clear this error message.
    Regards
    Kasi

    Dear Kasi
    its not a problem if you are working on IDES.
    Enter T code SE16N.
    Enter table name MARV. Press enter.
    Enter your company code in the required field. Press enter.
    Enter   &SAP_EDIT   in the place where you entered the T code. Press enter. Now it is in edit mode.
    Execute (click on Clock icon). A new screen appears.
    Enter The Current Year: Current Month: Year of the previous Month: Previous month: Last year: Last month of the calendar year. As asked in the screen.
    Press enter. Save and come outside.
    Please do remember all the time period should be as per your system calendar.
    Also do remember this is only workable when you are using IDES for education purpose only. Because skipping so many periods in between can cause problems when you are on real time scenario. Using MMPV is the standard procedure where you close the periods one by one.
    Try it.
    Update forum.
    Pawan Sharma
    Edited by: Pawan KS on Feb 10, 2011 12:33 PM

  • Posting only possible in periods 2002/03 and 2002/02 in company code 0001

    All
    This is in the ongoing sequence where I am creating everything from the scratch(customers, material, prices  etc).So far, I have been able to create and save the salesorder>deliver it>pick the items and then I was going to carry out the PGI and then this happened.
    when I use the date i.e(Planned GI) 27-09-2006, I receive the following error
    ****************snip********************
    Goods movement: Error log
    Item   Material           Description                                   Delivery qty UoM Batch
    000010 9                  T-AS1_MATERIAL__9                                      10  PC
           E M7 053
           Posting only possible in periods 2002/03 and 2002/02 in company code 0001
    ************End snip*********************
    If I use a date as R/3 wants ,say 27.02.2002(Planned GI),I get:-
    "Picking date is after goods issue date"...which is obvious.
    any day after 27-09-2006, say 28-09-2006(Planned GI), I get :-
    "Goods issue date is later than delivery date"...makes sence too
    one thing was clear here to me, I can only post in Feb/March 2002, while my delivery date is 27 Sept 2006 . So I am in a classic chicken-egg situation.
    where and who is giving this "Posting only possible in periods 2002/03 and 2002/02 in company code 0001" message ? How can I override this thing from the past ?
    I thought of playing it smart and change my system date to the year Feb. 2002 , but in the fear that a lot of other things will fall as a result of that, I did refrain from doing so.
    Could someone make this PGI succesful for me
    Thanks for any lessons.

    Thanks Mr. Srinivas
    MMPV was indeed the magic wand.
    PGI was successful.
    this is my overall document flow as of now :-
    Standard Order 2                                27.09.06 Completed
    . Outbound delivery 80000000                    27.09.06 Completed
    .. WMS transfer order 1                         29.09.06 Completed
    .. GD goods issue:delvy 4900000020              30.09.06 complete
    .. Invoice 90000000                             30.09.06 Missing export data
    As I understand, my invoicing is not yet complete , it's got a number and got saved, but how shall I get rid of that red line message "Missing export data"(foriegn trade data incomplete...was the message while saving the billing document).I would be darn happy if I could just get rid of the foreign data part completely(just want to complete the invoice).Would this be checking off a mandatory rqmt. somewhere in the master data?
    and would this also be the reason, why I see no accounting document which should have been on status 'open' by now ?
    Thanks in advance ,

  • Posting only possible in periods 2011/11 and 2011/10 in company code 4000

    Hi All Experts,
    I have encountered with this error while doing MIGO.
    Posting only possible in periods 2011/11 and 2011/10 in company code 4000
    Message no. M7053
    Diagnosis
    The posting date entered is not within one of the permitted posting periods (current period/previous period).
    This can be due to one of two reasons:
    The correct current period has not been set in the system.
    For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
    You have entered a wrong date in the field "Posting date".
    Procedure
    Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed.
    I have checked OB52, OB29, OB37, MMPV, MMRV. All possible T.codes and threads I tried from SDN itself, still no luck ! In OB52 I have opened 2011 & 2012 year open absolute.
    Would like to share MMRV settings :-
    Current Period : 11 / 2011
    Previous Period : 10 / 2011
    Last period in prev year : 12 / 2010
    We have India based client so fiscal year variant is Apr to March copied from V3.
    Will be very much appreciable experts guidane !
    Regards,
    Sharvari Joshi.

    Hi All Experts,
    I raised the OSS, and here which I got the reply from SAP.
    There is a possibility to run the report RMMMINIT to initialize posting
    periods. Please bear in mind that the valuation data of the previous
    period could get affected.
    If you decide to proceed with the process, please review the
    documentation of program RMMMINIT.
    Please also review attached note 70545 regarding the initialization
    process. Although this note is NOT valid for your release, it provides
    good information on the use of initialization for correction purposes.
    Additionally, please review attached note 369637 in this regard as well.
    PLEASE FIRST PERFORM THIS IN A TEST/DEVELOPMENT SYSTEM PRIOR TO MOVING
    TO PRODUCTION AS YOUR VALUATION DATA FROM PREVIOUS PERIOD WILL BE
    AFFECTED. If you are satisfied with the results, then you can move it
    to production. Please perform this at your own risk as this hotline
    will not support any problems arising out of it.
    Related the error message MM016 please follow the steps from note
    487381:
    To reserve the parameter use transaction SU01 for the user's name who
    executes the RMMMINIT program. The parameter must be set as follows:
    Parameter Value
    MMPI_READ_NOTE YYYYMMDD (for the current date)
    I am not able make out any meaning out of it. Can anyone please understand me this ?
    Help will be appreciated !
    Reagrds,
    Sharvari Joshi.
    P.S : Steps from my side which I performed , I changed the parameters for my ID in SU01 to current date 2011.11.16 (YYYYMMDD) and running MMPI still same error.

  • Field that is Calculated - Read Only - Capturing output in XML after?

    Hello:
    I have defined a Calculated - Read Only field but I have not successfully bound it or captured its value in XML.
    In my Object Palette I do not have a Binding tab, so how do I capture its value in XML after?
    Thanks,
    Newbie in Adobe

    Unfortunately the fields you included in that Import/Export were text fields and thus had the Binding tab available in the Object Palette.
    Fields that are of type Calculated - Read Only do not have the Binding tab, so to get around that, I defined my variable to be Read Only, and added my calculation to the calculate script. The Binding tab was available and thus allowed me to bind my output.
    Problem solved.
    Thanks anyways,
    Newbie in Adobe

  • RE:calculated Average Valuated Stock Value

    Hi ALL,
    how to calculated Average Valuated Stock Value  logic (The sum of the daily stock value for the time frame of the analysis divided by the number of days) please guide me.
    regards,
    ravi

    Please ...........................
    guide me.......................
    how to created formula for this logic
    (The sum of the daily stock value for the time frame of the analysis divided by the number of days)
    Regards,
    ravi

  • Calculated (Read-Only) checkbox  is missing

    Hi,
    I am trying to create a new field via AET.
    i want to create a calculated field but i dont see the Calculated (Read-Only) checkbox in field details while creating.
    Could any one please let me know why is that checkbox not seen? does this has anything to do with version?
    Thanks,
    Rajini A.

    Did you try by enabling the Expert Mode?

  • The first 7 or 8 letters of a sentence are jumbled as I type. This happens only after a period of inactivity. Short or long. I start to type and a word like 'anybody', looks like this: 'ybodyan' I have done all the normal fixes. No luck. Ideas? Thx

    The first 7 or 8 letters of a sentence are jumbled as I type. This happens only after a period of inactivity. Short or long. I start to type and a word like 'anybody', looks like this: 'ybodyan' I have done all the normal fixes. No luck. Ideas? Thx

    It's in every text-input app I use in my normal day.....most frustrating as you have to do a doublecheck especially in documents which do not have any special spellcheck system. I've done the cleanmymac, maintenance, cocktail, PRAM reset, Font Cache Smash fixes.....and still I'm dogged by this. Its almost as though the motherboard or some interface system is 'sleeping' longer than it should (if there are any input areas of the MBP which rest during short periods of inactivity) and then the initial keystrokes on the keyboard are somehow not registered and only 'kick in' once half of a new word's characters are already on the screen........grrrrr.

  • Displaying calculated field only when data exist

    Hello,
    Is there a way to display my calculated value only when the data entry field is being used. For instance, if I have several fields vertically aligned, I don't want to display a bunch of zeros if their data fields are not being used.
    THANK YOU!!!!

    You can check for the rawValue in the Calculate event before any script.
    Event: Calculate
    //FormCalc
       if(Field1.rawValue ne null) then
         // write your script here
       endif
    //JavaScript
    if(this.rawValue != null){
       // write your script here
    Thanks
    Srini

  • Posting only possible in periods 2008/06 and 2008/05 in company code IBM1

    Hi,
    while entering Goods Reciept,
    the following error is displayed.
    Posting only possible in periods 2008/06 and 2008/05 in company code IBM1
    Message no. M7053
    could any one please tell regarding this.
    Thanks & Regards,
    Swathi

    Hi Swathi,
    Go to OMSY / MMRV and check which month is running against your company code.
    Go to MMPV and close the previous period.
    Note the Period 1 in the sence April and May 2 follows like this.
    Suppose if you want to close the June Month then you have to close the 3. (Ofcourse it depends on Fiscal year dependent).
    Now go to OB52 and check the Posting Periods below.
    1000     +               1     2002     12     2008     13     2008     16     2008     SPPE
    1000     A          ZZZZZZZZZZ     1     2002     12     2008     13     2008     16     2008
    1000     D          ZZZZZZZZZZ     1     2002     12     2008     13     2008     16     2008
    1000     K          ZZZZZZZZZZ     1     2002     12     2008     13     2008     16     2008
    1000     M          ZZZZZZZZZZ     1     2002     12     2008     13     2008     16     2008
    1000     S          ZZZZZZZZZZ     1     2002     12     2008     13     2008     16     2008
    If any of the above is missed, correct it.
    Definitely it will works in your case.
    Revert back if not solved.
    Reg,
    Ashok
    Rewards welcome.

  • KP26_intergration with excel Plan Activity can only change some period

    Dear Expert,
    We use kp26 intergrate with excel, when uploading Plan Activity can only change some period. (Uploading is successful)
    So, we've used same Layout and change data in KP26 directly for testing.
    (Only period 1,2,11 in 2010 can be changed, other periods remind the same)
    Second testing, we've change data in period 3-10 & 12, and it showed the following message.
    ***No planning data has been changed
    Message no. K8038
    Diagnosis
    You used Post. While preparing the data for posting, the SAP System determined that no changes were made in the available databank values.
    System Response
    A posting activity price is not necessary.***
    It's quite doggy. Plz help.
    Thanks

    Hi
    How about using an LSMW? I always prefer to use it and find it very comfortable as compared to Excel
    Regards
    Ajay M

  • Posting is only possible in periods........in company code....

    Hi Gurus,
    I am facing the error message "Posting is only possible in periods... in Company Code...."
    Where in config settings, I can fix that.
    Thanks,
    Kumar

    hi,
    This error occurs because your posting are not allowed for current period....
    For this you have to firstly check the open periods in OMSY...
    For eg : if its open for 02 2008, then Go to MMPV...
    Enter the Co. code
    Period : Eg 03
    Year 2008
    And then execute....
    If its open for 2007 etc, then click the excute button once, then system will show you a message, and just after that again click the main execute button....
    Then system will show you a log....
    You can see the changed open periods in OMSY again...
    Go on opening one by one till you reach the current one ie 10 2008...
    Regards
    Priyanka.P

Maybe you are looking for

  • % to sales formula required in Structures _ FI Report

    The Finance Profit / Loss report involves using of structures. Structures are elements with different GL account groupings Structure Elements    Balance    % to Sales Sale                         150000         100% Materials                    32000

  • Google maps blocking all other scripts

    I have googlemaps API in two places on my site: 1) In my webapp - display search results on map 2) In the detail layout of my webapp as a simple static map I get these messages in the console when trying to execute other functions: 1) Blocked script

  • Need step by step in details about upgrade 11.5.3 to 12.1.1

    Hi every one ! i' m trying to upgrade our ebs 11i from 11.5.3 on win NT4 To R12.1.1 on RHEL Linux 5.5 with another hardware. so can any one help me to get what i need in details with step by step instructions . and what patchs must be downloaded. and

  • Smart Object - Cropping on a Layer via Select- Inverse- Backspace

    OK, I have learned that you can't "Crop" on a layer, but instead should use the Select->Inverse->Backspace procedure to essentially "crop" a photo.  But this procedure does not work on a Smart Object photo. I have also found out that if you Simplify

  • Formula & Nokia 9500

    Dear Experts, I need people who know are both expert of phones and computer software programs. I have a developed a file in excel which has some formulas and it's working properly in PC but when I transfer my file to my Nokia 9500 one portion of the