How to build Restricted Key figures in Universe?

Hi All,
I have been trying to find a way to build restricted key figures at BO universe level.
I have gone through the best practices documents and the mdx syntax documents.
Even though building Restricted key figures at universe level is not a recommended approach, we had a requirement to achieve it.
I have tried the below possilbe ways but could succeed only half way.
Please help me and others who has been trying to build the restricted key figures at universe level by guiding us.
Eg: A restricted key figure A1 is based on a basic key figure A, with a restriction on cost element  C (detail object,cost element key)
I have built A1 with below syntax and  could get correct result in web intelligence report
Select block of  A1 measure object in designer
<Expression>@Select(Key figures\A)</Expression>
Where block of A1 measure object in designer
<FILTER KEY="[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="ABCD/1234567"/></CONDITION></FILTER>
But when I build another restricted key figure A2 out of basic key figure A with restriction on the same cost element key field but a different value like  ="ABCD/678910".
Both A1 and A2 give correct results individually when they are dragged in a web intelligence query.
But when both of them are required to be dragged in the same query , no result comes because of the conflicting where clauses,as cost element key can't have both values at same time.
Then I tried building A1 in below ways, as mentioned in the mdx examples document
Trial 1:
Select block of  A1 measure object in designer
<Expression>(@Select(Key figures\A),[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value].[ABCD/1234567])</Expression>
Trial 2:
Select block of  A1 measure object in designer
<Expression>(@Select(Key figures\A),[0COSTELMNT].[ABCD/1234567])</Expression>
Trial 3:
Select block of  A1 measure object in designer
<Expression>([Measures].[D787I2PW5YTGMTKL83RWBH80W],[0COSTELMNT].[ABCD/1234567])</Expression>
All the above expressions parse OK at universe level. Trial 1 gives a database error while running the query.
Trial 2 and Trial 3 nither throw any error nor return any result for A1.
If any one has tried and succeeded in implementing restricted key figures at universe level,please provide us some inputs.
Thank You.
Naresh

Hi,
this seems to be identical to this one:
Re: Condition Object for previous month data on current month input
I would suggest you close one of them as two entries asking the same is not a good idea
Ingo

