Error when Using a Calculated Key Figure

Hi,
I am having a problem using calculated key figures (CKF's). I am not getting any errors
when i am creating them but when i pull the same into the report it is giving an error
SUB FORMULA not available. Can you please advise how to fix this issue.
Thanks
Rashmi.

Hello Rashmi,
thius is a known issue. The procedure from note 1238872 can be useful:
Download the BI 7.0 front-end add-on for SAP GUI 7.10, Support Package
700 from the SAP Service Marketplace.
Then save the calculated key figures in the InfoProvider (left-hand side
in the Query Designer):
    o  Select the calculated key figures in the InfoProvider.
    o  Save the calculated key figures using the context menu
    o  or in the properties of the calculated key figures (right-hand
       side in the Query Designer).
    o  If other calculated key figures are used in a calculated key
       figure, save them as described above.
    o  For safety reasons, also save the query definition.
If the calculated key figure was saved correctly, the system does not
issue any error messages when you check the query definition (by
choosing "Menu -> Query -> Check").
Cheers,
Ricardo

Similar Messages

  • Problems in using a calculated key figure in the Clustering Model

    We have a problem in using a calculated key figure in the clustering model. With the limitation of the standard, in the Field tab, each calculated key figure cannot be selected from the selection screen directly. According to the SAP help, we have to use a dummy infoobject for a calculated key figure.
    Are there any other ways to use a calculated key figure without using a dummy infoojbect?

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

  • Calculated Key Figures question

    Hi
    In a Purchase Order report I have included a Calculated Key Figures and this report is transported to the QA environment.
    Then I create another report using the same Calculated Key Figures but when I tried to save the query it gives me an error;
    "The query could not be saved due to a problem in transport"
    "BEx transport request 'BD1K900664' is not suitable or not available".
    I was told that when the 1st report uses that Calculated Key Figures and the report transported over to the QA I cannot reuse the same Calculated Key Figures in the new report. Is this true in SAP BI? If so how can I reuse the same Calculated Key Figures in a new report.

    Hello Lai,
    Once you have transported the earlier report along with the original calculated key figure, create one more request by selecting just the cal. key figure which you want to use.
    dont release this request.
    Now any change you make in the cal. key figure will be stored in this newly created request.
    also go ahead and create a new query using this ckf and save it in the newly created request.
    Then you can always release this and transport the same.
    hope this helps..
    let me know for any further issues...
    thanks,

  • Calculated Key Figures Issue!

    Hello Experts -
    I'm getting error messages for the calculated key figures. The message says that the key figure is not defined correctly. Therefore, I started breaking down the calculated key figures and use them in the eventual calculated key figure. I have included all the calculated key figures. And I've hidden the ones that I dont need to show in my query result. I'm in BI 7.0. Also, I had to remodel my multi-provider after making the initial query. Do I have to start fresh?
    I have the following calculated key figure:
    1. Price = (Price > 0) * Price + (Vendor Price - (Vendor Price * (Cust Discount + Vendor Discount)))
    This is supposed to be an if calculation. If Price is greater than 0, then Price else the calculation.
    Cust Discount and Vendor Discount are CKFs.
    What am I doing wrong?

    Thanks Ajay!
    I added a couple of NODIMs and the query is now working!
    I have couple more questions:
    1. Is there a way to say Not Null in Bex? In my if condition, I want to say if Price is not equal to NULL instead of greater than 0.
    2. The above requirement leads me to another question: how do I account for the negative values. I mean I need to add them but I cannot suppress them? I hope it makes sense!

  • Calculated key figures before aggregation

    Hi,
    I'm having trouble creating a new calculated key figure. Here's the situation.
    I have two key figures: stock, value A. Now I want to create a new calculated key figure (in 3.x) using both key figures. The calculation would look something like: "stock * (value A == 0)". Now I want this key figure to work before aggregation. When creating this calculated key figure however I am unable to set the aggregation setting to before aggregation. Now, with any other key figure besides stock, this is no problem. Something like "profit * value A == 0)" works fine and I can set the aggregation setting to before aggregation. I suspect the reason I can't use stock in a calculated key figure set the calculate before aggregation is because of the exception aggregation of the stock key figure. It's set to last value in exception aggregation.
    Does anyone know how to solve this problem? Thanks in advance.
    Alex

    Hi Alex,
    please read this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/75/21054da1392649948e5b94e4fc4bce/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/frameset.htm
    The reason that somtimes the propertie is available or not depends on the key figure type - e.g. if it is complex or not. I think that here is a lot of info available in the forum.
    Regards,
    Adem

  • Calculated key figures from multicubes before aggregation

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

    Hi,
    I am calculating a total using a calculated key figure
    that has one key figure from a multicube and two other key figures from another multicube.
    Also I factor the total using a variable with a replacement path on the dummy attribute (Constant) to "force" the calculation at the material level.
    Cost = Cost(CUBE1) / Quantity(CUBE1) * Quantity(Cube2) * ZVRMATER1
    Problem:
    If I split the calculation this works before aggregation at the material level. Also this works fine using calculations that use key figures that must be calculated before aggregation if they all are from the same cube at the time.  The required formula above will not work (zero divide) since during selection the OLAP processor retrieves in phases and with value 0 from the key figure of CUBE2.
    Any suggestion on how to solve this without new back-end development?
    Thanks.

  • Calculated key figures are returning the word "ERROR"

    Hi All,
    the calculated key figures which i used in one query are displaying the word  "ERROR" at the end of the results as part of each cells formatting.But when i copied the same query to my system then its not showing the word error and even i created one more query which is a replica of the first one and then also iam not getting the error .
    what might be the cause of this issue . kindly suggest me how to control the word error in the out put
    regards,
    jayakrishna

    Hi,
    you can control the way BW displays exceptions with customizing (SPRO) transaction RSCUSTV4.
    identify differences of these settings in your systems and apply them accordingly.
    hope this helps...
    Olivier.

  • Calculated Key Figures Decimal Place Error

    Hi Experts,
    Wonder if there is anybody to help me out to explain why I am having a problem on the calculated key figures decimal places when if I report on the components of the calculated key figure (restricted key figure) are working correctly?
    The calculated key figure is a boolean formula made up of 2 restricted key figures.  The 2 restricted key figure are having 2 decimal place (one is 0.36 another is 0.00).  In the current condition, the 2 restricted key figure just sums up - 0.36 + 0.00 = 0.36.  However the calculated key figure displayed as 0.359999 (6 decimal places) as the result.
    I am using BEx Analyzer Excel.

    Hi Fang,
    right mouse click on your KF and select properties. Then define the number of decimal places you want.
    Ciao.
    Riccardo.

  • Error after upgrade: cannot calculate calculated key figure

    Hello Experts,
    We've recently upgraded from 3.5 to 7.0. We have still a problem we don't know how to solve regarding some queries containing some CKF with "before aggregation".
    When trying to open these queries in the new BEx 7.0 we get one warning and two errors:
    Warning:
    Time of calculation "Before Calculation" is obsolete
    Errors:
    1. Cannot calculate calculated key figure "XXXX"
    2. Query "XXXX" could not be opened.
    Searching the similar posts in this forum I've seen I could edit the queries and change before aggregation to exception aggregation and it should work in this way, but the problem is I cannot open the queries anymore.
    Have you faced a similar problem?
    Any help would be much appreciated.
    Thanks in advance.
    Inma

    Check the following notes:
    Note 1464974 - Property 'Calculation Before Aggregation'
    Note 935903 - Time of Calculation "Before Aggregation" obsolete in NW2004S
    Also refer to the same discussion here:
    Warning before aggregation is osbsolete
    Hope this helps..

  • Using Characteristic in Calculated key figure

    Hello every one,
    I need a help. Can anyone help me in solving one requirement.
    I want to know if i can use a Characteristic in calculated key figure.
    Thanks in advance.

    Hi,
    You can try to create a formula variable of type replacement path and supply this char to pull the value from. Evaluate this value as a boolean (1 or 0 for if there is a value or not). Then you can create a new formula using this formula variable and your CKF. If the result is 1, then you get the value of the CKF, or if the indicator returns 0, then you get 0 as the result.
    Hope this helps...

  • Using the function SUM() in a calculated Key Figure

    Hi All,
    I need to create a calculated Key Figure and am looking for the function SUM().Can you please let me know where this is present.I have checked under the "Data Functions" and it does not seem to be present there.
    Thanks
    Aravind Pattabiraman

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

  • Dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,
    We are using Oracle 11.2.0.2. We are planning to implement dbms_crypto to encrypt few columns. We clone the data from production to lower environment ( DEV, QC).
    For the lower environments, we do not want to get the sensitive data from production and do not plan to use same key. Rather than getting an error when using differnt key, is it possible to get a different resultset back.
    In other words, we want the implementation to be same across environments but want to use a diffent key in lower environment and get different result (or garbage).
    Any suggestions would be greatly appreciated.
    While testing this logic, I am getting following error when using differnt key to decrypt. It works fine if I use same key.
    Error at line 1
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
    l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw,
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5,
                                             key => l_key);
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw,
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5,
                                             key => l2_key); --**Using different key to decrypt
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;Thank you.

    If I understand what you are trying to do ... and I may not ... it is not going to work.
    SQL> DECLARE
      2   l_credit_card_no VARCHAR2(19) := '1612-1791-1809-2605';
      3   l_ccn_raw RAW(128) := utl_raw.cast_to_raw(l_credit_card_no);
      4   l_key1     RAW(128) := utl_raw.cast_to_raw('abcdefgh');
      5   l_key2     RAW(128) := utl_raw.cast_to_raw('zyxwvuts');  -- alternate key used to attempt a different decryption
      6 
      7   l_encrypted_raw RAW(2048);
      8   l_decrypted_raw RAW(2048);
      9  BEGIN
    10    dbms_output.put_line('Original : ' || l_credit_card_no);
    11 
    12    l_encrypted_raw := dbms_crypto.encrypt(l_ccn_raw, dbms_crypto.des_cbc_pkcs5, l_key1);
    13 
    14    dbms_output.put_line('Encrypted : ' || RAWTOHEX(utl_raw.cast_to_raw(l_encrypted_raw)));
    15 
    16    l_decrypted_raw := dbms_crypto.decrypt(src => l_encrypted_raw, typ => dbms_crypto.des_cbc_pkc
    s5, key => l_key1);
    17 
    18    dbms_output.put_line('Key1 : ' || utl_raw.cast_to_varchar2(l_decrypted_raw));
    19 
    20    l_decrypted_raw := dbms_crypto.decrypt(src => l_encrypted_raw, typ => dbms_crypto.des_cbc_pkc
    s5, key => l_key2);
    21 
    22    dbms_output.put_line('Key2 : ' || utl_raw.cast_to_varchar2(l_decrypted_raw));
    23  END;
    24  /
    Original : 1612-1791-1809-2605
    Encrypted : 3534443342333642353141363846384237463732384636373943374630364234323243334539383042323135
    Key1 : 1612-1791-1809-2605
    DECLARE
    ERROR at line 1:
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at line 20

  • Calculated Key figures using different key figures

    Hi All,
    I want to create a calculated key figure based on Actual and Plan.Actual values are coming from InfoCube,Plan values are loaded from Excel sheet into different key figure in another infocube.I've created a MultiProvider for these Cubes.Now I want to find the difference between plan and actual.So I created a calculated keyfigures based on the key figures.But the Query is giving error ..
    Then the connection terminated..
    Let me know how to do..
    Raji

    What is the error you are getting?
    First do this.
    In the query, filter on only 1 infoprovider. Check the KF's and see if correct and if you get the error. Then, do the same thing, for the other infoproviders. Once you get no errors that way. Remove the filter. See if the KF's are ok and no errors. Then do your calculation.
    Also, make sure in the definition of the KF's, you are filtering each on the right infoprovider. (For instance, KF1 has a filter on infoprovider1 and KF2 has a filter on infoprovider2.)
    hope this helps!
    /smw

  • How to use Restricted or Calculated Key figure with Characteristics?

    Hi,
    Query has characteristics 'Indicator' which has values  'X' and 'Y' depending this value, the Key figure Quantity(which is always +ve) has to be shown on the report either as -ve or +ve.
    Do I use Restricted Key figure if so, how? Or can I manage with a Calculated Key figure?
    Thanks,
    Kamala

    Hi Kamala,
    You can create 2 RFKs each in which you are restricting the KF with char value X and Y. For the one that needs to be -ve, create a CKF with this RKF and multiply it by -1 in the formula. Then you can create a new CKF that will add this CKF and the other RKF.
    Hope this helps...

  • Using Explorer with Calculated Key Figures from BEx (BW 7.31 / BI 4.1)

    I'm looking for suggestions on how to leverage data from calculated and restricted key figures in BEx (from a BW 7.31 system) with Business Objects Explorer (from a BI 4.1 system).  Our current process involves some complicated workarounds and with the implementation of BI 4.1 and I'm hoping to streamline things a bit.
    Here is what I had in mind...
    An information space (indexed daily) sitting on a universe (hopefully UNX) that referred to a BEx query on a multiprovider in BW.  My understanding was that universes would be able to consume BEx queries (including their restricted and calculated key figures) in 4.1.  Based on a recent post (http://scn.sap.com/thread/3417905), it appears that the feature that I was hoping for may have not made it into the GA release.  Obviously, I could move the calculations and restrictions into BW ETL or maybe into the universe, but since that work has already been done and lives in the queries, I'm hoping to use them!  Also, we could use a different tool such as WebI, but at this point the user base is comfortable with Explorer and we would like to continue to use it.
    Suggestions? 
    Thanks!
    -S

    Hi McDowell,
    Regarding to the BEx connection in Explorer, SAP provide two solution
    1. BWA connection
    2. Unv on top of connection
    For the UNV situation, you could use the calculated / restricted key figure in the system but please assgin the aggregation level for them (Database delegate is not supported if I am not wrong)
    Also plese consider two points
    1. Data size (UNV cannot support large data size)
    2. Scheduling (Explorer does not support event trigger? correct me if I am wrong)
    Best regards
    Alex yang

Maybe you are looking for

  • InDesign CS5 Previews in Bridge CS5?

    I have upgraded to CS5 and I have to do a "Save As" to get a preview of the document in Bridge. However, when I go back to it and open it again and close out, I get the CS5 icon instead of the preview. Is there a setting so that I don't have to do a

  • Nokia Lumia 520 data cable removing

    I bought Lumia 520 last week. Haven't installed windows 8 software with my windows 7 laptop yet. but i did connect  using the data cable to transfer some music. After i was done transferring data i found no safely remove hardware option.  So i had to

  • Oracle BPM 12C Jar File Is Missing

    Hi, To install BPM in 12c I am using following commands. CD %ORACLE_HOME%\soa\common\bin set QS_TEMPLATES=%ORACLE_HOME%\soa\common\templates\wls\oracle.bpm_template_12.1.3.jar qs_config.cmd The issue is I could not found oracle.bpm_template_12.1.3.ja

  • R12  re installation

    Hussien: I am going to reinstall R12 using your thread: Oracle E-Business Suite R12 Installation Steps on Windows XP I have followed a note to remove every thing just now. I have a couple of questions as follows: -- I don't have a domain name on my X

  • Changing settlement Profile in an internal order

    Hi Gurus, Can I change the settlemet profiles in an internal order AFTER settlement is done and posted  for some period (say five months)? If not possible what is logic behind. Regards Ganesan