Restricted/Calculated Key Figures in Query vs MDX?

Hello All,
We are embarking on our first project utilizing SAP BW as the Data Warehouse and Web Intelligence as the presentation tool.
We plan on creating the universes on BW Queries.
What are the pros and cons of using Restricted and Calculated Key Figures in the query versus creating them in the Universe?  Also from a performance impact point of view if there is any?
Best Regards,
Dan Krieg

Hi Dan,
I would suppose that there is no big influence on performance. If the calculation for the calculated key figures are very complex I would propose to calculate them on query level. So its easier to use them also in other environments.
Please take into consideration that OLAP universes are not supported in Crystal Reports. More information you find in the thread [OLAP universes and Crystal Reports|OLAP universes and Crystal Reports;.
Regards,
Sebastian

Similar Messages

  • Restricted & Calculated Key figures and Structures

    Hello Gurus,
    I'm using a BW Query to create my universe and all I see is a class called Key Figures and few objects. I don't see my restricted and Calculated Key figures.
    Also I want to understand how are the Structures in BW Query brought into Universe? All I see is a column class and row class with corresponding objects in it.
    Environment: BO XI 3.1
    Appreciate your help.
    Regards,
    Vijay
    Edited by: vijay dwivedula on Jun 12, 2009 7:46 PM

    Hi Ingo,
    Sorry for getting back a little late on this issue. I've been trying to fix other issues. I'm creating my report out of BW Query and I'm not able to see all the Restricted Key Figures. Also when I try to create my report out of existing key figures and verify the data with BW analyzer the data seems to be different.
    What happens is in my universe I've two classes naming Rows_xyz, Column_abc etc and there are like 25 objects in Rows_xyz when there are supposed to be like 60 key figures and in Column class I have a single object. When I pull in this coulmn obect and pull like 3-4 key figures (which I made sure have data from BW Query Analyzer) doesn't return any data. It doesn't even throw an error as No data to fetch.
    I took the MDX Query that is generated by this report and ran it on the backend and see that there is no data even there. But from the BW Query Analyzer I can see data for this Column and the key figures that I pulled in the report.
    Thank you for your help
    Vijay

  • Subject: Restricted/Calculated Key Figure

    I am writing a query on 0TCT_C21.  In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D. Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN, so it will give total process chain run time. How can I do that?
    I setup a Restricted Key Figure, which restricts Duration to all Process Types except CHAIN, but since filtering on PROCESS TYPE CHAIN has already been done, it is showing me process chain run time as 0. Is there a way to do total of all process types even though I have placed a filter?
    Thanks a lot,

    hi,
    Your query seams to have contradictory restrictions.
    Your Statement: "In my Characteristic restriction, I am restricting Process Type to u201CCHAINu201D".
    You have already restricted teh query with the Process type "CHAIN" and OLAP will take this as Global filter.
    But your next statement:
    "Now I want to setup a key figure (it can be calculated or total) which will sum process chain duration (i.e. run time) for all the process types except CHAIN,"
    By this you want to have key figure with Process Type " Chain".
    This CKF/RKF will be considered a Local filter.
    The global filter will take preference and The report will fetch the data with Process type " CHAIN " Only .
    So after that when your local filter applied on RKF this will 0 as an output.
    My suggestion is:
    Restrict the Key Figures with the process types as and when required.
    Means the key figure value you want to show only for CHAIn and NOT for chain needs to be identified and developed.
    Please modfy the requirement to avoid contracdiction of filters.
    Thanks
    Mukesh

  • Calculated Key Figures in Query Designer - translation

    Hello Experts,
    I created  a few Caclulated Key Figure in the Query Designer. They have a GUID and a text description.
    I would like to know:
    1) How these CKF are represented in ABAP on the system and where I can find them - some database table  ?
    2) If I want the description to be available in many languages how can I handle this ?
    Thanks a lot
    Rado

    Check this
    Tables analysed by analyze_rsz_tables
    Khaja

  • InfoSet - Calculated Key figures in query

    Hi
    I created an InfoSet  from two cubes, and a query to report from the InfoSet , I noticed that the query displays the keyfigures twice, e.g., I have gross sales in both cubes so it appears on the left side of query designer twice. When I created the InfoSet  I turned off these key figures but they still appear on the left side of the query and doubled.
    Any suggestion?

    This might be b'coz you didn't select which infoprovider the Key figures should be picked from.
    Hence it's select both the infoprovider and displaying the values twice.
    Regards,
    Hima

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

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi,
    I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers.
    I do not know if this might cause performance issue in the query. At the moment, I am thinking of creating a new OPEX cube and load only those 30 GL Accounts, 300 cost  centers and Amount. and  include OPEX  in multiprovider in order to get OPEX
    amount in the report.
    whats the best solution - creating OPEX restricted key figure or OPEX cube ?
    thanks,
    Bhat

    I think you should go for cube as all the restrcited key figure are calculated at OLAP runtime so it will definitely affect the query performance.There are a lot of costcenter for which you have to restrict it so definitely during the runtime of query it will take a lot of time to fetch tha data from infoprovider.Its better that you create a cube with the restrictions and include it in MP.It will definitely save a lot of time during query execution
    Edited by: shyam agarwal on Feb 29, 2012 10:26 AM

  • Creating Query in Production with Calculated key figures

    Hi BW Experts,
    Can u pls let me know that in case of Production System when we are allowing users to create reports with Adhoc Web Query Designer and using CKF + RKF
    (Calculated key Figure) which is already transported to Production in a specific Package, Is Production system will allow to save report?
    Pls sugges how to solve this problem ..to give permission for users to create reports in production server with CKF RKF?
    Thanks in advance

    rsa1 -> transport conection -> object changeability button -> Set query elements as everything changeable.
    If you want to refine this you have to do by authorizations.

  • Problem in Calculated Key Figure in BEx 7.0

    Hi All,
    In Bex 7.0
    We have a requirement where we need to display a key figure which is having unit price of an Article. In our InfoProvider we have Article, Store and Date and the report is based on Article. As we have to display only the latest price we have created a RKF by putting a restrcition of the latest date in the date range on the the unit price key figure. But still unit price is getting aggregated over stores.
    For example if there are 10 stores and the unit price of an article is 5, then data displayed is 50 and not 5.
    We tried to create a Calculated Key Figure using the above RKF and an exception aggregation Average of all detailed value that are not zero, null or error on reference characteristic 0PLANT. Its working fine when the query is restricted to one or two Articles. But for all the articles it gives the following error messages.
    1. Error while reading data; navigation is possible.
    2. Error occurred during parallel processing of query 17; RC3
    3. Error executing physical plan: AttributeEngine: no 6952
    4. Error reading the data of infoprovider ZXMSC01$X
    5. Amount of data that is to be read from the BIA server is too large
    6. The following error 6952 occurred in BIA server
    7. Error executing physical plan: AttributeEngine: not enough memory;BwPopMerge pop1(setIsLastMerge(1)),in executor::Executor in cube: p03_zxmsc01
    Can anyone tell me the solution for the above error. Or if there is a workaround to our requirement.
    Regards,
    Sachin

    Hi,
    Could be a memory issue.
    One of your cube in on BIA which is causing the Problem.
    So executing the query in RSRT by selecting Do not use BIA index option.
    If the query is executed with out any issue then take the cube out of BIA and push it back.
    Hope it helps.
    Regards,
    Raghu
    P.S : Also please let us know if this query is live and it is an issue that you are facing after executing it properly for few days.
    Or this is a new query created and testing now and in the process got this error?
    Edited by: Raghu tej harish reddy on Sep 24, 2009 5:53 AM

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • Calculated key figures Vs local formula

    HI,
    I am having 4 queries on a cube.
    i am now using calculated key figures instead of local formulae.
    I want to know "which is better in performance wise/ or may be pros and cons of using each one."
    Can any one clarify me.
    I know that
    1.when we select the option Calculation after aggregation will improve performance.
    2.we can do some more things only with Cal. Key Figs using formula variable.
    Here my concern is not that.
    I am concerned about general case like -
    i have to add, multiply or divide some direct key figures and use some data functions like nodim, NDIV0 functions.
    Thanks in advance.
    Regards,
    Raghu

    Hi Raghu,
    Formulas cannot be directly reused, but if they are saved to a global structure, then the structure may be reused. If you are creating a calculation that will be widely used, it is best to create it as global...this helps a lot when you need to revisit the definition, and make changes as one chnage is reflected in all queries.
    However, there are some functions like SUMCT, SUMGT, SUMRT, %CT, %GT, %RT which are available only to the formulas (local), so if you need to use them, you cannot use a CKF.
    In addition to the differences, A formula can only work on other formulas/selections already in your query (in the same structure as your new formula), while a calculated key figure can only work on other key figures, calculated key figures or restricted key figures. However both can use formula variables.
    CKF are calculated at the time of loading data.
    Your Formula calculates at the time of running the query.
    Hope this helps...
    Regards,
    Yokesh.

  • Problem saving queries with calculated key figures

    Hello Experts,
    I am analyzing this problem since many hours during the last weeks and I don't know, what else to do.
    The problem is saving a key user query containing a calculated key figure in the production system (BW 3.5 SP SAPKW35015). The Error 'The query could not be saved due to a problem in transport' occures.
    If I exclude the KF from the query, saving is possible, so the calculated KF must be the source of the problem.
    The system is set to not changeable, but the 'Object Changeability' of 'Query Elements' in 'RSA1' --> 'Transport Connection' is set to 'Changeable Original'. If I set this option to 'Everything changeable', saving of the query works, but this is not possible in production, because transported standard queries would also be changeable.
    For saving queries, die authorization object S_RS_COMP and S_RS_COMP1 is included completely with *, but this does not help.
    I also transported the query and the KF again from development system ... no change, same problem.
    I found the SAP note 533413, but what does this mean? "This problem can only be solved in the next BW release ..." I heard from colleagues, that BW 7.0 has the same problems.
    Does anyone have an idea, how to solve this problem?
    I would be very thankful for any reply...
    Hannes
    Edited by: Hannes Heidrich on Jun 23, 2008 12:07 PM

    Thank you for your answer, but I have set the Object Changeability to Everything Changeable and restricted the user with S_RS_COMP. So only certain query names can be used and changed. Experiences from collegues said, that deleting and transporting again would not help.
    Best Regards,
    Hannes

  • Addition of Key Figures in Query Produces incorrect Results

    Hi,
    I have a query with a globally defined structure of Restricted Key Figures. These are mainly G/L Account Balances from R/3.
    When I create a global Calculated Key Figure the sum is incorrect (ie does not match R/3) despite the fact that the individual restricted key figures match perfectly.
    The only inconsistency is one or 2 of the RKF's are + ve in R/3 but - ve in BW.
    Would really appreciate some help on this.
    Thanks a lot.

    Hi All,
    Thanks for your replies.
    Paul B - I tried your recommendation and it did not work. I only set the result to summation nothing else.
    Bjorn - I tried what you said but that didnt work either.
    Venkat - I thought about this but I have about 30 + Calculated Key Figs and over 100 Restricted Kfs and a fair amount have -ve signs. Do I have to do this for all ?
    Regards

  • Diff between Calculated key figure and new formula 6extra functions why

    Hi Friends
                  In BEx query designer we have Restricted key figure & Calculated key figure. In the case of Ristricted Key figure And new selection the difference is Global and local.
    But if we come to Calculated Key figure and New Formula the difference is same global and local. But in New formula we have 6 extra function. My question is does is there any certain reason for this or SAP AG not be able to develop those functions
    Thganks & Regards
    Bramhanand

    Hi Surendra thank you for your reply.
    But i am not asking difference between calculated key figure and New formula.
    What i am asking is in the case of Restricted Key figure And new selection the difference is Global and local.
    But in Calculated Key figure and New Formula the difference is same global and local and in New formula we have 6 extra function. My question is does is there any certain reason for this.Why not SAP AG is not included the new formula functions in Calculated key figure.
    Thanks & Regards
    Bramhanand

  • 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

