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

Similar Messages

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to find the right primary key for DSO from Business Content

    According to best practice design, it is reccomended to make a  DSO where all fields from Business COntent Datasources are transferred.
    But, how to find the right primary indeks ?
    Any good suggestions ?
    For many of the Business Content dataflows there are not DSOs present, so ther e is no tip to get from the dokumentations as gfar as I have found.
    best Regards
    Ingrid

    Hi Ingrid,
    Your question will be perfect in case if you are going for a Custom cube.
    You will not have any problem when you create a Datasource in R/3 level even if it is been built on a single table or on view.
    Only point that you want to know how to design my Key fields in ODS.
    This will be purely depends at what level that you want to bring the data.
    Egg:-
    If you run the data source in RSA3 and check for Each GL if you have 10 liine items and you want all the 10 line items to be transfered to BW.
    In this case you need to check what is the unique combination of fields that is making this lineitems to exists as 10.then include all those fields into Your ODS Key Fields.
    This way you can have 10 records for that perticular GL in both sides, by which u will make sure that the data is been completely transfered.
    If in case if you clude your own Key fields then you will get the correct Total in report for each GL but you can't see all those 10 line items.
    For any case you need to figureout how many records that you want to take into BW based on that check the fields that makes it unique and then add them to ODS Keyfields that will solve your requirement.
    I think this will clear your doubt.
    Best Regards,
    VNK.

  • How to calculate the value of key figure by considering other char or kf

    Hi
    My requirement is like this:
    I have a key figure which gives me the planned issues and receipts but i know that if only from locaton is blank  and to loc is filled then that are receipts and if both the from and to location values are filled then it is issues,
    can you pls let me know how i 'll put this logic in th reporting bex and how i achieve this by user exit or any other way
    thx
    rubane

    Create two RKF, restrict first with [ from = '#' ] to get the planned receipts, and restrict the second with [ from <> '#' and to <> '#' ] to get the issues.

  • How to redefine the width of key figure through ABAP CLASS

    Hello experts:
         I encounter a problem when using table interface.
         I make a wad with two table(two query).The two queries have same characteristics, but different key figures in row.Now i want to adjust the format to make all the cell aligh. I have realize that when i keep the column header of the tables. But if i hide the second column header of table,  it's failed. I don't know where i can adjust the width of the key figure cell without column header.
    For example: query1: zmodel  qty01
                                          aaa       100
                          query2: zmodel  qty02
                                          bbb        200
    how to make the width of qty01 the same as qty02
    look forward to your answer.

    While populating the value in the cell use the following command.
    c_cell_td_extend = 'style = "width:200px"'.

  • How to choose the characteristics and key figures for a cube

    Hi Gurus,
    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?

    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?
    Hi,
    For CO-PA since it is a generated DataSource, except for the common characteristics ( E.g. Company Code, Controlling Area ) where you get standard InfoObjects for all other Characteristics and Key Figures you end up creating custom or Z characteristics and key figures. This is unavoidable.
    Assigning points is the only way of saying thanks in SDN
    Thanks,
    Shan.

  • How to add Characteristic text to Key figures in Bex report?

    The result set of a report is like this
                                          Q1             Q2            Q3           Q4
    Payment amount      Payment          2000           4000          1200         1400
                        Recovery         1200           1400           100          200
    Commission          Payment          4000           5000          2000         2000
                        Recovery         2000           2000           100          100
    Total               Payment          1500           1200          5000         4000
                        Recovery          600            200          1000          200
    The first Column Payment amount, Commission and Total are key figures.
    Payment  and recovery are text of a Characteristic Infoobject ( Flag type : X = Payment, # = Recovery ).
    Now the requirement is not to have Characteristic Infobject as Column but to have them as text beside keyfigure.
    LIike this
                                          Q1             Q2            Q3           Q4
    Payment amount (Payment)             2000           4000          1200         1400
    Payment amount (Recovery)            1200           1400           100          200
    Commission (Payment)                 4000           5000          2000         2000
    Commission (Recovery)                2000           2000           100          100
    Total (Payment)                      1500           1200          5000         4000
    Total (Recovery)                      600            200          1000          200
    How to achieve this kind of result?

    Create Restricted Keyfigures to achieve this requirement.
    create 2 RKF for Payment Amount Keyfigure
    Create RKF1 with Payment Amount keyfigure and restrict flag type with "X" and then
    Create RKF2 with Payment Amount keyfigure and restrict flag type with "#".
    And use the RKF's in the query.
    Similarly create two RKF's for each Keyfigure used in the query and restrict it with flag type.
    --- Thanks...

  • How to add unit to calculated key figures in BEx

    How to add unit to BEx calculated key figures in SAP BW BEx?
    I would like to add a unit to a calculated key figure in SAP BW BEx, so that it gets visible on the end user level. Currently the unit field is empty. I calculated the value from various key figures with different units and removed the units with the NODIM()-function. Is there an inverse function to NODIM() with which you can add a specific unit (like EUR or TAG).
    The "How tou2026 Report Data in Alternate Units of Measure" does not seem to cover the point.
    "Quantity Conversion Guide for SAP Business Intelligence" refers to the "Conversion" tab.
    I suppose you have to add a conversion routine, which is 1:1 and sets the target unit defined in BEx.
    Has anyone tried this? Is there a more simple solution?
    OLAP-Quantity Conversion:
    http://help.sap.com/saphelp_nw70/helpdata/EN/27/b65c42b4e05542e10000000a1550b0/frameset.htm

    Hi,
    if your CKF will have always same unit and you have one KF in you inforpovider with this unit, you can try to do this trick
    create a new hidden CKF as new CKF = KF / KF (with this equale new CKF = 1 unit)
    change your old CKF as old CKF = old CKF * new CKF
    let me know if it works.

  • How do you find the average bitrate for 1080p movies purchased in iTunes?

    Can anyone point me in the direction of how to find the average bitrate for 1080p movies purchased in iTunes?
    For instance, Sherlock Holmes: A Game of Shadows on Bluray has an average bitrate of 18.523 Mbps.
    Thanks in advance!

    Some titles look great from iTunes Store but over the years I have been very aware of distracting banding issues especially in dark/bright areas for example where you'd expect a smooth gery/black gradient but you get discrete bands of greys to black.
    Many people say they don't see it, but I'm very sensitive to it.
    I'm not convinced it's a pure bitrate problem, more to do with the encoding algorithm. Either way it's a clear disincentive to build a library of this content if you see it.
    AC

  • How to find the product key on a preinstalled version of Windows 8?

    This is a similar qustion:
    https://forums.lenovo.com/t5/Windows-8-and-8-1-Knowledge-Base/How-to-find-the-product-key-on-a-prein...
    But its not actually explaining which part of the BIOS menu contains the windows key.
    I see a UUID  number -- but that doesmt match the windows 8 5x5 code format.  SO!
    where can I locate the windows 8 key in the BIOS?

    On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
    You need to contact Lenovo technical support directly to ask about recovery media.

  • How to find the Org.key based on Job key and Org Unit.

    Hi,
      Please Let me know how to find the Org.Key based on the Job Key and org Unit.
    Regards
    nagendra.

    On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
    You need to contact Lenovo technical support directly to ask about recovery media.

  • How can I select an area of a picture (larger than one pixel) and find the average RGB values of all the pixels contained inside the area?

    I'm analysing the differences between several different images and I would like to select a large area of each (such as with lasso tool) and find the average RGB value of all of the pixels within the selection area made/

    With the selection you could do a copy paste and use the histogram of the new layer set the histogram source to selected layer.  The eye dropper sample size may also to get the average  of a square area around a point.

  • How do you find the average value of all the data between two points on a single channel

    I am tring to calculate the average value of all the data points on a single plot between two seperate points
    I have attahced an illustration.
    Tim
    Solved!
    Go to Solution.
    Attachments:
    plot.jpg ‏173 KB

    Hey smoothdurban,
    I've seen Brad's code, and trust me, it's worth the effort to let him help you get it up and running - it's definitely the most ideal way to solve this problem.  However, as Brad said, there are multiple ways to tackle this - both interactive and programmatic - so in the meantime, I'll take a second to detail one of the interactive and sure-fire ways to find the average of data between two points on a single channel.
    We'll use"Flags."  Set up your VIEW graph exactly as you did on your original screenshot, using Band Cursors to approximate the beginning and ending X-values representing the range you want to examine.  Next:
    1. Click the "Set Flags" button () that is a part of your 2D Axis System.  Note that you can hold down the Shift button if you ever decide you want to do this on more than a single curve at one time.
    2. Select the "Flags: Copy Data Points" button that enables after Flags are set.
    3. This creates new channel(s) in the default (bold) group in the Data Portal that contains only the Flagged data.
    4. Select DIAdem ANALYSIS.
    5. Select Statistics » Descriptive Statistics.
    6. In the Channels input, select the newly created channel containing your Flagged Y-Data.
    7. Ensure that the Arithmetic Mean parameter is set.  You can preview the data and the result in the dialog before pressing OK to execute the calculation. 
    You may have noticed that in the Descriptive Statistics calculation, one of the parameters that you can set is the range of channel rows to operate on - so, if you know the row numbers of your beginning and ending X-values, you could just simply run the Descriptive Statistics calculation and use this parameter to operate on a row subset of your original channel instead of the entire channel.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • How to create a non-cumulative key figure & How to make a info cube as so

    Hi Experts,
    How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
    Can any one kindly provide me the steps we need to performe?
    Thanks in Advance,
    Raj

    Hi Azael,
        In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
    Hope this helps!
    Regards
    Sriram

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

Maybe you are looking for

  • ABAP routine help required in BI

    Hi Experts, I have a some fields in DSO (Data Store Object) as below _Code.................. Type.................... Date & Time_ 1..............................A....................01/01/10    01:00:00 1..............................B..............

  • An unexpected error has been detected by Java Runtime Environment

    Hi there, I am trying to run my application in java and suddenly java started giving me the bellow error: # An unexpected error has been detected by Java Runtime Environment: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3

  • Problems with Mail after upgrading to 10.9.1

    I am running into problems with Mail after installing 10.9.1. I had NO problems with Mail prior to this update. Problems I have encountered so far are: - I don't receive some e-mails on my Gmail account. - I have sent e-mails that supposedly got "sen

  • G/L account missing error

    Whenever i copy from A/P invoice to A/P credit memo and when i press add i get G/L account missing(1) error Plz help me

  • ITunes & iPod Nano difficulties

    I've been using iTunes for awhile now, but just recently received an iPod Nano as a gift. I connected the iPod, and iTunes automatically recognized it, and appeared to to download all of my songs and playlists onto the iPod. When the iPod is connecte