BEx formula: Key figure divided by overall result

Good afternoon
I need assistance on how to do the following BEx formula please?
I have "Sales" totals per "Dealers"
example:
Dealer: Sales
A         10
B          5
C          6
Overall Result  =  21
How do I create the formula in BEx if I want to divide Sales for dealer A (10) with the 'Overall Result' Sales (21)? Note,
Your assistance will be appreciated.
Cj Faurie

Create a <b>Formula</b> below the <b>Sales Key Fig</b> and use the follwoing <b>formula</b>
<b>Sales / SUMGT ' Sales'</b>
<b>SUMGT</b> will be available in the <b>Data Functions</b>

Similar Messages

  • Creating Formula Key Figure in BEx 3.5 Query

    Hello,
      I'm trying to create a formula key figures that gives me the Absolute Value of the Difference of two quantities.  The calculation needs to happen at each plant/material level.  It works great as long as you drill down by plant/material.  The users, however, would like to see the results only by plant.
    Is this possible in the query?
    Any Help Would Be Greatly Appreciated!
    Thanks!
    Tina

    Hello,
    Please try the following steps:
    In the query go to Hierarchieparameter and select expand till level and select secound level and check the results.
    Thanks.
    With regards,
    Anand Kumar

  • Documentation for Formula Key Figure

    Hi BW Gurus,
    I have a Formula Key Figure which has been defined in a local key figure structure. This key figure is based on a two standard Key figures which exist in the Cube.
    How can I create Documentation for this formula key figure, so that user can see documentation after right click in the Key figure in the query result.
    I have tried followings, but did not work.
    1) Go to Properities of the query and go to Documentation . In the next screen, create documentation directly using the technical name of the Formula key figure.
    2) Go to Documentation in RSA1 and create documentation using the same way(technical name).
    In the query result, I am getting error " Query element does not exist in database".
    Thanks in advance.
    Mridul

    hi ,
      Probably you should go for Cell definitions. But if you use Cell definitions, then query will slow down. But if you need the way which you described, it can be acheived by cell definitions.
    Hope it helps.......

  • Difference between Formula, Formula Key Figure & Formula Variable

    Hi Experts,
    I have a basic question in my mind:
    1) What is the difference b/w Formula, Formula Variable, Formula Key Figure?
    2) What is the difference b/w Selection, Filter and Restriction?
    Can you pls explain with some scenarios? That will be helpful.
    Thanks in Advance.

    Hi,
    You are right, these are basic questions and can be learnt just by a little bit searching.So search the forum before posting such questions please.
    Nevertheless :
    http://wiki.sdn.sap.com/wiki/display/BI/CalculatedKeyFigure+RestrictedkeyfigureFilter
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
    Scenario:
    You want to see the revenue that you get from Product A,B,C in the country of D and E.You also want to calculate a bonus value that will be given to distributors and this revenue will be calculated based on the user's input.E.g user inputs 5 and you give 5% of the sales to distributors.Then here, to get the input 5  and TO USE IT IN THE FORMULA ,you must create a formula variable.You also  must a have key figure revenue to see the revenue of course and a calculated key figure(or a formula) called bonus value = formula variable*revenue/100 to calculate the bonus which will be given to distributors.
    The other thing you must do is restricting product with A,B,C and country by D and E just by right clicking on them  in query designer.What remains is the selection.Let's say you also want to see the total sales of A and B.Then create a selection in the columns then restrict it by dragging and dropping A and B and the key figure revenue.
    By the way, filter(tab) is used to restrict the data coming from cube and affects everything in the report(in contrast to the restricting  selection, because restricting selection affects only the selection, not other fields of the report)
    Regards,
    Güneş BÜYÜKTANIR

  • Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query

    Hi Gurus,
    We have a Query in BEx : Each  Key figure column text changes dynamically - Like based on Present month
    it will Display Month +1 Month +2  up to Month +12.  Used  dynamic Text variables .
    But when i created the universe and Webi report , i am missing the text in the column for Key figures .
    How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
    answers.
    Thanks
    Magge

    Hi,
    text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
    As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
    After refreshing and selecting 2013, the column name will update:
    Im not sure though if this is the case with unv universe access to BEx queries.
    Best regards,
    Victor

  • Can you share Bex Calculated Key Figures in BI-IP

    We have a requirement to establish P&L planning for a company.  Two questions:
    1. There are a number of calculations that are required for various values (i.e. current month, previous month, current month contract to date, previous month contract to date).  I am trying to determine if I should build these calculations into the query using C-KFs or apply them during ETL as multiple cumulative key figures?  Data volume is small (200 records a month) so we were thinking a key figure based model (instead of using cost elements) for this as they don't utilize FI in ECC in a typical fashion.
    2. After we get this initial data into SAP BI for reporting, we would like simulate it using plan/forecast versions.  In BI-IP I learned that it can use R-KF & C-KF as it uses BeX.  If I create a bunch of C-KFs, can I utilize those calculations in BI-IP so I don't have to create FOX formulas for them?
    Thanks!

    Thanks for your responses.... Unfortuntately, I need to plan on some of these values so it sounds like CKFs won't work for me.  I wonder why SAP claims BI-IP can utilize CKFs if you can't save any of the results of these?  Is it possible to save them as planning items?  
    Also, if I have to do formula/ABAP transformations on the update rules for the flat files coming in, can I leverage any of that in BI-IP if they are on the same infoprovider?  I know FOX fairly well and can off-set time periods (i.e. current month, previous month), but I don't know how to cumulative values in the ABAP routines nor time periods off-sets.
    Please advise if there are any good sources for this documentation.
    Thanks so much!
    -Matt
    [email protected]

  • 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

  • Calculated key-figures are wrong in result rows

    Hi,
    I developed a BEx query which shows profi-centers and materials in the rows, and the price, the amount and the amount-value in the columns.
    Price and amount are basic key-figures on the cube, the value is calculated via a calculated key-figure in the query (price*amount).
    Now I have added result rows an profit-center level in the workbook. Everything works fine, BUT when I hide the materials, the result-row on profit-center level is calculated wrong.
    Is there any possibility to hide the material-lines without having the resul-rowts calculated wrong? Is there any feature like "caculate material in background but hide in the workbook"?
    I don´t like to create other basic key-figures on cube level, as this is only an example for lots of calculated key-figures which I use.
    Thanks for your help,
    Patrick

    Hi Patrick,
    Since the prices and amounts are on the material level, therefore the calculation for amount value will be correctly done only when you have materials in the rows.
    Now when you hide the materials, then the system would not know on what basis to do the calculation: I'll explain with an example.
    Let's take four materials which have the same profit center assignment. But the prices for each of them are different and so are the amounts. Now if you remove the materials from the rows, then say the system calculates amount-value by taking the average price and multiply that with the total amount of the four materials. That would also give an incorrect result - isn't it?
    So there is no way to define what the system should do when material is removed from the rows.
    So material would be the minimum required granularity for such a report to show correct results.
    Regards,
    Shweta

  • Issue with Bex report - key Figures not populating correctly.

    Hi Experts,
    I am facing an issue with a Bex report. There are three key figures of data type DATE having "Dec - Counter or amount field with comma and sign" datatype. After executing the query, in the report, for some sales documents the key figure fields are coming as 'X' and rest others are coming correctly in the date format as mm\dd\yyyy.
    When i check in the cube, these key figures shows values in decimal format and not in date format. The conversion is happening during execution.
    Pleas show me some light on how to identify the cause of getting 'X' for some Sales documents in the report eventhough some are coming correctly.
    Thanks,
    Anamika
    Edited by: Anamika Soni on Mar 12, 2010 10:48 AM

    Hi,
    The infobject has been defined with datatype "DATE" only. It has also been mapped from datasource to infocube correctly as these key figures are populating correctly for some of the sales documents in the report. It is not like that for all the sales documents the key figures are not converting properly.
    Some Sales documents are not converting into the date fields but for some conversion happens properly in the BEx report. This is the issue.
    Please guide accordingly.
    Many thanks,
    Anamika

  • BEx query_Calculated key figure

    Hi ,
    I have CalMonth/Year as the time characteristics and Sales amount as keyfigure.When is give a particular month in prompt ie.,Say September ,it should calculate the sales of previus months ie.,Jan to August...and so on ...If April then Jan to March...How do I design it in BEx query designer?Kindly help
    Thanks,
    Arun Uday

    Hi Arun,
    You will have to design this using Customer Exit Variable in following way,
    1) Create a customer exit type variable on 0CALMONTH and make it "ready to input" also.
    2) Create a RKF with 0CALMONTH and restrict it with newly created customer Exit variable and include your key figure i.e. sales amount in same RKF.
    3) Now we will have to do coding in Customer Exit in following manner,
    When 'Variable create on calmonth'.
    If I_step = '2'.
    Data: lv_year type i,
             lv_month type i. 
    loop at i_t_var into wa_var where vname = 'Variable created on calmonth'.
      lv_year = wa_var+0(4).
      lv_month = wa_var+4(2).
    Now populate the required value in 0calmonth variable.
    concatenate '01' lv_year into l_wa_data-low.
    l_wa_data-sign = 'I'.
    l_wa_data-option = 'BT'.
    l_wa_data-high = wa_var-high.
    append l_wa_data to e_t_data.
    exit.
    endif.
    Regards,
    Durgesh.

  • BEX - Virtual key-figure

    Hi gentlemen,
    I am facing a problem with a BADI that I created for populating a virtual key figure.
    I simply want to read a masterdata table and populate a key figure. When executing the query, a dump occurs with a very explicit explanation. Unfortunately, I don't know how to solve it.
    Dump:
    You attempted to assign a field to a typed field symbol,
    but the field does not have the required type.      
    Attributes in the BADI:
    P_CHA_0PLANT     Instance Attribute     Private     Type     I     Plant
    P_KYF_ZSHPQTEUT     Instance Attribute     Private     Type     I     Shipment quantity EUT
    See below.
    Define:
    method IF_EX_RSR_OLAP_BADI~DEFINE.
    DATA: l_s_chanm like line of c_t_chanm.
    DATA: l_kyfnm TYPE rsd_kyfnm.
    CASE i_s_rkb1d-infocube.
        WHEN 'ZFM_M01'.
          l_s_chanm-chanm = '0PLANT'.
          l_s_chanm-mode  = rrke_c_mode-read.
          APPEND l_s_chanm TO c_t_chanm.
    l_kyfnm = 'ZSHPQTEUT'.
    APPEND l_kyfnm TO c_t_kyfnm.
    endcase.
    ENDMETHOD. "if_ex_rsr_olap_badi~define   "
    Compute:
    METHOD if_ex_rsr_olap_badi~compute .
      FIELD-SYMBOLS: <fs_ZSHPQTEUT> TYPE /BIC/OIZSHPQTEUT.
      FIELD-SYMBOLS: <fs_0PLANT> TYPE /BI0/OIPLANT.
      ASSIGN COMPONENT P_CHA_0PLANT OF STRUCTURE c_s_data
      TO <fs_0PLANT>.
      ASSIGN COMPONENT P_KYF_ZSHPQTEUT OF STRUCTURE c_s_data
      TO <fs_ZSHPQTEUT>.
      SELECT /BIC/ZSHPQTEUT
      INTO <fs_ZSHPQTEUT>
      UP TO 1 ROWS
      FROM /BI0/PPLANT
      WHERE PLANT = <fs_0PLANT>.
      ENDSELECT.
    ENDMETHOD.
    Thank you in advance.
    Jacques

    Hi Jacques,
    Please include 2 changes:
    1. As suggested by Jen, declare Field Symbols with type ANY.
    2. Instead of directly using Field symbol values in the select query, create 2 temporary variables of type string and use them.
    After changes the method COMPUTE would look like below:
    METHOD if_ex_rsr_olap_badi~compute.
    FIELD-SYMBOLS: <fs_ZSHPQTEUT> TYPE ANY.
    FIELD-SYMBOLS: <fs_0PLANT> TYPE ANY.
    ASSIGN COMPONENT P_CHA_0PLANT OF STRUCTURE c_s_data
    TO <fs_0PLANT>.
    ASSIGN COMPONENT P_KYF_ZSHPQTEUT OF STRUCTURE c_s_data
    TO <fs_ZSHPQTEUT>.
    DATA tp_shpqty type string.
    DATA tp_plnt  type string.
    IF <fs_0PLANT> is ASSIGNED.
    tp_plnt = <fs_0PLANT>.
    ENDIF.
    SELECT SINGLE  /BIC/ZSHPQTEUT
    INTO tp_shpqty
    FROM /BI0/PPLANT
    WHERE PLANT = tp_plnt.
    IF <fs_ZSHPQTEUT> is ASSIGNED.
    <fs_ZSHPQTEUT> = tp_shpqty.
    ENDIF.
    ENDMETHOD.
    Regards,
    Hemant Khemani

  • Show only overall result in query

    Hi Experts,
    I have a problem with a web template that I cannot seem to resolve.  I have a query with calculated key figures and the overall result is calculated as an average so that I can determine percentages etc.  It is only the overall result that my customer wants to see.  However if I remove the sales doc characteristic then the overall result is also lost.  The query needs sales doc to get the correct result, but then the user has to scroll to the bottom each time to see what he wants to see.
    So my question is, how can I make the query/web template display only the overall result line without taking out sales doc and losing each line?
    Many thanks in advance.
    Sean.

    Hi Sean,
    From what I could understand ,you can try the following.
    Since you want the average of a calculated key figure with respect to Sales doc  ,u can set the property of the calculated key figure as aggregation = average.
    and referance characteristic as 'sales Doc'
    Hope this helps.
    Varada

  • BEx report -two different calculations for a result for one key figure how?

    All,
    Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
    Here is an example:
    location     product          inventory     
    AAAA     11111          5     
    AAAA     11111          5     
    AAAA     11111          10     
    AAAA     11111          10     
    AAAA     Result          7,5      ---> average
    AAAA     22222          5     
    AAAA     22222          6     
    AAAA     22222          7     
    AAAA     22222          8     
    AAAA     Result          6,5       -
    > average
    AAAA     Result (across products)          14      ---> here I want to have a sum of averages

    This could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.

  • Problem in using formula when key figure is commulative

    Hi all ,
    I am problem in generating the report when we use the  of cummulative key figure to the formula..
    consider the following senerio..
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2      -1 (wrong result)
    6.10.2005 3   4   4(1+3)  6      -1
    7.10.2005 5   6   9(4+5)  12     -1
    System is taking the actual KF1data is subtracted with KF2 data it not taking cummulative data, Actually my requirement i want to subract the cummulative data between two key figure (ie KF1(c)-KF2(c))
    My Required Output:
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2            -1 (Correct)
    6.10.2005 3   4   4(1+3)  6            -2 (4-6)
    7.10.2005 5   6   9(4+5)  12           -3 (9-12)
    pls let through the lights on the above issues.
    with Regards,
    Hari

    Hi Murali..
    Thanks a lot, now i got a proper output and working fine..
    what i did yesterday was i have creted a two key figure as a cummulative key figure ..
    and when i try to subtract two cummulative key figure system is subtracting with actual key figure and hence i got wrong result.
    Today i did same thing, only diffence is i made the third formula key figure as cummulative ..
    With regarsds,
    Hari

  • Results of new key figure depending on value of characteristic

    Hi,
    I have created a query with characteristic "Rating" and key figure "market value".
    Char "Rating" has several values, e.g. AAA, AA, A, etc.
    As next step I will create a key figure which should work out as follows:
    If value of Rating is "AAA", then multiply the overall market value with 0,4,
    if value of Rating is "AA", then multiply the overall market value with 0,3, ...
    How can I do so?
    BR,
    Thorsten

    Hi,
    Make 3 restricted key figurs on market value restricting them with rating AAA, AA and A.
    Lets say RKF1 for rating AAA
    RKF2 for rating AA and
    RKF3 for rating A.
    Now you can use these 3 key figurs in your formula key figure which can simple be
    RKF10,4 + RKF20,3 + RKF3*0,2.
    In this way you are already sure that only one of the RKF's will have a value and depending on the rating it will be multiplied with the value you have in your logic.
    Hope this helps.
    Regards,
    Jadeep

Maybe you are looking for

  • Designer editor

    In the Edit module component window under the User Text tab, when I click on the Text editor button the designer window close by itself. But earlier I used to get the notepad editor with the code in it. I checked under the Options menu for Text edito

  • Flash Movie Tween Displays Off Canvas in Flex

    I have a SWF which plays a tween of a sliding door moving downwards.  I am loading it using SWFLoader and then extracting the content as a MovieClip and playing it.  The intention is that it will occupy the top half of the screen in the Flex app so t

  • Nexus 1000v, VMWare ESX and Microsoft SC VMM

    Hi, Im curious if anybody has worked up any solutions managing network infrastructure for VMWare ESX hosts/vms with the Nexus 1000v and Microsoft's System Center Virtual Machine Manager. There currently exists support for the 1000v and ESX and SCVMM

  • Downloaded ibooks and now cannot access it it shows up in settings only how do I delete it???

    How do I delete an app of ibooks that is in my settings only and cannot be accessed?

  • Problems with PDF Forms

    I'm using Adobe Acrobat Version 9.4.6. I've created forms within a PDF to make it editable. I've then emailed the file to others, they fill it out and save it. When they send it back to me, it's blank. I can click individually on each text box and it