Key Figure Restrictions in Query

Hi all,
I've got this scenario on hand:
I want to display a Bex report with the a particular key figure (Actuals) restricted to only specific value COMBINATIONS of two characteristics (Cost Centre and Cost Element). i.e. The restrictions should only apply for each individual combination of the characteristics (e.g for Cost centre = S0561 and Cost Element = 70400 , another combination could be for Cost Centre = S0352 and Cost Element = 70610 ).
The challenge here is that if you restrict the key figure based on the individual characteristics (say, for Cost Centre = S0561 , S0352 and for Cost Element = 70400 , 70610) then it blocks off other figures from characteristic combinations that are should be allowed (e.g. Cost centre = S0561 and Cost Element = 70610 ,  and another combination of Cost Centre = S0352 and Cost Element = 70400).
Any suggestions on how to handle this, typically from a previous experience, will be appreciated.
Regards,
Uche

Hi Uche,
A workaround for this scenario would be to include a hidden keyfigure for every characteristic combination. (If there are not many combinations)
For e.g.
Hidden KF1  Restricted on Cost centre = S0561 and Cost Element = 70400
Hidden KF2  Restricted on Cost Centre = S0352 and Cost Element = 70610
Then another final key figure, which is visible and is a formula KF
Actuals     Formula = Hidden KF1 + Hidden KF2 + ..
Best Regards,
Dabre

