Misuse of the exception aggregation

Hi Expert
I have a little particular need which I have of the evil to carry out. I explain you, you certainly already had it.
In my cube I have collect, sold to, orders attached to contracts and a surface of contract like this:
                    Surface
R1     Soldto1     Cmd1     Ctr1     10
R1     Soldto1      Cmd2     Ctr1     10
R1     Soldto1     Cmd3     Ctr1     10
R1     Soldto2     Cmd1     Ctr2     20
In my request, I would wish to have:
R1     Soldto1     10
                     Soldto2     20
R1 (next level aggregation) 30
I use the exception aggregation on the contract (exception average by contract) but I don't succed to have the results expected.
My query sends me the result below:
R1     Soldto1     30
                     Soldto2     20
R1 (next level aggregation) 50
How then I to solve this problem? Please help
Best regrads
Eric

Hi Eric,
For your expected result, I think you should use exception aggregation Average with reference characteristic Cmd
as it is the one which differs for the three 10 values.
With this setting, R1 level should also be 30 as you expect. 
If you use  "Ctr" as reference characteristic, then the three Cmds get aggregated (summation) for Ctr1, that's why you get 30
like "R1 Soldto1 30".
Hope this helps.
Regards,
Patricia

Similar Messages

  • Scenarios for some of the Exception Aggregation

    hello Experts,
    Please explain some scenarios for the following Exception Aggregation:
    1. Counter (value not equal to zero)
    2. Counter (all values)
    3. Average (value not equal to zero)
    4. Average (weighted with no. of days)
    5. Average (weighted with the number of workdays; factory calendar)
    Thanks in advance.
    Regards
    Lavanya.

    Hi,
    check this link
    http://help.sap.com/saphelp_nw70/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/frameset.htm
    hope this helps you
    Best regards,
    Ramesh.

  • How to determine the "Last Value" in exception aggregation

    Hi gurus,
    I have a KeyFigure with an exception aggregation -Last value- by time.
    I report on a multiprovider ("containing" a infocube and a realtime infocube with BPS-InputLayout). I can correct separate Items with this BPS-Layout. So, at the end I have 2 values for one item.
    So, by these facts, my report shows the the last value for the specific KeyFigure, but I expected that both values (the value in the infocube and the correction via BPS)are sumed up.
    As this is due to the exception aggregation not the case, I could "overwrite" the normal value in the infocube with the BPS.
    But SAP determines the normal value in the Infocube as "Last Value", not the one in the correction cube, which is entered via BPS.
    How does SAP determine the "last value" as I can´t see any date...
    Thanks in advance!

    Thank you for your answer...
    I got the soltion by myself.
    I thought, Last Value means the last Value, depending on the time, but in my opinion the function last value should be called "Greatest Value".
    All figures with the same value for the reference characteristc are aggregated anyway.

  • FBL5 FIAR - exception aggregation - count customers with open items at key

    Hello gurus,
    I have read the information about counting all values in reference to a characteristic. I manage to count how many customers have a FIAR open item 'billing status' = Open in my FIAR cube.
    Now I am asked to replicate transaction FBL5 of R3. This transaction will give you open items at a given key date by adding
    the items with
    A) Item status = 'O' and posting date <= key date
    and the items with
    B) Item status = 'C' and posting date < =key date and clearing date > key date.
    I calculate the net value by creating 2 restricted key figures and then adding them in a CKF.
    But for counting I have a problem. I can count how many customer make up the open items (case A)
    and how many customers makeup items that where cleared between key date and today.(case B).
    But I cannot sum the two numbers as there might be customers that are counted in both cases.
    For example I have 4 customers that correspond to case A : 1000 1011, 1012 and 1014
    And I have 3 customers that correspond to case B  1000 , 1011 and 1013
    I would like to get 5 as the number of customers that verify either case A or case B (or both).
    Is there a way to do this with the exception 'aggregation 'and 'count all values' property of CKF ?
    Claudio

    Hi,
    The logic given in the above post may be a bit confusing to you. Check out this explanation and try to understand what I mean.
    Posting Date - PD
    Key Date - KD
    Clearing Date - CD
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5107-----8
    Let me explain the above table.
    Between PD & KD there are 5 count with status'O' and 10 counts with status 'C'.
    Between KD & CD there are c counts with status 'O' & 8 counts with status 'C'.
    This means 5 with status 'C' becomes 7 between KD & CD.
    Similarly, 10 status with 'O' becomes 8.
    The logic I am trying to say is..
    If you don't want to get counts with status 'C'(repeated) as I understood) 7-5 = 2. Show this 2 as count for status 'C' between KD & CD.
    So the table will become like this now.
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5102(7)---2(8).
    In braces shown are the total with status 'O'/'C' for the dates.
    I hope this will solve your problem.
    Message was edited by: AVR - IGA

  • Bex Exception Aggregation in 3.5 equivalent to 'TOTAL'

    Hi All,
    Can anyone help me in getting a functionality equivalent to exception aggregation 'TOTAL' in BW 3.5.
    I have  a requirement which can only be fixed using the exception aggregation 'TOTAL', my bad in my current client they dont have BI 7.0. So can anyone tell me what is the equivalent function of 'TOTAL' in BW 3.5.
    Regards,
    Anand

    I need to develop a report which will show Org unit & degree (education data) wise head count and annual salary.
    As the education records for an employee will be more than one, the annual salary will be doubled or tripled in the DSO or cube.
    If I do an average of annual salary based on employee the overall result goes wrong.
    Say for example, empl 20045789 as three record with KF value 10,000, the result in the report I see as 30,000.
    SAY in the backend
    EMPLOYEE    |  Degree | Annual Salary
    20045788  |     A | 50,000
    20045788  |     B | 50,000
    20045789  |     A |10,000
    20045789  |     B |10,000
    20045789  |     C |10,000
    In the query I get it as
    Org Unit |      Employee |     Annual Salary |  Average(Annual salary/ Number of employee)
    100001 |           20045788 |     100,000 |          50,000
    100001 |          20045789 |     30,000    |          10,000
    overall result                130,000 |          26,000  (130,000/5)
    The expected result is 50,000 + 10,000 = 60,000 / 2 = 30,000.
    Pls provide me solution.
    Regards,
    Anand
    Edited by: araj123 on Jun 3, 2011 3:45 AM
    Edited by: araj123 on Jun 3, 2011 3:46 AM
    Edited by: araj123 on Jun 3, 2011 3:47 AM
    Edited by: araj123 on Jun 3, 2011 3:48 AM
    Edited by: araj123 on Jun 3, 2011 3:50 AM
    Edited by: araj123 on Jun 3, 2011 2:25 PM

  • Problem with exception aggregation

    Hi forums,
      Can any one help in this issue?
    We checked the data in the ECOM cube for the order 63349312 where it is giving 6 records eventhough we are deleting the adjacent duplicates of the order number in the start routine. (Is it like the deletion of adjacent duplicates happen in data packet level instead of happening in the entire cube level? B'cos the same order might present in the different packets.)
        Hence the data is aggregating for the key figure, 'Number of Days' in the ECOM report. But if we check the keyfigure properties in the RSA1, there we selected the Exception Aggregation as 'First Value' and aggregation reference char as 'ZN_CORD' (Order number). Still it is aggregating the number of days value in the report.
    Regards,
    Charan.

    Hi Rohit,
             We are doing same procedure as you mentioned. We assigned order number as refer characteristic to keyfigure No. of days in infi object level. But this operation is not working in report level
          Order number     ZCUDATE                  ZN_GSTRP            ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
    I want o/p as
    Order number     ZCUDATE                   ZN_GSTRP               ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
    but it is showing as
    Order number     ZCUDATE                      ZN_GSTRP     ZN_CORDKF  ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000            676

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts,
    I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result.
    my doubt is whether we can use  Exception Aggregation on Non cumulatives?????
    Thanks for any help
    boobal

    Hi,
    Non-cumulative valuesare those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.
    Example:stock quantities/-values, number of employees, account balances, etc.
    Please check this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d61b1e95-0501-0010-dfbe-a03970712ef1
    Hope this helps.
    Regards,
    Mona
    Edited by: Mona Kapur on Jan 17, 2008 10:45 AM

  • Exception (Aggregation) in Hierarchy nodes results

    Hi All,
    We have a requirement to sum all values (as results in hierarchy levels) based on the value of a specific characteristics. example as below is what we want to achieve. Country, Product group, materials are all characteristics and this is viewed as hierarchy in the query. In each material there is a calculation components that will shown the value of Sales Qty, Price/unit and Amount. What we want is to sum up ONLY the Amount value and presented in the hierarchy nodes so that we can see how much sales we did by product group and subsequently by country as whole. If we drill across we will be able to achieve this but we want to drill down as we have the time characteristics and variances at the columns. and no, we do not want user to drill across the calculation components. This query is used in Integrated Planning for planning purposes integrated with BO and that is the structure of the planning layout we want. "Calculation component" is a infoobject that contains 'sales qty', 'price/unit' and 'sales amount' as master data values. 
    I have tried exception aggregation on calc component infoobject for 'LAST VALUE'. and it did capture only the Sales Amount value as result for node Calc Components. But the other results node State, country and Region also takes LAST VALUE.. which is not what i want. what i want is esseentially summation of all Sales amount for each calculation components by state, country and region.
                                                       Last Year  |  Variance   | Current Year |   Jan | Feb | Mar |......
    Region X                                              200  (sum of all country's sales amount)
    ->Country A                                          200  (sum of all states' sales amount) 
       -> State Y1                                          80 (sum of all components's sales amount)
           ->Calc Components Z1                    30
              - Sales Qty                                   10
              - Price/Unit                                     3
              - Sales Amount                             30
          ->Calc Components Z2                    50
              - Sales Qty                                     5 
              - Price/Unit                                   10
              - Sales Amount                             50
       -> State Y2                                        120
           ->Calc Components Z1                   40
              - Sales Qty                                   10
              - Price/Unit                                     4
              - Sales Amount                             40
          ->Calc Components Z2                    80
              - Sales Qty                                   10 
              - Price/Unit                                     8
              - Sales Amount                             80
    any help would be appreciated...
    eddie

    Please try the below steps and I hope it should work for you.
    Instead of calculated keyfigures,try to use local formula .Because i think sometimes CKF will not give the expected result if you use exception aggregation (not sure though,but i used only local formulas)
    1. Create a first local keyfigure (Say F1)for the calculation and use exception aggreagation as 'Average' and reference characteristics as 'PDU'.
    2. Create  a second keyfigure ( Say F2) using the first keyfigure(F1) and use exception aggregation as 'Average' and reference characteristics as 'Sales Document', if you need the values based on average of the sales documents and hide the first keyfigure(F1)
    I consider Sales document is the first level and PDU is the second level ( i mean lowest  level) . Because you need to consider these sequencens as well when you design the exception aggregation.
    Likewise you can create nested aggregations based on your requirements.
    Please do let me know if it works.
    Thanks.

  • Exception Aggregation in BPS Layout

    Hi
    I am not able to get the exception aggregation settings of Key Figure in BPS layout. Below is summary of my problem.
    BW Headcount cube is loaded every week and headcount keyfigure is having exception aggregation to pick up the latest value in the BEx reports. But when I use this keyfigure to get monthly headcount in BPS layout, I am getting wrong headcount number as it is aggregating the headcount values for all the loads of data in the month.
    Lets say we have 5 loads in the month, the headcount of the particular employee is being shown as  5 instead of 1.
    Please let me know how can I get latest headcount value in Layout instead of aggregated value.
    Thanks,
    Raj.

    Hi Raj,
    Yes - the exception aggregation will not work in the BPS. If I remember it correctly you can write the data to an ODS that does an "overwrite" (before and after image) and then load into the BPS InfoCube. Thus you will get only one record at a time (for a given char./key figure combination) and you do not need the exception aggregation.
    Best regards,
    Gerd Schoeffl

  • Exception aggregation in one CKF causing problem in Result row of other CKF

    Here is my scenario in 3.5x BW:
    I have a CKF A which has exception aggregation (to select maximum value) based on a reference characteristic..
    Now this CKF A is used in another CKF B and a third CKF C is being calculated based on CKF B. SInce I am using exception aggregation in CKF A, CKF B and C had to be set to be calculated 'after aggregation'.
    Formula for CKF C = 100*B/ D   (D is another constant CKF, with value 1 for each row).
    Now my requirement is that the result row of CKF C should be calculated using the same formula on result row of B and D. This was working when I was calculating A without exception aggregation. But now I need to use exception aggregation aswell as I want the result of C = 100 * Sum(B)/ Sum(D).
    I have tried the alternative of using a Formula selection (with formula collision - Result from this Formula)instead of CKF for calculating 'C', but didnot find any success in getting result row of C as per my requirement.
    Any suggestions in resolving the issue will be higly appreciated..
    Thanks
    Shikha

    you have created a calculated key figure A in your query, and in the properties of this calculated key figure you have defined the exception aggregation right?
    so you can create a second calculated key figure (say A') with the same definition as ckf A, but you don't put any exception aggregation in it. then you need to create a second calculated key figure (say B') to replace the calculated key figure B, and use ckf B' in this new ckf.
    when you use now the calculated key figure B' in the formula of ckf C, it should be correct as you use ckf A' as basis, which has no aggregation...
    quite straight forward, no?
    M.

  • Exceptional Aggregation in Query Designer

    Hello Gurus,
    we have an existing  Report at the Material Level on the InfoCube.
    Each Material may have multiple POs and we are having multiple
    records for each PO varying the date. Now the user want to view
    only the record latest changed Record at the PO level
    and Sum of all the records at the Material Level.
    For this i have created a CKF using the Exception Aggregation
    as Maximum for the 0calday. But client want the Report at Material Level
    he dont want the PO's details. When i remove the PO from the report
    it gives the result for only the latest PO not all the PO for that Material.
    For Example we are having below records in the cube.
    PO             Material     Calday       Qty         Price
    101            ABC          1/12           100         10
    101            ABC          2/12            100         10
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    I am getting the result with PO in Rows as Below
    PO             Material     Calday       Qty         Price
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    When I remove the PO's From the Rows then it will display
    as below i am placing the calday for under standing the
    question actually it is not present in the  output of the below report only.
            Material     Calday       Qty         Price
              ABC         7/12          100         11
    Which is not currect I have to get the Result as
    Material            Qty         Price
        ABC              500         42
    My Concerns:
    !. Kindly let me know if it is possible and what are the
    other things that i need to consider.
    2. Did it will impact the performance.
    Waiting for your quick replies
    Thanks & Regards
    KK
    Edited by: KK on Dec 23, 2009 11:08 AM
    Edited by: KK on Dec 23, 2009 11:15 AM
    Edited by: KK on Dec 23, 2009 11:22 AM

    Hi KK
    Confirmation:
    First I need to confirm one thing,
    as you mentioned expected output is,
    Material            Qty         Price
        ABC              500         42
    But I think, it should be
    Material            Qty         Price
        ABC              400         42
    right?
    Answer:
    Can you please try below steps and let me know whether it is working as expected or not
    Create a basic Key figure for calday and include it in your InfoCube. In the transformation, assign it to same fileld which is a source of calday.
    In query, Create a calculated key figure based on calday key figure with exception aggr as last value and reference characteristics as PO.
    Regards
    Rohit

  • Exception aggregation doesn't work correctly

    Hi,
    Here we have a problem about exception aggregation, we created two queries. One is based on the
    InfoCube, another is based on the DSO.
    Both queries have the same definiation. And the data of the InfoCube is from the DSO.
    In the query definition we created a formula and in this formula we used a exception aggregation.
    For example, we used count all value <> 0 and reference to city in exception aggregation to count
    all city which sales value above certain value.
    We got the different result from these two queries.
    The result in the DSO is what we neend.
    Can you tell me why I got the different result?
    Our system information is:
    SAP NetWeaver 2004s
    SAP_ABA     700     0009     SAPKA70009     Cross-Application Component
    SAP_BASIS     700     0009     SAPKB70009     SAP Basis Component
    PI_BASIS     2005_1_700     0009     SAPKIPYJ79     PI_BASIS 2005_1_700
    SAP_BW     700     0009     SAPKW70009     SAP NetWeaver BI 7.0
    BI_CONT     703     0000          -     Business Intelligence Content
    Thanks

    Jin,
    Ideally one way to find out if exception aggregation is working fine is to drill down based on the exception aggregation characteristic and see if the formula is being calculated right...
    Arun

  • Exception Aggregation for a Calculated Key Figure in a Structure

    Hello BI world,
    Please can someone tell me if it is technically possible to use "exception aggregation (count) in a calculated key figure within a structure.
    The definition of the structure is:
    Rows: Characteristic (Selection) = Problem type (0CATCODE_FE)  = "AF01"
    Colums (Selections) Month 1 , Month 2, Month 3, etc .. Total
                 Details of the selection for each month
                           0CALMONTH = Variable (offset+1 for Month 2 , 3 etc)
                                   1KYFNM = CKF
    Calculated Key Figure (CKF) =
                       General Tab:  = Key Figure "0CAUSE_CNT"
                       Aggregation Tab - Exception Aggregation = Count All Values
                                                 Ref Characteristic = Problem type (0CATCODE_FE)
                                                    Calculation After Aggregation = not ticked
                       Local Calculations Tab = All "Nothing Defined"
    What I am trying to achieve is the "count" of "Category codes"  for each month specified in the structure.
    I have looked in the cube and there should be a "category Code" count of "9" for Jan 2008 for notifcation type AF01 but the query shows 0?
    Thanks in advance, points will be awarded.
    Steve

    Still not working? Not sure why? Have tried both answers and just not counting...
    Is there any restrictions on using "exception aggregation" in a calculated key figures in a structure?
    The structure is in the columns and it is a selection that includes the CKF with the exception aggregation plus a restriction on calendar month using a variable?
    Any help greatly appreciated.
    Thanks in advance.
    Steve

  • Last Value Exception Aggregation

    Hi.
    I have a KF with excpetion aggregation with Last Value based on CALWEEK. I have to calculate the 'for the month' and the YTD value for this in a query. When I execute the query, the system fetches the last value for the month for 'for the month'. However, it gets the same last value for the YTD as well. How do I change this to get the sum of last value of all the months for the YTD Value. For example, if I am looking in sep 2008, the for the month value should be the last week of Sep 2008 and the YTD should be the sum of all the last values for months Jan -08 to Sep-08.
    Cheers
    Anand

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • Exception Aggregation / Aggregation

    Hi experts,
    Can anyone please explain with an example what Exception Aggregation in Reports mean. I see a drop down in the properties of the query designer which shows summation, exception aggregation etc.
    Best Help = Best Points:)
    Thanks,
    Kumar.

    Hi,
    It's a 'normal' KF (with summation, min or max as aggregation behavior), but you set some exception in this behavior... for example, you can say that a KF, normally aggregated by 'summation', have to show the max value (or the average, or '0' or something else), that is the 'exception aggregation' when you use it in combination with 0DOC_DATE (or other char), that is the 'exception aggregation char reference'.. .in this case OLAP processor give to you the possibility to see your KF with different behavior depending from you use 0DOC_DATE (in our example, MAX) or something else.
    Example
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm
    The topic has been discussed many times in SDN. Kindly search the forums before you post.
    Find the below SAP help doc for ur reference...
    http://help.sap.com/saphelp_nw70/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/21b4cd14cd06f4e10000000a422035/frameset.htm
    Find the below search in Forums...
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums&query=exception+aggregation&adv=false&sortby=cm_rnd_rankvalue
    -Vikram

Maybe you are looking for

  • Is there a way to totally turn off 3G/LTE on iPad and make it a wifi model?

    I know this is a kind of odd question but let me explain. I bought an original iPad around 18 months ago and now I'm going to upgrade to a new iPad as soon as possible, when I bought the original iPad I bought the 3G version but after a couple days I

  • Adobe Premiere Elements 11 problems

    I was just downloading this program, and went online to get my serial number. I received the number and went to type it in to install it. It kept telling me that my serial number was invalid. I tried the chat on Adobe.com, and I called customer servi

  • Flex Mobile List Item Renderer problems

    i have flex mobile list created with item renderer,i remove individual item in flex mobile list,it is worked very well,but some times i double click action or another scroll event using in list, last item doesn't delete in flex mobile list.it is repe

  • Reduce width of text of typed document scanned to CD, to give to Kinko's.

    Aloha, all! Heirloom biography typed by my Grandfather in 1913 on ltr-sized paper almost-to-the-edges is too wide to duplicate same-size for printing on 8 1/2 X 11 paper fror binding in a book. The text block must be reduced about 88 % to yield reaso

  • Join on 3 tables using inner join.

    Hi friends can one one correct the below code and send me back. its showing some error. SELECT a~matnr            a~werks            b~maktx            c~prctr            c~bklas            C~stprs            c~peinh           INTO TABLE it_detail