Average of a KeyFigure

Dear all,
i have a small report like this,  which works fine:
grp               prod            sold
groupA   product1           12
groupA   product2           10
groupA   product3            5
groupB ......
>> average                      9
When i only want to print the averages per group (and remove the prod column) it works no more.
The detail lines are needed for the average !!
Has someone a solution for just printing the average per group ??
Greetz,
Herman

Hi Hermanneke,
Ajeet is correct.Place group in Columns,Right click->properties->supress result rows->never
Place Prod in Rows,Right click->Properties->Display As->No Display and supress result rows->never
KF Sold right click->Properties,caliculate result as-> Avg of all values and calculate single value as->Supress result.
It will display Avg per group.
Assign Points to AJEET.

Similar Messages

  • How to get two Results  - Sum and Average for one KeyFigure

    I have "Material" in Rows and "Cal Year/Month" in Columns and also KeyFigure "Qty" in Columns.
    The Results (Yellow) of "Qty" is defined as "Avg of all values <>0". This works fine but how do I get two Results - one is a "Sum" and the other "Avg" for just one KeyFigure. The output basically should look like below:
          Cal Yr/Month  01/2006   02/2006   03/2006...    Result        Result
    Material                   Qty       Qty           Qty       Sum of Qty   Avg of Qty
    ABC                       100         0             200            300             150     
    DEF                       100         200          300            600             200     
    GHI                        500         300          400           1200            400

    Hi Srinivas,
    I think you must use Restricted Key Figures and Formula.
    Do not introduce CALMONTH in columns, but restrict 12 times the Key Figure Qty with 0CALMONTH3, that is 01-02-03-...
    Then create a Formula that is the Sum of all Restricted KF and call it SUM.
    Then copy the previous Formula (SUM) and call it AVG and give the option of Average of all Values <>0.
    Try.
    Ciao.
    Riccardo.

  • How to calculate average for a keyfigure based on 0calmonth.

    Hi Experts,
    I have a requirement in SAP BI  is as below.
    I have 2 colums in my query  1. 0calmonth ( charactersic) 2. PERDAY TARGET(KF)
    Now I want to create a new column t.e.  "AVERAGE  YTD TARGET" for" PERDAY TARGET" based on "0CALMONTH"
    Like, I have 10 records in one month (APRIL) and another month (MAY) having 25 records.
    SO I want to display "AVERAGE YTD TARGET " for each record in Report .
    so,please let me know the procedure to complete this in BEX query.
    Thanks in advance.
    Regards,
    Surendra babu

    Hi,
    Please go through this pdf if you want to know how exception aggrgation works.It will be really helpful for you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b8ed5b-1025-2d10-b193-839cfdf7362a?quicklink=index&overridelayout=true
    Regards,
    AL

  • Week/monthwise  AVERAGE value

    Hi,
    Now We are working on CKF to calculate weekly/monthly and yearly AVERAGE of a keyfigure.
    Can we get the Calculted keyfigure(CKF) at Infocube level? If yes, please send me the solution how to do that as the CKF at our query level doesn't serving our purpose effectively.
    kind regards,
    Aruna

    Hi Ashish,
    I have followed your steps.In columns I have 'count[]' under 'Data Functions'only. I have used my formula as 'sales'/COUNT[] But experienced 'abort system error'.
    Error description:
    System error in program SAPLRRI2 and form CUDIM_FUELLEN_AVGWGR-01-                                                                               
    Message no. BRAIN299                                                                               
    Diagnosis                                                                               
    This internal error is a targeted termination since the program has an                                                                               
    incorrect status.                                                                               
    Procedure                                                                               
    Analyse the situation and inform SAP.

  • Display an exception on one keyfigure based on the value of another key fig

    Hello all,
    How to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...
    i also created a cal key fig which has has value 1 if sale > avg sale...
    i.e How do i display an exception on one keyfigure depending on the value of another keyfigure??
    plz reply its urgent...
    thnx in advance...

    Hello Ajay, did you got an answer for your problem? I'm interested...
    Thx Masen
    Edited by: Masen-Fuad Marei on Nov 25, 2009 6:26 PM

  • Reporting on Inventory

    hi  xperts,
          Can anybody help me to create this report:
    1.Total issues are given by keyfigure,0ISSVS_VAL -
    VALLSSVALSTOCK
      How do i caluclate Total issue for  the last twelve months,for thiskeyfigure ?
    2.Total Inventory is given bt keyfigure 0VALSTCKVAL --- Valstockvalue
    How do i caluclate  Twelve month rolling average of this keyfigure?
    Please help me,this is very urgent issue.
    thanks in advance.

    For Total issue for the last twelve months just add a restriction on 0ISSVS_VAL KF based on time characteristic lets say Calender month or fiscal period which ever you are using , then right click on it and select restrict and choose values ranges from the dropdown, now have BETWEEN operator and select the Current Calender Month Variable from both the dropdowns, once the selected variable show up on the right side of window after selection right click on it and select offset and set -12 and -1 for both. This will calculate total issues in the last 12 months.
    Now for the 0VALSTCKVAL, this being a non-cummulatibe KF it always picks up the last value so you need to handle with based on the exceptional aggregation instead of values ranges as done above.Edit this KF and select Aggregation option there choose "Average of all values" give the refernce characterictic as Calender Month.
    Have a global filter on report as a restriction on calender month, by defining values ranges exactly as i deinfined above.
    If helpful award points

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • Query Designer Doubt

    Hai,
    I have a requirement to display a report in the following format:
    C1                                C2
    K1                                K2
    K111 K112 K113            K211 K212 K213    
    K121 K122 K123            K221 K222 K223
    K131 K132 K133            K231 K232 K233. ..
    Then I need to find the weighted average of every keyfigure and display that also. Here C stands for Characteristic and K for keyfigure.
    How do i do it?
    Regards,
    Neha Solanki

    MSK,
    These two pieces of information are at different levels. GR Date is mapped only to the GR quantities cube and no mapped to the confirmation quantities cube.
    Map GR date in the multi-provider to a date in the confirmation quantities cube.
    Aneesh

  • Calculate Average and Maximum of KeyFigure values by Date.

    Hi Experts,
    There are certain KeyFigures such as CPU Utilization, Memory Allocated, etc in BEx Analyzer coming from InfoCube by Date (0CALDAY).
    The End-user is interested in looking at Average CPU Utilization / Day and Maximum CPU Utilization / Day as different Columns.
    I tried to change the configurations of these KeyFigures to Average and Maximum in the Back-end (BI ETL) but it is not working.
    We are working on BI 7.0.
    Could anyone please help with this?
    Your time is much appreciated. Points will be assigned.
    Thanks,
    Chandu

    Hi Chandra,
    I'm having the same issue, how did you solved this with a Formula in BEX?
    I need have one key figure with two behaviors average and sum, is it possible?
    Regards,
    Fernando

  • Total and Average in RESULT of same keyfigure?

    Hi guyz,
    Just want to ask if having the SUM and AVERAGE result of one (1) keyfigure is possible in BEx Query Designer?
    Here is the report:
                                                                  Volume
    Customer A           Material X               100
                                     Material Y               200
                                     Material Z               300
                                     RESULT                600             --->  total --- (100 + 200 + 300) = 600
    Customer B           Material X              400
                                     Material Y              500
                                     Material Z              600
                                     RESULT               1500           ---> total --- (400 + 500 + 600) = 1500
    RESULT                                                1050           ---> average of result --- (600 + 1500) / 2 = 1050
    How will I do the AVERAGE? I already got the TOTAL since it's the DEFAULT in CALCULATION tab. But is it possible to also have the AVERAGE?
    Thank you!
    Loed

    Hi Loed,
    You can try to use Exeption aggregation to acheive this.
    OR
    You can use cell restrictions and get this done.There are many documents avaliable for Cell Restrictions
    Rgds
    SVU123

  • How to calculate Average of Keyfigure

    Hi Gurus,
    I have a requirement where I have to calculate average of key figure value for 1 material.
    I tried using 'Average' in exception Aggregation but it just sums up everything.
    Can anyone please explain?
    Thanks

    Hi
    1. Include the key figure you want to average into the columns; call it KF1
    2. Create a Formula; call it CTR1, and in the detail view put a 1. (This 1-value is not used except to avoid an error in the formula syntax checker.) On the Aggregation tab, choose Exception Aggregation: Counter for all Detailed Values, and for the Ref. Characteristic, choose the same characteristic as the lowest level characteristic in the initial view of the output. E.g. if you only have 0CALMONTH in the output, choose 0CALMONTH. When you run this, the total at the bottom of this column should be equal to the number of rows in that column. Note that we use Exception Aggregation here so that the total at the bottom is calculated before the output is generated and is available to other formulas in the query design; if we were to use the Calculation tab it would look the same to us in that the total would appear at the bottom, but the calculation would occur too late for us to use within the query.
    3. Create a second formula, call it AVG1. The formula will be:
    SUMGT KF1 / SUMGT CTR1
    SUMGT accesses the Overall Result value at the bottom of the KF1 and CTR1 columns. You can find the SUMGT function in the Data Functions folder - turn on technical names first; the description is Overall Result. You could instead use SUMRT; the difference is that SUMGT will use the filters applied in the filter block; SUMRT will ignore them.
    3. Run the query. You should see the Average in every cell in the Average column. You can use this formula as input to another formula, or just use ( SUMGT KF1 / SUMGT CTR1 ) within a formula to access the average value.
    Thanks

  • How to maintained the Text  language for CKF keyfigure

    Dear All,
    Please let me know how to maintained the text language for CKF I am using only keyfigures in CKF.
    Issue is text is not showing in Spain language when user exeuted the report (longin Spain) for CKF keyfigures .
    As per report design there are formuals and direct keyfigures and CKF has defined and we keep it under in Row struture in the report.
    After exeuted the report (Login Spain)Text has converted in all languages along with spain except for CKF keyfigures.
    Issue in text CKF's:
    There is a main  CKF (Cost) under this again we defined two sub CKF's those are total cost and average cost. We able to see the text in Spain language for Main CKF(cost) and also cheked in RSZELTTXT(Texts of reporting component elements) for the same.
    We can able to see the text in all languages for main CKF(cost) and enteries are there in RSZELTTXT table.
    We can see only  the text in english for  total cost and average cost and also enteris are there only in EN in RSZELTTXT table.
    It would help to me if any one can answer my question.
    Thanks in advance .
    Regards,
    MQ

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

  • Can anyone help with me on characterstics and Keyfigures in BPS Planning

    Hi,
       How are you folks ?. I am seeking for help for characterstics and keyfigures for Inventory planning, production planning and for headcount planning. Can any one help me with the data.
       I would appreciate if anyone let me know on it.
                            Thank you.

    hi
    u hv standard planning cubes for all the planning applications u mentioned. u can activate business content and get it.
    For production planning: The characteristics are Product, Division, Plant , Product Manager, Fiscyr, Fisper, Version, Value type & KF's Planned Qty, Average TCD, Noofdays etc.
    Regards
    Srin

  • Weighted average total displaying as  average

    Dear BI Guru's,
    one of my report Weighted average total value displaying incorrect values, for example
    Clinker Value   Clinker Rate
    (Rs in lacs)        (Rs/MT)
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    342.00
    1.21
    342.00
    0.72
    342.00
    0.80
    342.00
    2.73
    19.59
    Clinker Rate MT should display 342 instead of 19.59, i was applied exception aggregation for clinker value Total and ref characteristic plant. same exception aggregation applied to net quantity keyfigure.
    Clinker rate calculation = Clinker value/Net quantity,
    thanks in advance who replay as earliest.
    regards
    Ramesh G

    What is the line item infoobject in your data which is causing given list of records?
    Try TOTAL  with line item infoobject as ref char but not plant.
    Try with constant selection on your KF to display 342.

  • Error in Dimension formula to find the average price

    Hi all,
    I have tried a dimension formula to find the average price of Product.
    if the product is a parent level member then average price should be the average of the list price,other wise it should be the list price itself.
    IIF([PRODUCT].CURRENTMEMBER.PROPERTIES("CALC")="N",[KEYFIGURES].[LISTPRICE],AVG(DESCENDANTS([PRODUCT].CURRENTMEMBER,[KEYFIGURES].[LISTPRICE],LEAVES)))
    While i tried the same i received some strange error , i don know whether its having some dependency on the Customer dimension. since K0030101 is a memebr belonging to CUSTOMER dimension.
    MDX statement error:"Value K0030101 for characteristic /CPMB/U6D7SXT un"
    I'm not sure whether its an error with  the formula i created or any dependancy issue or whether this scenario is possible  using  dimension formulas or not.
    Thanks in advance .
    Anila Mohan

    Hi everyone!
    We are using BPC 7.5 NW SP08 and we've had the same error message while adding a formula to the Account dimension:
    'MDX statement error: "Value 1 for characteristic /CPMB/S9D7Q23 un".
    We then checked in BW for /CPMB/S9D7Q23 and found out that it was the Product dimension.
    The solution for the issue was quite interesting. I had seen in another post that sometimes CALC property was not correctly determined for SP08. The solution proposed was to edit dimension members, clear ParentH1 column, process dimension, re-edit, paste back ParentH1 values and process dimension again. This corrected CALC property problem.
    It also worked for my case. After doing it to Product dimension I tried again to set the formula in Account dimension and it worked!!
    Hope this helps.
    Regards,
    Luigi Laporte

Maybe you are looking for