Making an average of a sum key figures

hi
I have a key figures that is defined as integer and has the fields in "Aggregation" tab defined as SUM /Summation.
In a report the customer is now asking to see the average values when the data is aggregated. I started making a "Calcultated key Figure", where I defined "Aggregation" tab as follow:
- Expection Aggregation :  Average
- Ref. Characteristic: Incident ID
Incident ID is the lowest level of information. Is this correct if I want to calculate the average that starts on incident ID level?

Hi,
This will give u result mathematically as,
= Summation of KF / No. Incident IDs

Similar Messages

  • Do Any One Can explain How to Create Non-Summing Key Figure??

    Hi Guru's,
    Can Any buddy explain how to create a Non-Summing Key Figure?
    Details:
    I am creating Three Key Figures, One of them are Ticket Number's.
    Ticket Number supposed to be a Characteristic, but I was asked to do it as a Key Figure.
    If I create it as normal KF, then the Ticket Numbers will be summed, isn't it?
    Your Help much appreciated.
    Regards,
    BH

    Hi,
       If you are going to use that keyfigure in ODS, in Update rule you are having the option 'OVERWRITE' .
      choose Overwrite for that keyfigure instead of 'Addition'.
    rgrds,
    v.sen.

  • Average in Results row in calculation properties for Bex Key figure does not work in Analysis for Office 1.4.7

    We are moving from Bex 3.5 to Bex 7.0 and using Analysis for Office 1.4.7
    We have queries that do an average for the results rows of dynamic calculations and the queries will not open in Analysis for Office 1.4.7 (example is below)
    We get an error message that can be found below
    We were able to open the queries in Analysis 1.4.5 with the correct results.
    We do not understand why it worked in an older version and not the new one.
    Is there something missing in the version 1.4.7 of Analysis for Office that is preventing our queries from running?
    We do not want to move back to 1.4.5 because the performance is better in 1.4.7.
    Help.....

    Hi Patty,
    I just checked 1.4.7 by making "Calculate Results As.." for Key figure and formula to Average(and also tried others as well). No error is coming in Analysis Office. reason might be because of other reason
    Any way, As Tammy Powlas suggested can you check with SP8

  • Formula Variables for Key Figure Rolling Averages 3/6 months

    Dear BEx guru! I need dynamic (user selectable range from select options) 3, 6 month averages for Sales, Inventory  Key Figures. I used variable offset alone and I am not getting the results.
    Mar/06 = 120 EACH, Apr/06 = 150 EACH and May/06 = 180 EACH, Jun/06 = 90 EACH, July/06 = 240
    User Calendar Month select options = Mar/06 to May/06
    Mar/06 (Avg) = (120150180)/3 = 150 EACH
    Apr/06 (Avg) = (15018090)/3 = 140 EACH
    May/06 (Avg) = (18090240)/3 = 170 EACH
    PLEASE SEND ME YOUR KIND RESPONSES! I APPRECIATE YOUR HELP!! write to [email protected]

    Hi,
    You may have to use the customer exit.  I am not sure whether there is any sap_exit variable available to provide such a calculation.
    Regards
    Sundar

  • Using the function SUM() in a calculated Key Figure

    Hi All,
    I need to create a calculated Key Figure and am looking for the function SUM().Can you please let me know where this is present.I have checked under the "Data Functions" and it does not seem to be present there.
    Thanks
    Aravind Pattabiraman

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

  • BEx Query key figure sum different at monthly or at docu number level

    I have a query designed in Query Designer. The report is summarized at the monthly level , but the document number is available for drilling down. What's strange is that the sum of the key figures is different when running at the monthly level or when drilling down at the document number level. Can someone share your insight on what how to solve this problem?
    Thanks,
    Sharon

    Hi Sharon
    Which key figures give you an incorrect picture or discrpancies in the two displays ?
    Check the properties of these key figures. Are any of the key figures posing an issue calculated as 'Formula'. If yes, then what is the Calculate Result as for this KEy Figure ? Is it TOTAL ?
    Cheers
    Umesh

  • How to find the average a key figure in bex

    Hi All,
    I have a fey kigure (ZAMOUNT) which is amout field. So if there are 'n' records, I need to calculate the average of the amount field(AVERAGEAMT) for those n records.
    Example:
                         EMPLOYEE      ZAMOUNT        AVERAGEAMT
    record1:         employee1         $5000.00          5000.00
    record2:         employee2         $7000.00          5000.00
    record2:         employee3         $3000.00          5000.00
    So I need to the result something like this.
    (500070003000)/3 =  $5000.00

    HI,
    in the bex analyzer go the key figure for which you want-> right click-> properties i->calculate result as -> average.
    Thanks

  • Removing Drill Down is not summing up the values for key figure

    Hi ,
    While analysing the data in BW report , I have encounter the problem in getting the correct data.
    BW report is showing two records for material , having different customer ie. customer1 & customer 2 .
    If i remove the customer from the Drill down , then values is not summed up , rather it is showing the values only for customer1
    Scenario:
    With  customer drill Down:
    Material    Customer   Key Figure1   Key Figure 2
    Mat1       Customer1     1000          2000
    MAt1       Customer2     3000          4000
    Without customer Drill Down
    Material  Key figure1  Key Figure2
    Mat1          3000          4000
    In the query designer there is restriction of customer on two characteristic in default value pane.
    The issue is happening for particular material , for other material , BW report is working fine.
    Please suggest , to resolve the issue.
    Regards,
    Sudheer

    Hi Sudheer,
    What properties are set on your key figures 1 & 2.  Could they be set to Min or Max.
    There may be an aggregation level set if they are calculated key figures that is worth checking.
    With regards
    Gill

  • Calculate total and average for same key figure

    Hi Experts,
    I have a requirement where I need to calculate total and average for same key figure no of employees.
    eg:                
    If I enter 03,2009 as Input the reuslt should give from financiual year starting to current month.
         11.2008      12.2008     1.2009     2.2009     3.2009        average
             11          10       12       10        10         10.6
             10         10       11       12        10         10.6
    total         21         20       23       22        20          21.2
    we have only one characteristic in rows... companycode.
    Waiting for your Inputs.
    Regards
    Prasad Nannuri

    no it will work for u
    you have to use variable on 0calmonth or fiscal period depending on what Time characteristic u are using.
    lets say that variable is zcalmonth
    it is based on 0calmonth for e.g.
    now u restrict keyfigure with this variable zcalmonth with time char. = 0CALMONTH
    copy and paste the restricted keyfigure
    now set offset for variable in  variable selection screen dialog box = -1
    repeat this until u want
    make this variable mandatory
    now at query execution user will select any value for month/year
    and u will see all 5 months in result set
    now there can be maximum 12 months in a year, so u end up creating only 12 restricted keyfigures.
    use YEAR in restricted keyfigure too, and restrict it with YEAR VARIABLE processing by CUSTOMER EXIT = CURRENT YEAR
    in this case it will automatically removes any additional values...
    for e.e.g
    YEAR = 2008 only
    User entered 6/2008
    so lets say ur financial year starts in  april 2007 and ends in april 2008
    so u expect to see
    4/08
    5/08
    6/08
    but u created 12 restricted keyfigures , so it will show upto
    4,5,6 months only

  • Summing up key figure in Cube - data load from ODS

    Hello Gurus,
    I am doing a data load from ODS to cube.
    The records in ODS are at line-item level, and all needs to be summed up at header level. There is only one key-figure. ODS has header and line-item fields.
    I am loading only header field data ( and not the item-field data) from ODS to Cube.
    I am expecting only-one record in cube ( for all the item-level records) with all the key-figures summed up. But couldn't see that.
    Can anyone please explain how to achieve it.
    I promise to reward points.
    =====
    Example to elaborate my point.
    In ODS
    Header-field  item-field   quantity
    123                301          10
    123                302           20
    123                303           30
    Expected record in Cube
    Header-field       Quantity
       123                    60  
    ====================
    Regards,
    Pramod.

    Hello Oscar and Paolo.
    Thanks for the reply. I am using BW 7.0
    Paolo suggested:
    >>If you don't add item number to cube and put quantity as adition in update rules >>from ODS to cube it works.
    I did that still I get 3 records in cube.
    Oscar Suggested:
    >>What kind of aggregate do you have for your key figure in update rules (update >>or no change)?
    It is "summation". And it cannot be changed. (Or at least I do not know how to change it.)
    There are other dimensions in the cube - which corresponds to the field(s) in ODS.
    But, I just mentioned these two (i.e. header and item-level) for simplicity.
    Can you please help?
    Thank you.
    Pramod.

  • Code to sum up multiple record key figure values from one ODS to another OD

    We've got two ODSs: ODS1 and ODS2 and ODS1 feeds data to ODS2 through update rule.  In ODS1, multiple records could contain one same doc records and we would like to sum up a key figure value for these multip records with the same doc number in the update rule and populate a key figure (a sum-up value or total value) in ODS2 for this doc number.  We wonder how the code would look like.
    Welcome the valuable input!
    Thanks

    Hello Kevin,
    In this case there is no need of a code. As in ODS2, contract number is a key and PO is not a part of key, you can have update type for the key figure as "Addition". Value for that particular key figure will be added for all the recordes with same contract number irrespective of PO number.
    Hope it helps.
    Regards,
    Praveen

  • How to find Average & Max of a Restricted key figure

    Hi Friends,
    I have a restriced Key figure. How to find Average & Max for that Restriceted Key figure.
    Post Asap.
    Thanks = Points.

    Hi Friends,
    Let me explain my scenerio clearly.
    I need to have five columns as below with char Current Assigne.
                               No of open cases     No of Closed cases   Avg age of closed cases         Avg age of open cases          Max age of Closed cases
    Current Assigne.
    Thanks,
    James

  • Key figure summing up issue

    Hi
    I have an infoset based on 3 master data infoobject.Im facing the folloing problem in one of the queries based on the infoset.
    In the main infoobject, i have 2 key figures, amount and wage type number.The record for one employee for e.g has values 2 in both amount as well as wage type number.
    in the report i see that the value for wage type number shows 4 instead of 2. I checked all possible settings in BeX as well as at infoobject level.couldnt find the reason for such a behavior.
    please advise
    Regards
    JP

    Hi JP,
      When you are creating query on an InfoSet, you will get the values multiplied by no of combinations. You have do devide with that no(you will get in infoset, no.of records i think). Than you will get right value.
      Check once again. I am sure.
    Check these out ...
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb455f455611d189710000e8322d00/frameset.htm
    Srini

  • Calculated Key Figures - Result row sum is wrong

    Hello all,
    Using the example below, I built a calculated key figure for TotalPrice (material amount * material price per unit).  I set TotalPrice to calculate the result as a "total".
    OrderID OrderLineID MaterialID Quantity PricePerUnit    TotalPrice
    1                 1                1            1              5.00           5.00
    1                 2                2            1              3.00           3.00          
    2                 3                1            2              5.00          10.00
    2                 4                2            1              3.00           3.00
    3                 5                2            3              3.00           6.00
    ResultRow:   -                 -            7            19.00          27.00        
    Now, if I remove OrderLineID and MaterialID drilldown (or from the query rows), I get the following (wrong) results for TotalPrice:
    OrderID Quantity PricePerUnit TotalPrice
    1                 2              8.00         16.00*
    2                 3              8.00         24.00*           
    3                 3              3.00           9.00*                   
    ResultRow:  8             19.00         39.00* 
    - wrong results
    Is it possible to be able to remove the orderlineid and materialid fields from the query rows and still get correct results for TotalPrice?
    Thanks!
    -B

    I solved the problem by adding an Exception Aggregation to the TotalPrice calculated Key Figure. 
    To be more specific, I added an Exception Aggregation (set it as type "Total"), then set the reference characteristic to OrderLineID.
    As a result, the exception aggregation takes into consideration the orderlineID row when calculating the total price (quantity * priceperunit).  Therefore if you place the orderlineid in the free characteristics instead of the query row, the calculation is still performed correctly.

  • Key Figure getting summed up in the report

    Hello BW Gurus,
    Please help me out on this as soon as possible as I need to resolve this issue by the end of today.
    I have a Custom Key Figure 'X' in one of my ODS and I am hardcoding it with a constant value, say 1000. When I load the data and check the ODS table, the Key Figure value is seen as 1000. But when I run a query on a multiprovider that contains this ODS and 2 other cubes ( these cubes don't have the Key Figure X), the value of the Key Figure in the output of the query is getting added up. I need to see exactly 1000 for the Custom Key Figure in the query output. Please tell me how to do this?
    Your help will be greatly appreciated and equally reqarded with points.
    Thank you in advance.
    Best Regards,
    Deepthi.

    Hi Deepthi,
    By default, when you run a query, if the KF you are displaying is not displayed with all the characteristics it is compounded, you'll get the KF added.
    an example
    the ods has:
    char 1   char 2    KF
    1          1           1000
    1          2           1000
    if in the query you only include char 1, you'll get a result as follows:
    char 1   KF
    1          2000
    Hope this helps.
    Regards,
    Diego

Maybe you are looking for

  • I am looking for a text to speech app that supports the Books App?

    I am looking for a text to speech app that supports the Books App?

  • How to access httpsession in flex2

    can anyone tell me how to access teh httpsession on the serverside while using flash remoting? I heard that it can be obtained from AMF gateway, is that true? if so, where can i find the AMF gateway class when using mx.rpc.remoting.RemoteObject on th

  • Database names in a combobox

    Hi Everybody, I really need your help!!! I'm wondering if it's possible in Java to read all the database names that are installed in the computer. For example, I have about 3 databases in DB2 with the names: AAA, BBB, CCC and I want to put these name

  • Crop as a saved preset?

    Hi, I am trying to find my way, of how to submit my photos to the external lab for printing. Print module is kind of useless for me - the page setup is printer driver dependant and none of my installed printer drivers allows me to define borderless p

  • Why can't I save AAC files to music folder?

    My itunes import settings indicate that recorded songs are saved as AAC files. But in My Documents in the music folder, where my Bose soundtouch wifi app looks for them, the files appear as MPEG-4 format, which the bose app can't read. It can read AA