Similar Messages

  • Problem with virtual Key Figure in a query

    Hi Experts,
    I would like to share my problem with the virtual key figure in a query:
    I have a query with a virtual key figure and when I eject the query by analyzer, the result sometimes is displayed and sometimes is not displayed (is equal to 0), with the same initials values. And when I eject the query by RSRT always display the result for the virtual key figure.
    Why don't always display the result?
    Thanks a lot

    Hi,
    I think that the problem is the level of support package. We have BI AddOn 7.X (based on 7.20) support package 0.
    What do you think?
    Regards

  • Changing the formula to a key figure on a query

    Hello All,
    I do not have access to BEx. I would please like to know how to change the formula to a key figure "Total $" in a QD Promo Analysis query (technical name - N03_Q_D_N03_SD_502_0003). Will transaction RSRT take me to the query and eventually the formula so I can change it? If so please give me guidance as this is the first time I go into transaction RSRT. If there is another way please also give guidance.
    Thank you and kind regards
    Keith Kibuuka

    Hi Vishvesh,
    Thank you for your response. Maybe access to BEx was the wrong word - I do have access although I was trying to avoid configuring the SAP logon to add this particular client onto because I have not done this before. My boss has helped me and I have now have "access".
    Therefore from the query designer can you please guide me on how to change the formula to a key figure on a query? Input from all people is also be very much appreciated.
    Thank you and kind regards,
    Keith

  • Exception color can not display at another key figure in BEx query desinger

    I have a report requirement, the user want to display the average price on each month ,such as:
    Jan.   Feb. Mar.  Apr. etc.
    100    105    104   95   ....
    and the user want to compare each other months with Jan's price.
    they want to display the exception color when the rise or down rate greater or less than 5%.
    Now ,I can only change the output structure such as:
    Jan.  Feb. Rate2-1                 Mar.  Rate3-1                 etc.
    100   105   (105-100)/100=5%  104    (104-100)/100=4%  ....
    Now I can set Exception on the formula Rate2-1 Rate3-1....
    But the Exception color can only display on Rate2-1,Rate3-1...
    and Not the Keyfigure Feb. Mar...
    I am using the BI 7.0 and the new Query Designer.
    Who can help me to solve this question .
    Thanks.
    Yours Youming.Zhao

    Hi,
    its simply not supported for BEx Analyzer. Exception reporting on another key figure is only possible for Web Reporting.
    Check this actual SAP Help Link:
    [Restrictions in the BEx Analyzer|http://help.sap.com/saphelp_nw70/helpdata/en/45/5038f28cce08d2e10000000a11466f/content.htm]
    Sorry that i dont have a better answer
    Cheers

  • Key Figure Calculation in Query

    Gurus,
    How do i calcculate below  in query  basically i have 3 KF as dates below and want a CKF or formula variable
    which calculates A - (IF B Not Empty then take B  or else take C.)
    Z = A - if (B != " '', B, C)
    A = Key Figure
    B = Key Figure
    C = Key Figure
    thanks

    HI Zuben,
    To acheive this
    calculates A - (IF B Not Empty then take B or else take C.)
    Z = A - if (B != " '', B, C)
    A = Key Figure
    B = Key Figure
    C = Key Figure
    Try this !!!!!!!
    If u create a  CKF,u will have operators in it,in that choose Boolean Operators,again in that chose
    1)is not equal to
    and
    2)Equal to.
    for ur calculations.
    Z= Calculated Key Figure.
    Z= A - (B NE 0)B + ( B EQ 0)C
    Case One -- B NE 0
    Z= A-(1 * B)+0
    Z = A-B
    Case Two -- B EQ 0
    Z= A-(0 * B)+(1*C)
    Z = A-C
    I guess this is your requirement.
    Rgds
    SVU

  • Sort Key Figure in a Query

    I have a situation where I have to use a query (not possible to use a view - long story, but limitations on views make it so)
    I have a simple query that has products on rows, and Month and Sales Value on the columns.
    I want to sort the Sales value descending.
    ie
    product   Sales Value/8.2005
    prod1      500
    prod2      400
    prod3      300
    How do I tell the query to sort on the Key figure value descending as shown above???
    I have managed to achieve this by putting a condition on that returns the top 100% of the query, however there must be a better way??? (although I am slowly losing confidence in SAP's thinking (or lack thereof))
    Thanks in advance for any assistance.
    Regards
    Richard

    Hi JKyle,
    Thanks for your response.
    I am aware that you could sort by using the Properties on the context menu of the key figure, but this is no good for a default view without hacking the URL, which becomes quite tedious. (My users are not capable of entering even the simplest of variables, let alone using a context menu to sort every time they run a report.
    You can also bookmark once it has been sorted, however have had problems with bookmarks disappearing in the past, and so I don't really consider this to be a solution either.
    I guess I thought that this was such a fundamental requirement that it would be included, and that I was missing some setting somewhere when developing the query.
    Thanks again for your response.

  • Problem with a key figure restriction

    Hi,
    I have a problem with one key figure in report: in infocube, this key figure is aggrigated for all the profit centers (summation). In infocube, there is a value '150' for each profit centers (100 pieces) and in the report it is counting 150*100=15000. However, it shouldn't count the sum of all entries in the infocube but show only one value in the report which would be '150'.
    I think this should be possible to do but I just don't know how. Hope somebody is able to help me. Thanks in advance.

    Hi,
    If the values are same for all profit center then change the Profit center infoobject property in the query design to show the maximum values for the 'calculation result as' parameter
    Regards,
    Vishwa,
    Edited by: Vishwanath H.E on Sep 3, 2008 9:19 AM

  • Convert characteristic values in key figures in a query

    Hello all,
    i have a query which provides some key figures and also some probabilties (defined as characteristics). I want to multiplicate the probabilities with the key figures and therefore I need to convert the characteristic values for the different probabilities in key figures.
    What is the best wys to do this.
    Any help would be great.
    Best Regards,
    Stefan from Munich/Germany

    Stefan,
    You need to create a formula variable of your characteristic.
    In the Create Formula screen right mouse click on Formula Variable and go through the create process.
    The characteristic needs to stay in your query (you can change it's display to No Display) to pass it's value to the formula.
    Once you have done this you can use the formula Variable in any other formula.
    Regards
    Gill

  • Number of key Figures used in Query

    Hi,
    I would like to know the number of queries in a Query,
    Is there any way to find out this?
    We have nearly 100 queries, and we were asked to find out the top 5 queries in terms of number of key figures.
    Thx.

    Hi Thejo,
    There is no direct way to do this using another BW query simply because the data is not stored in either Masterdata Info Objects/CUBE ODS. They are stored in BW system tables which are not directly accesible by any queries to build using the Query Builder.
    Try to locate the system table that holds these Info (Keyfigures + Query Name) and do ABAP Query instead.
    Regards,
    Jkyle

  • Lock key figure with a query

    Hi BW gurus,
    I have created a calculate key figure 'CKF1' in the development system and added to a query 'Q1'. The same calculated key figure is presnt in the production system and is being used by some queries.
    As we know that BW handles the duplicate calculate key figures on its own. However, to transport Q1 and CFK1, the system requires that SFK1 should be locked by/for Q1. I need help in doing that.
    One liner: How to lock CKF1 with Q1?
    Thanks.

    Hi Anooj,
    this is my understanding :: u made  ckf1 as global.if u make it as a local  then other queries can't use this.
    regards
    sridhar

  • Problem in display of char. and key figure for yearly query

    Hello all,
    I got a query in which i have to do restriction on
    Calendar Day/Month in Rows under Material which is a Characteristics
    So it should be
                                                               PACKAGE QUANTITY
                                            JAN  FEB  MAR   APRIL.......DEC
    PACK1
    PACK2
    PACK3
    PACK4 for current year
    PACK4 for prior YEar
    Now the months display is not pre decided, it can be anything as per the input of user.
    So i have to restrict it on Calendar month for Material twice
    In current year , just introducing the Interval range variable
    In previous year, same restricition with offset -12
    Now the problem is while displaying it shows
                                           JAN'06 JAN'07  FEB'06 FEB'07  MAR'06 MAR'07........ 
    PACK1
    PACK2
    PACK3
    PACK4 for current year
    PACK4 for prior YEar
    Which is not desirable.
    I only want value for Jan in one column
    and for previous year and current year in different rows thats it.
    If i remove Calendar year/month from columns there is no way I CAN DISPLAY MONTHS .
    How to achieve this.
    Please suggest.

    Kartikey,
    Rusty's suggestion wont work - using two characteristics for year and month will have the same effect as the position you are in at the moment.
    ie..
    2007     Jan.07     Feb.07    Mar.07   Apr.07
    2006 -
    Jan 06  Feb 06  Mar 06
    If you have the posting period of 01 - 02 - 03  (just the period number only, no year) then your query will display
    2007-01-02-03-04
    2006-01-02-03-04
    Regards
    Gill

  • Benchmarking Key Figures in a query which is posted in a web template.

    Hi All,
    has someone experiences with benchmarking in a query?
    What possibilitys do we have?
    We want to show the following:
    The query has in the rows the characteristic "sector" and in the collumns several figures. We navigate in this report via "filter and drilldown according to" to the next lower level. What we want to show is a benchmark of the figures of the lower level to the result of the first level. Example: The result of "sector1" is 150, "sector2 100" and so on and we navigate from sector1 to the belonging lower level "segment A, B, C, D". Now we want to see the information of the result of the filtered sector (150) as a benchmark to the associated segments A, B, C, D.
    I know it is a bit complicated but perhaps someone has a good idea for a solution?
    Regards
    Mirjam

    Have you found the solution? I have a similar kind of requirement.

  • 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

  • How to show filter values of restricted key figures in BEx Analyzer?

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

  • Restricted key figure

    HI,
    can any body explain me what is the difference between Restricted key Figure and the filter option in BEX reporting.

    Hi Ali,
    If you want restrict particuler key figure based on characteristic value, that you have to go for restricted key figure.
    For example: You have calender year month data from 2005 to 2006.An dyou have also have sales data for the period.
    If you want see the say some feb 2005 to may 2006.
    than you can use restricted key figure to see the values.
    where as Filter will show the values which you have filtered irrespective of key figure (only characteristic value).
    just go throw the below description.
    Hi,
    Restricted key figure:
    Use
    You can restrict the key figures of an InfoProvider for reuse by selecting one or more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures, or key figures that are already restricted.
    Procedure
    Defining a new restricted key figure
    1. In the InfoProvider screen area, select the Key Figures entry and choose New Restricted Key Figure from the context menu (secondary mouse button).
    If a restricted key figure has already been defined for this InfoProvider, you can also select the Restricted Key Figures entry and then choose New Restricted Key Figure from the context menu.
    The entry New Restricted Key Figure is inserted and the properties for the restricted key figure are displayed in the Properties screen area.
    2. Select the New Restricted Key Figure entry and choose Edit from the context menu (secondary mouse button.
    The Change Restricted Key Figure dialog box appears.
    You can also call the Change Restricted Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Calculated key figure:
    Use
    In the Query Designer, you use formulas to recalculate the key figures in an InfoProvider so that you can reuse them. Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
    Procedure
    Defining a New Calculated Key Figure
    1. In the InfoProvider screen area, select the Key Figures entry and from the context menu (secondary mouse button click), choose New Calculated Key Figure.
    If a calculated key figure has already been defined for this InfoProvider, you can select the Calculated Key Figures entry and, from the context menu, choose New Calculated Key Figure.
    The system adds the New Calculated Key Figure entry. The properties for the calculated key figure are displayed in the Properties screen area.
    2. Select the New Calculated Key Figure entry and, from the context menu (secondary mouse button), choose Edit.
    The Calculated Key Figure dialog box appears.
    You can also call the Change Calculated Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Formula:
    Use
    You can recalculate the key figures in a structure using a formula. You can include basic key figures, restricted key figures, and calculated key figures in the formula definition.
    Procedure
    Defining a Formula
    1. If the query does not yet have a key figure structure, create a New Structure in the Rows or Columns of the Query Designer by highlighting the row or column directory using the secondary mouse button and selecting New Structure from the context menu.
    2. If the structure does not yet contain any key figures, use drag and drop to transfer a (basic) key figure of the InfoProvider into the directory of the new structure.
    3. Select the structure directory, and choose New Formula. The New Formula entry is inserted and the properties for the formula are displayed in the Properties screen area.
    4. Select the New Formula entry and, from the context menu (secondary mouse button), choose Edit. The Change Formula dialog box appears.
    You can also call the Change Formula dialog box from the Properties screen area by choosing the Edit pushbutton.
    Regards,
    Shailaja

Maybe you are looking for

  • Can I get my money back for an app that I didn't like?

    Apparently I purchased the wrong app and I would like to get my money back, is that possible?

  • Factory preset for imac

    i have just bought a brand new imac intel.it was the display model and i want to know how to reset the settings back to the factory standard.someone has configured passwords etc on it that i cant get rid off. can anyone help me please. I want it to s

  • Export PDF with Notes

    Hi Experts I have comments(Notes) in my INDD file. Now I want to export the INDD files as PDF with Comments(Notes). Is there anyway to do this? I am using ID CS3 WinXp. Thanks in advance Regards arul

  • How to removed dashed lines from "Page Break View"?

    Hi, In Excel 2010, I found that once "Page Break View" is selected, there will be dashed lines across the view even after returning to "Normal" view. These dashed lines can be distracting. Is there a way to remove them? Bob

  • Challenging SQL...

    Hi Everyone, I'm have a table that has the following kind of structure. Table X cont_id Number rid Number cont_nm_flg Char(1) bus_nm_flg Char(1) bt_add_flg Char(1) Upd_date Date Now the table will have multiple cont_id and also duplicates.I have to r