Exceptional Aggregation Problem

Hi My data is like this:
PO     Quantity          
1        10000
          10000
            7000
            7000
2        7000
          7000
          7000
3        7000
          7000
          7000
What i want is like this.
PO     Quantity          
1        17000            
2        7000
3        7000
How can it be done in BEx????
Thanks

Yes we have condition type wise date.But in one report i dont want summarized data.
PO
GR
Quantity
Condition Type
1
11
10000
AA
1
11
7000
BB
2
12
7000
AA
2
12
7000
CC
3
13
7000
BB
3
13
7000
CC
Now when i remve condition type it aggregates all quantties.So what i want is that for GR 11 Quantity should be 17000,for GR 12 Quan. should be 7000 and for GR 13 Quan. should be 7000.Is this possble????

Similar Messages

  • Query Problem With Exception Aggregation

    Hello,
             I have two I/O 0Customer and 0Cont_Acct and also I have a Infoset made out of both. Here is the problem i am trying to solve,
    I want to figure out the customers who has more than five contract accounts associated with each customer number.
    Here is the solution I approached....
        1) Created a formula variable counter on the KF # of data records (which is provided in the Infoset automatically ) with exception aggregation total while referencing the contract acct I/O.
       2) Kept my customer #  and Contract acct on my rows area.
    The results I am getting is less than satisfying.  I am expecting   this output below.
    Customer #                 Cont Acct                  Total No of Cont.acct
    A                                  1001                                1
                                         1002                                1
                                         1003                                1
                                                                                  3
    B                                  1007                                 1
    I would appreciate anybody's help in this.  Thanks a lot.
    -A

    Hi,
    We have the same problem and raised an OSS ticket. They replied us with the note 1257455 which offers all ways of improving performance in such cases. I guess there s nothing else to do, but to precalculate this exception aggregated formula in data model via transformations or ABAP.
    By the way, cache can not help you in this case since exc. agg. is calculated after cache retrieval.
    Hope this helps,
    Sunil

  • Problem with Exceptional Aggregation

    Hi Gurus
    I have problem with Exceptional Aggregation.I have a cube which as following data
    Plant , Fromcostcenter,ToCostcenter, g/l,fiscalyear/period, allocation %,amount
    1             101234            102355       888881      001/2006            10       1000
    1             101234            102355       888881      002/2006            10       1000   
    1             101234             102345      888882      001/2006            10       1000
    1             101234             102346      888893       001/2006            90      1000
    1             101234             102346      888893       002/2006            90      1000
    1            101234             102346      888984        001/2006           90       1000
    I need summarized report as follows
    Fromcostcenter tocostcenter  allocation%
    101234                   102355         10
    101234                   102346          90
    But iam getting report as follows
    101234   102355  30
    101234   102355  270  
    The allocation% keyfigure should not be accumulated, so for this i specified Exceptional aggregation but not worked.
    Any Suggestions,please help me.
    Thanks
    Raghu

    Hi
    I am also having same problem. Did you get a solution for your problem? Can you please tell me how did u manage to display 10 and 90 instead of 30 and 270?
    I also tried exceptional aggregation if more than one value. but not working.
    Thanks

  • 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

  • Problem in Nested Exception Aggregation

    Hi Experts,
    Can you please give me an idea of how & Steps to do the nested exception aggregation based on the 3 to 4 characteristic and agregate the volume for 1 key figure,
    Thanks Regards
    Dolly.

    Hi AL,
    here is my requirement what i have been asked to get this output result.
    i have keyfigures KF1, KF2 and total KF.
    three characteristics dist,inch,load.
    dist-inch-load--KF1-KF2-Total KF                         
      5---A--010-0-----10=10                         
      5---A--120-20----20+10=30                         
    10--B---050-0-----50                         
    12--C---160-60----60                         
    13--D---270-70----70                         
    14--E---080-0-----80                         
    15--E---120-20----20+80=100                         
    15--E---230-30----302080=130     
    KF1 is the initial volume coming from the file directily.based on this keyfigure i have to calculate KF2,Total KF.     
    In order to calcuate KF2 and Total KF i have some conditions.which are mentioned below;
    KF2---> if  load=0 then KF2=0 elseif load>0 then KF2=KF1 ;
    Total KF--->if load=0 then Total KF=KF2KF1 elseif load>0 then KF2=KF2KF1
    How to achieve this dynamic summation.Do i have to do nested exception aggregation based on the above three characteristics. what would be the open options.please do help me.

  • 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.

  • 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

  • Aggregation problem in Qery design

    Hi folks,
    I have the following situation:
    - Characteristics as line items, shown as a hierarchie.
    - KFs and Formulars in columns
    I want the formulars to be calculated on the basis of a combination of two of the characteristics (the bottom two in the lines hierarchy) and then aggregated.
    Exception aggregation allows me to choose "total" based on one characteristic, but not a combination of two.
    One solution would be, of course, to create a new characteristic in the cube that is a combination of the two existing characteristics in question and then use this for exception aggregation. This would be a bit complicated though, as the two characteristics are in fact navigational attributes of characteristics that appear in the data source and the cube.
    Therefore, I'd prefer a solution that is in the scope of query designer rather than cube design.
    Any ideas?
    PS: The formulars show correct values on the level of the bottom most characteristic in the lines hierarchy if I choose that characteristic for exception aggregation. The results are not correct one level up from there as I can not get the system to sum the results up along the hierarchy. Instead, they are calculated for the aggregated values of the KFs used in the formular.
    Apparently the "show lines as hierarchy" function really only affects display of the lines, not calculations.

    Hi John,
    I understood your problem. Solution is easy:
    Make formula 1, exception aggregation as total , ref char as char 1
    Then make another formula 2 on formula 1, exception aggregation as total , ref char as char 2.
    And in the report show formula 2 and hide formula 1.
    Best Wishes,
    Mayank

  • Exception aggregation on Non-cumulative key figure

    Dear experts,
    I have a problem. We have an InfoCube in BW in which the Activity Journals are loaded every day. In this Activity Journals it is registered that a Material was listed (available) at a customer (value 0 or 1).
    We have a non-cumulative key figure MXW_LISTN with inflow (MXW_LISTI) and outflow (MXW_LISTO). In time this key figure receives +1 or -1 for a customer, material combination.
    I want to use MXW_LISTN in the query in a specific way. The key figure on itselve tells me how many listings there are. However, I want to know how many business partners there are with a listing.
    I was thinking about an exception aggregation on MXW_LISTN with reference characteristic 0BPARTNER and "Count <> 0". BW however refuses to do so and only lets me do simple aggregations such as AVG, MIN, MAX etc.
    Can you think with me and come with an proper solution to count the number of business partners with a listing?
    Your help is very much appreciated and rewarded!
    Best regards, Hans de Klein

    Maybe a solution with virtual key figures is an option?
    Please help me out!
    Best regards, Hans de Klein

  • Nested Aggregation Problem

    I am using OBI 11g.
    Nested aggregation is not supported in some forms in the BI Server (RPD), but appears to be possible by putting the second aggr rule in an Answers column formula or pivot view column. However, I cannot get this to work. Looks like can even be done in the RPD with aggregation based on dimensions, as long as there is a standard aggregation function on the outside of the expression.
    The biggest problem with any of the above techniques is the BI Server does not push the outer aggregation rule to the DB engine (the generated SQL).
    In my case, consider a Referral Fact with Customer Dim and Referral Dim. I need to get # of Referrals per customer, filter that with a case statement to "bin" 1 Referral and >1 Referral, and then get # of Customers in each bin. So the first measure aggregation looks like:
    Other: COUNT (DISTINCT "Referral Key")
    Customer: "SUM( CASE WHEN "Referral Key" = 1 THEN 1 ELSE 0 END )"
    Or the logical measure just has the COUNT DISTINCT aggregation rule and an Answers column has the CASE statement with a SUM aggregation rule. Or use CASE WHEN "Referral Key" = 1 THEN "Customer Key" END and use COUNT DISTINCT instead of SUM.
    All these appear to return correct results, but they all perform the outer aggregation in the BI Server or Pivot engine instead of pushing to the generated SQL (DB engine).
    I can't find any problem in the DB Features. We are using SQL Server 2010.
    Thanks in advance for help.

    Hi AL,
    here is my requirement what i have been asked to get this output result.
    i have keyfigures KF1, KF2 and total KF.
    three characteristics dist,inch,load.
    dist-inch-load--KF1-KF2-Total KF                         
      5---A--010-0-----10=10                         
      5---A--120-20----20+10=30                         
    10--B---050-0-----50                         
    12--C---160-60----60                         
    13--D---270-70----70                         
    14--E---080-0-----80                         
    15--E---120-20----20+80=100                         
    15--E---230-30----302080=130     
    KF1 is the initial volume coming from the file directily.based on this keyfigure i have to calculate KF2,Total KF.     
    In order to calcuate KF2 and Total KF i have some conditions.which are mentioned below;
    KF2---> if  load=0 then KF2=0 elseif load>0 then KF2=KF1 ;
    Total KF--->if load=0 then Total KF=KF2KF1 elseif load>0 then KF2=KF2KF1
    How to achieve this dynamic summation.Do i have to do nested exception aggregation based on the above three characteristics. what would be the open options.please do help me.

  • Exception Aggregation or Avg Inventory

    Hi,
    While I am doing Inventory Development, got some issues in reporting. Below is my reporting info.
    Chars in rowsr:  CompCode, Sector(Nav attribute to plan), Calmonth.
    1. We get Closing Inventory in runtime ( 0valstockval )
    2. Turnover (Just a KF)
    3. Avg Inventory is a moving avg of Closing Inventory
    4. Ratio = Turnover / Avg Inventory.
    Problem in getting Moving avg in Sector Level. If I use moving avg option in Calculation tab, It is working till the end of the report not breaking at Sector level.  If I use exception aggregation, its not working and also that will calculate only Avg not a moving avg.
    So how to get avg inventory and Ratio values.
    If you give me solution in workbook also ..it ll be fine ..
    Thanks,
    _R

    Create one original query
    and another view of the original query with the navigation state for sector level.
    If you embed both in workbook, will it be OK?
    The roundabout is bit cumbersome. You need to go for table interface or macros.

  • 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 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

  • Exception aggregation

    Hello all,
    I have a problem with my query, i don't want to aggregate on a characteristic, i've tested many options by creating a formula with my characteritic and tried with several possibilities on exception aggregation but none is working.
    If someone can help me.
    Thank you by advance.

    hello, here my report result:
    Division     Material     Qty mouvement        mouvement value     Coût matière standard lot     
    1000        HB9754      2                               250 EUR                     200EUR
    and i would like to obtain :
    Division     Material     Qty mouvement        mouvement value     Coût matière standard lot     
    1000        HB9754      1                              150 EUR                     100EUR
    1000        HB9754      1                              100 EUR                     100EUR
    If you have more questions don't hesitate.
    thanks by advance.

Maybe you are looking for

  • How to go back to Mountain lion os x 10.8 again from mavericks.?

    How to go back to Mountain lion os x 10.8 again from mavericks.?

  • Looking for max o/c e6600, p7n platinum, thermaltake bigwater l/c

    hi guys, just got done pulling my hair out trying to find the magical voltages to get past 375 fsb, and boot. I was wondering if anyone had the same board and cpu setup that has had any luck, for now im back at stock volts running 1400 (375x9). i tri

  • PM - Report - Equipment - Cost Details

    Hi, As per my the requirements i need to create a report for reporting on Equipment ID and the various key figures like Total Costs, Number of orders created till date, MTTR/MTBR etc in PM in one single repoort. I am able to get the Cost based on Ord

  • Syntax error in form parameters

    HI, In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was PERFORM zz_routine USING I_

  • Ess upgrade

    Question related to ess upgrade. Upgraded from ep 5 to NW04s. ESS Business Package - release 1.0 How do I map current iViews to new ESS Business Package - release 1.0?