Exception Aggregation on a Formula Variable?

I need to create an exception aggregation on a formula variable, but the properties dialog box of the calculated key figure doesn't have the options of exception aggregation.
Only field available is "Time of aggregation" and I don't want to use that because (1) it is not working properly and (2) it is obsolete functionality.
Do you know how I can obtain exception aggregation on a CKF containing a formula variable?
Thank you very much for your time.

I believe you are using 3.x.
Please mention the version of BW in the problem statement.
If you dont want to use exception aggregation in the query the second option is setting this property in the backend for the keyfigure. But I believe that you are trying to set this for the CKF, so I dont see any other option to generate exception aggregation.
I would like to comment on your reasons why you dont wnat to usee the exception aggregation.
1. It is not working: If it not working, you should contact SAP for this. Exception aggregation is 20% heart of any query and it is very rarely used things in reporting.
2. It is obsolete: I am not sure, if this is correct. There are many industries where you cannot built certain reports without exception aggregation. The simplest report of sales where you are asked to find the rate of the material from Total Sale and Quantity at aggregation level can not be created without exception aggregation. So this option is and will never obsolete.
Please try using before aggregation.
- Danny

Similar Messages

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

  • Date Formula variable

    Dear All,
    I have created Date formula variable and i have applied some exception aggregation on that to find Last bill date.
    Now i am creating formula and applying following condition :
    ((If quantity > entered quantity) AND (Quantity2 ==0) ) * Sale date whr Sale date is exception aggr on date formula variable.
    But when i apply this date format is changed to Number format.
    Plz help ASAP.
    Regards,
    SS

    I am using Billing date so it has reference to 0DATE.
    So in this case how do i achieve this?

  • Formula Variable and Exception Aggregation

    Hello
    Please can you explain me how this works.
    There is formula variable created on a change date.(Replacement Path) with replace with Key.
    Then this formula variable is put in a formula as NODIM(Formula Var) and the exception aggregation is set as Total with Ref Char selected on the same date(Change Date).
    Now this is coming up with values like 2202374. If i remove the exception aggregation then i get an X in the values. If i then include the change date in the rows i get the date.
    Please can anyone let me know how this would be working. Effort Appreciated.
    Thanks

    Here is a scenario that might fit:
    Formula is trying to show the latest change date without adding it as a drill down. The only discrepancy is that the exception aggregation would need to be set to maximum value instead of Total.

  • Forumla Variable with Exception Aggregation

      Hello,
    I've CKF in BEx, in this CKf there is replacement path Formula variable calculating number of documents.
    Formula variable is replacing the value of Document number infoobject.
    So definition of CKF is -> Replacement path Formula variable *1
    Ckf is restricted to summation with  Exception aggregation on Document number.
    This implementation is working fine but issue is its taking lot of time in query ,like while checking RSRT olap :data transfer(Event ID) is taking lot of time,majority of the query execution time and counter is going somewhere around 100K.
    Do you know is there a way we can implement this count in transformation?
    Thanks in Advance!

    Hi,
    Doing SUM in transformation takes a long time as you need to read all the content in target.
    So it is better to fine tune the query.
    1) Is query running long time for small selections ?
    2) Trace the query in RSRT and check where it is taking long time like Data base level , Application level
    Thanks
    Jagan

  • Exception color with formula variable(replacement path)

    Hello,
    I tried to define exceptions in a query which "from" and "to" values
    are determined by formula variables with replacement path. I checked
    the values of the formula variables and they are right. <b>But <b>the cells
    are not colored</b></b>. When I set the same values in the field "from" and "to" without variables : the colors appear.
    Could help me to resolve this problem please ?
    Catherine Bellec

    Hi Alec,
    You are right, the user exit permits to color the lines.
    But the value of my variable needs to change for each line of the infocube so I can't do this with the user exit RSR00001 because it concerns global variables.
    That's why I used a replacement path on a virtual characteristic.

  • Formula variable used in exception and condition - gives a check error

    The same formula variable is used in a condition and exception within a query. When I click on "check", I get the message "Variable <myvar> Is Used By More Than One Infoobject". The variable is a formula variable, processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01.  However, the query still saves, generates and executes without problem.
    This is with BW 7.0, SP 14.  And with query designer 3.5, version 3500.7.572
    I'd be grateful if a few people could try to reproduce this, letting me know their version.  To reproduce it:
    Create a query. Create formula variable processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01. Create a condition using the  variable. Create an exception using the variable. Click on Check. Save and execute the query.
    Thanks
    Matt

    It is a warning and you can ignore it , if in query execution you get correct result / output...(then it implies u r on safe side)
    But if you are so much concerned about warning then as a workaround just create another Formulae variable and use it in Condition and use the previous formulae variable for Exception.
    This way you will have 2 variables for 2 different purposes
    and you will get rid of the warning message.
    So far if you get the correct output of query then there is no need to worry.
    Edited by: kartikey on Dec 20, 2007 1:45 PM

  • How to find the value of date char used as exception aggregation reference

    Hi BI Gurus,
    On a BEx report I need to list three things by material:
    1)   the open (not yet delivered) Purchase Order quantities
    2)   the PO quantity to be delivered next and
    3)   the date that belongs to the next delivery
    The model supports these data i.e. for each material I can list all open quantities by Purchase Order / Item / Schedule line and the scheduled delivery dates are also available as a characteristic.
    Determining 1) is easy – as the drilldown is fixed (materials only) the open quantities get summarized for all PO-s belonging to the materials.
    To determine 2) I used a Calculated KF simply including KF 1) “=Open PO Qty” in the definition and setting Exception Aggregation (first value) with a reference char of the delivery date. This gives back the Open PO Quantity to be delivered first.
    My question is about how to determine the 3rd value (actually this is not a KPI but a characteristic value). In other words, for each materials I would need to determine the first among all of the possible delivery date char values of the open PO Items / schedule lines. This is the date the quantity shown in the 2nd KPI will be delivered on.
    Does anybody have an idea how to approach this issue?
    Thanks for you help in advance,
    Attila

    Hi Olivier,
    Thanks for your suggestion. I got a bit closer with the replacement path formula variable and the CKF. I tried to apply the same logic of KPI 2) but for some reason it did not work. Actually, it delivers the right value but only when 0SCL_DELDAT (Scheduled delivery date) is in the drilldown… But what I need is the first delivery date by Material only, and without this 0SCL_DELDAT drilldown.
    Any other ideas?
    Thanks and bye,
    Attila

  • Attributes dissappear from the formula variable after upgrade

    Hi,
    We have upgraded from 3.X to 7.X. When i run the reporrt, i get the error saying that attribute XXXX for characterstic 0object in variable ZFormula variable couldn't found.
    When i went and checked in the formula variable, under replacement path
    Replace variable with
    Info Object
    Replace With
    Attribute value
    Attribute
    I couldnt find my XXXX attribute but with error mesage.
    I tried to create a same formula variable,but could't find the XXXX variable under ATTRIBTE.
    I coldnt find the proper solution or note. Did anyone had issue like this?
    Thanks
    Annie

    Hi,
    Thanks for the replies. But my issue is not with variants. Attributes are missing when I try to assign attribute of char in replacement path and also in my exception aggregation in query designer, reference char isu201D-1u201D.  I am not very sure how can it be u201C-1u201D. Is it upgrade issue?
    Thanks
    Annie

  • Exception Aggregation help in Bex !

    Hi Experts
        Iam creating a query with date calculations. I have the following calculations in my qry...
    1 . Cycle Time      :  ( Doc Date - Quote sent date) ....I created two replacement path variables and use them in formula.
    2 . Nr of Quotes    :  ( Count of all sales orders with Block L1 & L2) ...I created a CKF for counting the nr of docs then used that CKF in an RKF to filter by block. 
    3 . Avg Tender Time :  ( Nr of Quotes / Doc date - Quote rec Dt) .........Created a formula same as 1 with Quote rec dt instead of Quote sent then created another formula to make 2/3.
        Now when I execute the query Iam getting numbers but
        Cycle Time I took Exception Aggregation as Counter for all detailed values and ref char as Doc Date....Its giving some nr as output...but my question is if I take doc date as Ref char how it gets the calculation from replacement
        Does any one have worked on date calculations as the above situation / any one have any how to's which explaines how to find date calculations with exception aggregations?
    Thanks in advance...

    fixed

  • Formula Variable Question

    Hi
    I have to calculate No.Of Days Open for a Case. We have Created Date and Closed Date Characteristics.
    Calculation:
    Closed Date - Created Date (If Closed Date is not #)
    else
    Current Date - Created Date.
    I have created two Formula variables on Created and Closed Dates and Used Current Date SAP Exit variable.
    Formula1: Current Date - Created Date
    Formula2: Closed Date - Created Date
    RKF1: Formula1 and Closed Date = #.
    RKF2: Formula2 and Closed Date NE #.
    No.Of Days = RKF1+RKF2
    Whenever Closed Date is blank, Formula 2 is giving "Does Not Exist" in the Output.
    I tried with NOERR, DELTA functions to get zero value in Formula2 for Closed Date = #
    But none of them worked. Surprizingly If I pull Closed Date into the Report, it is showing zeros.
    Can anyone guide where I am doing mistake?
    Best Regards,
    Sree

    HI Parth,
    I am having one issue in CKF.
    Original data:
    Compcode   Caseno.     CreatedOn    Amount
    1000         A        06/18/2011     100
    1000         B        06/19/2011      50
    1000         C        06/18/2011     150
    I have created one CKF for No.of Days Open. It is difference of Sy-datum and Created Date. I used two formula variables and used
    them in the CKF.
    Let us say today is 06/22/2011
    Report Layout:
    Caseno and CreatedOn are Free Characteristics
    Compcode  No.of Days Open   Amount
    1000          4              300
    When I bring in the Case no I am getting below result: It should show No.of Days Open as "3" for Case B. Somehow it is always
    taking maximum difference number and showing for all cases.
    Compcode   Caseno.   No.of Days Open  Amount
    1000         A           4            100
    1000         B               4          50
    1000         C               4            150
    When I bring in Createdon then only it is showing correct value for all cases. I tried with Exception Aggregation with reference to Caseno.
    CreatedOn etc but didn't get the correct result.
    Question: Could anyone identify the problem in my Query design? Thanks for your help
    Best Regards,
    Sree

  • Help Regarding the Formula Variable

    Hi,
    We have a scenario where  "CKF = RKF/Formula Variable". When we execute a Query in BEx Analyzer, for this particular CKF values are displaying as 'X'. (i.e Numeric values are not displaying)
    When we check in the backend data is available for the RKF.
    Can someone please guide on how to validate whether the Formula Variable is working fine or not?
    Thanks in advance
    Regards,
    Seshendra Reddy

    Hello,
    This post caught my attention because I am facing a similar problem.
    I created a Formula Variable with replacement path on Posting Date (0DATE Char), with exception aggregation = MAX and results calc = MAX.  The purpose is to return the last posting date for a set of documents.  However, it seems that if Posting Date is not in the drilldown, then the formula formula returns 'X'. 
    This limitation is not mentioned in SAP help... and seems to be a pretty big constraint if the reference char on the replacement path formula variables must be in the drilldown.
    Does anyone know how to work around this?
    Thanks!
    Jenni.

  • Formula variable - Maximum Date in result output

    Hello Guys,
    Scenario -
    Data in Cube
    *Reseller      Sales Date*
    RS1          01.01.2010
    RS1          01.01.2011
    RS1          01.01.2012
    RS2          01.01.2008
    RS2          01.01.2009
    RS2          01.01.2010
    Required Output - Display one record for each Reseller with recent Date.
    *Reseller      Sales Date*
    RS1          01.01.2012
    RS2          01.01.2010
    What I did till now --->
    Created a Formula and included a Formula Variable (replacement Path ref char - Sales Date) hence I got the date as keyfigure.
    Reseller      Sales Date     Sales Date Formula
    *RS1          01.01.2010     201,00,101*
    *RS1          01.01.2011     201,10,101*
    *RS1          01.01.2012     201,20,101*
    *RS2          01.01.2008     200,80,101*
    *RS2          01.01.2009     200,90,101*
    *RS2          01.01.2010     201,00,101*
    For the Sales Date Formula (Calculation tab - Calculate result as Maximum) to display the result as maximum.
    The issue is that when I remove the Sales Date from Drilldown the Sales Date Formula display X. I was expecting the result row to be displayed i.e  the maximum value for RS1 and RS2.
    Can you guide where I am going wrong... or any other method to achieve the above output is appreciated.
    -Amit

    Hi,
    Through replacement path you can achieve this.
    On row side put *Reseller.
    on Column side create a formula(and  on Aggregation Tab: Exception Aggregation: Last Value, Reference Characteristics: Sales Date)
    and there create formula variable and use replacement path.
    Details
    Type of variable: Formula
    Processing By: Replacement Path
    Reference Characteristics: Sales Date
    Replace variable with: InfoObject
    Replace With: Key
    Dimension: Date

  • 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

  • Formula variables based on conditions

    Hi,
    I am facing following problem with formula variables.I am explaining the result which I am trying to achieve in BEx Query Designer.
    For Example:
    I am having a result output with following columns
    Country          Customer      KeyFigure(Revenue)
    IND            A                1000
                  B                2000
                  C     
                  D                3000
                  E                4000
                  F     
    For C and F Cusotmer there are no Revenues available in BI system.So they are blank in the report.
    My 1st requirement here is to write a formula variable which will display below result in 'Formula Col1' for which I have used COUNT function in formula to achieve this.
    Country     Customer     KeyFigure(Revenue)     Formula Col1
    IND     A                1000                     0
         B                2000                     0
         C                                  2
         D                3000                     0
         E                4000                     0
         F                                  2
    So when data is available for a Customer in above table,  'Formula Col1' should display value 0 and when there is no data for a particular Customer, 'Formula Col1' should display value 2.
    My exact requirement here is to display a final report output as below, based on the above calculations of 'Formula Col1'
    Country     FormulaCol2
    IND            1
    If Formula Col1 consists of all 0's then FormulaCol2 should display value 0,
    If Formula Col1 consists of all 2's then FormulaCol2 should display value 2,
    If Formula Col1 consists of all 0's and 2's then FormulaCol2 should display value 1.
    I tried applying Exception Aggregation = Average, Red Char=Customer on Formula Col1but still could not achieve the required result in FormulaCol2.

    Create a Calculated Key Figure using Boolean Operators which will be your Formula Col1
    CKF1 = (Revenue <= 0 ) * 0 + (Revenue > 0 ) * 2
    Goto the properties of the CKF1 and set the exception aggregation as Average and refernce to the characteristic Country.
    Now create another Calculated Key Figure using Boolean Operators which will be your Formula Col 2.
    CKF2 = (CKF1 == 0) * 0 + (CKF1 == 2)*2 + (CKF1 > 0 AND CKF1 < 2) * 1

Maybe you are looking for

  • Sistema SAP que envia para Sefaz por Programa Z.

    Bom dia Especialistas. Estou implantando a versão 3.10 em um sistema SAP de contingência ONDE SE ENVIA PARA SEFAZ VIA PROGRAMA Z (o sistema foi comprado para funcionar assim.) Gostaria de saber por favor como é preenchido o campo IND_IEDEST para envi

  • Tried to downgrade to xorg 1.6

    Hey! I have an Ati X700 Mobility and my laptop crashes every few minutes with xorg 1.7. First I worked with it and I thought with the first patches of xorg the problems will be erased. But now with Version 1.7.3.901.1 I also have the same problems an

  • Free finish goods for certain level of sales order amount.

    Hi Gurus, I want to add some free finish goods if the sales order amount is greather than a certain amount for OR sales order type For example : if the sales order net amount is greather than 1000 - I want to automaticaly add a FG - 347234FG . Is it

  • How to link to another project?

    Hello guys! I´ve got a little problem with captivate 4: I would like to put a button in my project that is linked to a specific slide in another project. Is this possible? I´m looking forward to hearing from you! Best regards Smoky Mc Pot 3555

  • Editing an email link

    I am editing an email link. When I click it to send an email, it doesn't update the address I had edited.