Similar Messages

  • How can we restrict Key Figure in the BI System

    Hi All,
    Can any one explain How can i restrict key figures in BI system.
    So when i create a query a specific user  can only execute it if a specific key figure is a part of query otherwise he is not allowed to execute a query.
    For Example:
    A user TEST123 is allowed to execute a query with keyfigure Quantity he is not allowed to execute the query if any other key figure is present in the query
    Regards,
    Deepak

    Hay Diogo,
    Bravo...
    Your suggetions always work for me. The scenario was that
    A user TEST_PLD08 should only allow to see output for the querys which consist of the keyfigure PLDQUACMP and not for other keyfigures while other user TEST_PLD07 is allowed to see the output for  querys consist of any of the keyfiguers.
    so I have assign a authorization profile  PLD_TEST07 to the user TEST_PLD08 with KeyFigures authorization as mentioned below and it is working fine
    I     EQ     :
    I     EQ     PLDQUACMP
    You can forward me more scenarios like this if you can think of more it will be really helpful for me
    Regards,
    Deepak

  • How to copy restricted key figures in query designer ?

    hi,
    i have created a query in query designer (BI 7.0).
    How can i copy existing restricted key figures ? i can't find anything. i always have to create a new one, and then i have to do all the things like 'details of selection' etc.... manually. that CANNOT be, there MUST be a way to copy those key figures.
    any ideas ?
    best regards, Martin

    Hi Martin,
    Restricted key figures can be stored on the infoprovider basis . For which right click on the key figure (left hand side pane ), Select the necessary key figure and assign the restriction through characteristics combination, and give it a restriction and save it . Next tiem when you create query on the same info provider it should appear in the left hand side as readymade reusable piece .
    Hope that helps.
    Regards
    Mr Kapadia

  • How to make restricted key figure global  (There are same topics)

    Gurus,
    Sorry to post this question again but I was not happy with other topics answers. I am developing a SAP BSC (Balanced Scorecard) version 6.0. In order to generate results I need to use 'Calculated Key Figures' (SAP BSC does not read Restricted ones). No problem so far. However I have a query from the Controlling area of my company where all financial KPIs are restricted in Rows (right side of Bex) instead under 'Restricted Key Figures' area on the left panel. They are not global. It is a lot of them. My option, for while, is to recreated all of them on the left side and than transform them in 'Calculated Key Figures'.
    There is other way to 'move' these 'Selection' to make them global on the left side? This would save me two weeks.
    Kind Regards,
    Gilson Teixeira

    Hi,
    In Query Designer,in left panel....expand 'KEY FIGURES' tree and rght click on 'Restricted Keyfigures'--->new restricted KF.
    regards
    MR
    Message was edited by: M.R Sashi

  • Restricted key figure in universe

    Dear Friends,
    We are using SAP BOE XI 3.1 while our datasource is SAP BI 7.0.
    i am creating a universe and i want to create on calculated measure like.
    Sales value where Division = Fruit.
    we already have Sales value as measure
    and Division as charaterstic.
    How can i achive this scanario.
    Regards
    Naeem

    Hi,
    In Sales Value measure object
    Where Clause:
    TableName.Division='Fruit'
    Otherwise Create a Prompt:
    Fruits.Division IN @Prompt('Choose the Fruit Name:','A','Sales/Fruit',Mono,Constrained,Not_Persistent)
    simple try this in Web I  Sales Value with above prompt.
    All the Best,
    Madhu...

  • How to define restricted key figure in IR

    Hi Friends,
    I have a senario where I need to display current month data and the previous month data.
    Eg:
    Suppose 5th month sal is 5000/-
    Now I need to display 4th month salary also ,Kidly let me know hw can i caluclate 4th month salary.
    Thanks,
    Guna

    Not sure what your problem is?
    is this a Query Problem, a Caclultion Problem or Presenting Data problem?
    Do you have Data for the prior/4th Month?

  • How To Transport a Restricted Key Figures

    Dear all,
    can u plz tell me how to transport Restricted key figures for the first time.
    i mean shall i create new package or shall i use the existing package only?
    Regards
    venu

    Dear Venkat,
    In qaulity the sales value for a week is showing correctly where as in the production the sales value is showing only for one material that to in the -ve...we have so many materials....
    When i open a Query Designer in quality the system is giving a status message
    <b>[E865(RSO)]ERRORS: System is not set to Changeable - objects are not changeable</b>
    [<i>b]When i click the documetaion on the error message the following is appearing:</b></i>
    Errors: System is not set to changeable - objects are not changeable [E865(RSO)]
    Diagnosis
    You want to change objects although the system setting is "Not Changeable".
    System Response
    The objects cannot be changed.
    Procedure
    Change the setting for the system or client to "changeable". You can do this using transaction SE06 or SCC4.
    Venu

  • 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

  • How to create Calculated/Restricted Key Figures in AO

    All,
    In our project we are consuming Bex Queries for AO Analysis. In these  we have lot of calculated/restricted key figures. In bex we can restrict 2 characterstics to one Keyfigure, So can we able to create calculated/restricted KF in AO
    Regards,
    John

    Hello Tammy,
    We are having a reqauirement in which we have 5 Bex queries built on the same infoporvider and we are trying to consolidate all the 5 queries to one single generic Bex query or two. So in AO we would like to consume this query and build different AO workbooks to meet all the old 5 queries requirement.
    So as part of this process, I would like to know can we create calculate/restricted KF's in AO , that way i can make a better decision to create them in Bex VS AO.
    Thanks for your inputs in advance.
    Regards,
    John
    Message was edited by: sunny johnson

  • How to Create a Restricted Key Figure in BO Webi Report

    Hi Experts,
    Please tell me How to Create a Restricted Key Figure in BO Webi Report.
    Thanks in Advance.
    Regards,
    Rafi

    Hi,
    1. Define a new measure in the designer.
    2. In the select clause give the reference to the key figure on which restriction to be applied.
    For example
    @Select(Key Figures\Number of Records)
    3. In the where clause, give the MDX expression for the filter to be applied.
    For example
    <FILTER KEY="[0PURCH_ORG].[LEVEL01]">
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT CAPTION="HAS"/>
    </CONDITION>
    </FILTER>
    Regards

  • How to find which Restricted Key Figures are using a specific hierararchy??

    HI Experts,
      I am updating a very important hierarchy which is used in many queries and in many Restricted key figures. Is it possible to find in which Restricted Key Figures this specific hierarchy is used??
    Thanks in advance.
    Meyling.

    Hi
    I was able to find a solution
    I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
    field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases. 
    When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
    year.
    Tom

  • How to delete a restricted key figure in a multiprovider

    Hi all
    I used transaction RSZC (for the first time) to copy over restricted key figures from and info provider to a multi provider.
    This worked but somehow it copied over each restricted key figure twice.
    I have right clicked on the ones I don't want and clicked on delete but it doesn't delete them.
    any ideas ?
    thanks in advance

    Thanks to you all for your help
    It was my fault, I had them in structures that I'd copied over so that's why it wouldn't let me delete them.
    I found this out when I used RSZDELETE, thanks for that
    Sandra

  • 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

  • Multi provider objects and restricted key figure definition

    I have the following scenario:
    1. I have a multi provider which is used as a template to build a second multiprovider the difference being one of the part provider cubes is replaced by a new cube
    2. There is a query built off the original multi provider which consists of a restricted key figure.  The definition of the restricted key figure is as follows
        Characteristic 1 - restricted to records with value 'A'
        Characteristic 2 - restricted to records with value 'Blue'
        Key Figure - Total Amount
    3. If I go to the original multiprovider and look at how the characteristics are identified and the key figure assigned the details are as follows
         Characteristic 1 - identified from all part providers including the part provider to be replaced
        Characteristic 2 - identified from all part providers including the part provider to be replaced
        Total Amount - assigned from two part providers (which are also involved in the identification of   Characteristic 1 and 2)  not including the part provider to be replaced
    4. In the new multi provider the details are as follows
    Characteristic 1 - identified from all part providers excluding the replacement part provider
        Characteristic 2 - identified from all part providers excluding the replacement part provider
        Total Amount - assigned from two part providers (which are also involved in the identification of   Characteristic 1 and 2)  not including the part provider to be replaced
    My thoughts are that it does not matter that Characteristic 1 and 2 cannot be identified from the new part provider since as long as the two part providers which are used to assign Total Amount are available in the new multi provider the values shown from the restricted key figure will be the same.  Is this correct? Thanks

    Hi,
    Yes this is correct. As long as you are reporting on Total Amount, the replacement cube will not make a difference because you never identified total amount from it. Did you face any issues?

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

Maybe you are looking for

  • Why Does my itunes not install it says that it has not been modified

    hg

  • Urgent need for Adobe Reader for Windows Phone 8

    Dear Adobe! Please help us all Windows Phone 8 users and tell us what is your current status with WP8 reader, and when it will be released in the WP Store? Please speed up the development and note that there are many of us who have changed their mobi

  • Opening PDF's in Illustrator - Digital signature Issue

    Having an Issue with Digital signatures... Currently we are opening up PDF's into Illustrator and changing some art,  the Digital signature is not showing but its appearing again when the file is made back into a PDF. Would like the Digital Signature

  • Installing/Using Tiger with Classic

    Hello: I would like to know how to install Tiger and still keep Classic on my iMac. I currently have 35.55 GB available. I would also like to know how to use Tiger & Classic together (switch back & forth) on the same iMac. Thank you.

  • What is this little AS2 code in AS3?

    Hey guys! I got something to embed HTML with it's pics and text and stuff... But this is in AS2.0 and I would need it in AS3.0.. I was checking the AS2.0 migration on Adobe website, but I can't find / don't know some things.. What I got in AS2.0: fun