Maybe you are looking for

  • Oracle 10.2.0.2 installation in hang

    We are installing EP 70 over Win2003 R2 64 bit Enterprise Edition on a server with XEON CPU's. THe server is a node on and MSCS cluster. The installation of the latest Oracle patch 10.2.0.2 is hanging. The Oracle Installation windows does not says 'F

  • Trouble using Safari on iPad Air

    Hey guys. I'm having trouble with my iPad Air. When I'm online using a web page, safari just closes down on me out of the blue and I lose all my info. At first I thought the problem occurred with one particular page, but then I got the same problem w

  • Fetch data from prod servers

    Hi all, can anyone help me in developing package with below requirement: requirement  Excel sheet contains all the  emp_ids ..these emp_ids should be searched in Emp DB and return the output to an new excel sheet. Excel sheet Emp _ID 111   222 33  --

  • TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1'] is undefined

    I keep getting this message when trying to open Firefox. I've seemed to fix it somewhat because now firefox's adress bar isn't all messed up and what not. (It wouldn't search by clicking enter and looked awful.) What can I do so that I don't have tha

  • Sales order driven PO but a non third party scenario

    Hello All, Trying to work through a scenario which is as follows: We are doing a VMI like scenario. Customer sends requirements and a legacy planning system sends the  PO to ECC which sends it to the supplier on behalf of the customer. However unlike