2 structures in a query

Hi everbody,
I've created a query that has structures both in rows and columns. The rows structure contains a few selections and a few simple formulas (division of two other elements). The columns structure has 2 selections and a formula representing the difference between those two elements (delts).
Everything works just fine for the selection elements but, when the formulas "meet" I get weird results. I'm thinking I need to use the cell definition to get the expected results but I'd like a confirmation on your side...
thanks,
Andreea

Hi Andreea,
If you will go to the properties of the Formula in the query, you can see option "Eliminate formula collision" under the tab advanced. Here you can define which formula should be taken into consideration for calculation e.g. Formula for which you are looking the properties or competing formula (Row or Column) . There is no need for cell definition.
Regards,
Kams

Similar Messages

  • The structure in the query

    HI,BW experts, I have a question about the structure of the query :is there only one key figure in the query?in my query ,i have a key figure structure already, could I create another key figure structure,and how to ?
    Thanks for your help.

    Hi Cindy
    If your query already has a structure then why you want to create a new one? add new key figures to the exisiting structure.
    If you have to create new structure for key figures then
    GO to Query change in Query designer & in Columns section do right mouse click and select structure. This will add new structure and then you can add new key figures to that if you need.
    Hope this helps
    Regards
    Pradip

  • Netweaver 04s - Use of two structures in the query craeted dump

    I have used two structures in a query, The same query works fine in current BW 3.5 system but in BI 7.O sandbox (copy of prod), it dumps out.
    When I check the query, it does give these message (same as in PROD, where it runs without a problem).
    - Different hierarchies are used for characteristic Cons Group
    - Number variable ZFV_HTES cannot be replaced.
    - Fiscal year variant is to be specified for key figure Cumulative (YTD) Value in Group Currency

    Hi Rakesh.
    Did you get a satisfactory outcome to this problem? Does the current patch of Netweaver 04S cover it?
    Would appreciate your reply, please.
    Patrick

  • Always hided elements in structure (SAP BW query) are "activated" in WebI

    Hello WebI-experts
    We have an interesting challenge to get resolved, hopefully you can help us.
    As datasource we use a SAP query with two structures.
    One structure contains a variable (variable 0CMONTH of character 0CALMONTH) which is only relevant for the initial prompt, e.g.: 03.2010.
    This prompting variable itself has the property of "Always Hide" under Display setting.
    All the other elements of this structure have the setting "Always Show".
    The Universe on this SAP BW query already shows NOT the elements of this structure. It "only" shows the structure itself as dimension (icon).
    When designing a WebI query and executing it the result is:
    Showing the values for all the elements with property setting "Always Show" AND wrongly also the only one with "Always Hide". It is required to exclude the "Always Hide" element of the structure from the reporting view.
    Questions:
    1.) Are there any means to show the elements of the SAP BW query structure in the universe and therefore also in the WebI query? If there are no means....then question 2.
    2.) How can we exclude the "Always Hide" element of the structure from the reporting view?
    Thanks for any advise.
    Chäsitzer

    Hi
    I have altered the SAP BW query in the following manner:
    The "always hided" element in the structure of the query has been erased.
    The current structure only consists of 0CALMONTH variables, 0CMONTH, which itself are off-set ones, e.g.
    STRUCTURE in the query: (consists of 12 months)
    current month (variable 0CMONTH)
    current month -1  (variable 0CMONTH, off-set -1)
    current month -2  (variable 0CMONTH, off-set -2)
    current month -3  (variable 0CMONTH, off-set -3)
    current month -4  (variable 0CMONTH, off-set -4)
    current month -5  (variable 0CMONTH, off-set -5)
    current month -6  (variable 0CMONTH, off-set -6)
    current month -7  (variable 0CMONTH, off-set -7)
    current month -8  (variable 0CMONTH, off-set -8)
    current month -9  (variable 0CMONTH, off-set -9)
    current month -10  (variable 0CMONTH, off-set -10)
    current month -11  (variable 0CMONTH, off-set -11)
    The universe itself consists "only" of this structure, the 12 months off-set variables are not displayed respective editable.
    How can we display the exact 0CALMONTH variable values, counting down from the current month, in our WebI report, e.g.:
    Rows of WebI report SHOULD show:
    Nov 2010
    Oct 2010
    Sep 2010
    Aug 2010
    Jul 2010
    Jun 2010
    May 2010
    Apr 2010
    Mar 2010
    Feb 2010
    Jan 2010
    Dec 2009
    Thanks for your help.
    Chäsitzer
    Edited by: Chäsitzer on Nov 5, 2010 3:41 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:42 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:43 PM

  • Taking display value for calculations using structures in Bex query

    Hi
    I am using Bex analyzer to do a simple report with two key figures ‘Sales’ and ‘Plans’ from cube and two more calculated key figures ‘Abs Deviation’ and ‘% error’. The report displays at category and product levels. Category is higher and one category contains multiple products.
    The simple formulas for the two calculated KF are,
    1. Abs Deviation = Abs (Sales – Plans).
    Abs Deviation is set with the property Calculate result as ‘summation’ to add up Abs deviations at product level to show at Category level.
    2. % Error = Abs Deviation / Plan.
    The issue is with the % Error value at category level. At product level, all the values are showing correctly.
    To illustrate the issue with a simple test case,
    CategryProductSale-PlanAbs Dev----%Error
    C1--P1--100-60---40--
    67%
    C1--P2---50120---70--
    58%
    C1 Total--150180---110--
    17%
    Observe that in the output the calculation for ‘%Error’ at product level is correct all the way. But the summary
    calculation for ‘Error%’ i.e. C1 total which is showing as 17% is wrong. The correct value as per the formula should be 110/180 = 61%.
    SAP, through OSS replied that it is not a bug but the default behavior of OLAP calculation. OLAP processor first calculates the formula for % Error and then shows the display value at C1 total for Abs Dev. Meaning, ‘% Error’ is calculated first and next the summation for Abs dev is displayed. Abs dev 110 at C1 level is only a display value but not the value taken for % Error at C1 level. Instead OLAP calculates the Abs Dev at C1 level by Total sale – Total plan = 180 – 150 = 30 and the % Error calculation takes this 30 value in the formula and gives % Error = 30/180 * 100 = 17% at C1 level. But 17% doesn't make any sense to the user. Further, to display value of 61% at % Error at C1, it is being advised that by defining two structures, I can force the calculation to take display value of 110 in the % Error calculation at C1 level by using the cell editor.
    Has any body tried to achieve similar result as above by defining two structures and cell editor in the query? If so, can you please throw some pointers of how to define two structures in a query and how to force the % Error at category level to take the display value of 110 in the calculation? I have gone through the documentaion on structures and cell editor but the approach is not at all clear.
    Thanks in advance for your suggestions.
    Prasad
    Unilever Asia IT department

    Hi,
    Have u read aabout the Formula Collision.
    Take a look on this link .
    http://help.sap.com/saphelp_bw32/helpdata/en/d2/02223c5f00612be10000000a11402f/frameset.htm
    Read the Formula Collision, and let us know , whether your pb is solved by changing the Formula Collision of % error formula.
    With rgds,
    Anil Kumar Sharma .P
    Kindly assign points , If it really helps you.

  • Multiple Structures in a Query - Is it possible?

    We would like to create two structures that will be used to group two characteristics in the rows. Each structure would contain two selections. In the columns, we have a single key figure of value. In the rows, we have a structure that groups one characteristics (i.e. storage location) into two groups - 'held for blankets' and 'non blankets'. We would like to create another structure containing a special grouping on another characteristic with select Material codes, such as 'strategic materials' and 'non strategic'. We would like to have them in two structures so that we can do analysis on the intersection of the two groups. Can this be done? Query Designer does not seem to allow a second structure.

    David,
    In query we can have maximum of two structures.one in coulumns,one in rows or both in columns or rows.
    A characteristic can't be included in a KF structure and a KF can'be included in a characteristic structure...
    It can't be two KF structures.it can be two Characterstics Structure or one KYF Strycture and one CHAR Structure.
    Hope it helps.
    Thanks
    Mona

  • Copy the structures in a query

    hi,
      Can we copy the structure of one query to another query ?
       If so, please let me know how to do it.
    Thanks in advance.

    Hi,
    If the queries in question are on the same Infoprovider, then you can save the structure as a global structure and use it in both the queries.
    If the queries will be on different InfoProviders, then you would need to copy at the query level using RSZC.
    Hope this helps...

  • Variables and Structure in Existing query

    Hi,
    Where can i see the Variables and Structure in Existing query.
    Thanks
    Priyanka

    Open the Query from Query designer.
    Click on 'Query properties' in tool bar.
    You can see the variables under 'sequence of variables' window.There you can change the Sequence of variables also.
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a569ae09411d2acb90000e829fbfe/content.htm

  • Copy existing structure in the query

    Hello,
    I have couple of existing structures in the query, my requirement is I need to create a new structure similar to the existing stricture.
    Is there anyway to copy the existing structure.
    Please help me.
    Thanks,
    John

    Hi Roberto
    I did like this,
    I have chosen save as option by right clicking the structure and provided tech name and descriptions. It created new structure with the existing fields.
    Thanks a a lot for your help.
    Regards,
    John

  • BRAIN416 InfoObject 1KYFNM is used in both structures of the query

    Hi Expert,
    I have some problem with MDXTEST on BW 3.5 which i select multiprovider to generate MDX Staement but it goes to ABAP Debugger "CX_RSR_PROG_ERROR" and message BRAIN 416 information said "InfoObject 1KYFNM is used in both structures of the query".
    Anyone please explain me what should i do????
    Thank you for your help
    =SJ=

    Dear RajNi,
      In This Multiprovider A, i use only 1 infoset which only 1 ODS B.
      I'm so confuse because i create new ODS like ODS B and do step like Multiprovider A.
    Please help me if you have ever seen like that.
    Many thanks
    =SJ=

  • InfoObject 1KYFNM is used in both structures of the query

    I am getting the error message - "InfoObject 1KYFNM is used in both structures of the query", while executing the query. Can you please help me remove this error and proceed with the query execution?
    Thanks and Regards,
    Sachin Kalani.

    Hi Sachin,
    As the error suggested, make sure that u have used that KF only once in ur Query definition.
    Regards,
    Rajkandula

  • Using several global structures in one query?

    Hello Together,
    I want to use several global structures in a query and group them for instance in the rows. I have tried it out, and it does not seem to be possible.
    Any ideas- can I overgo this problem somehow?
    Thanks,
    Elisabeth

    Hi Elisabeth,
    This should help:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a5632e09411d2acb90000e829fbfe/content.htm

  • Change in global structure in one query

    Hi,
    1. I have some five queries already developed. Here in all the five queries i am using one global structure. I have a requirement tp change the global structure, Now after i change the global structure in one query1 do i need to transport only that query1 or i have to transport all the five queries for the change to get reflected.
    2. There are five workbooks also developed for the corresponding queires.  After changing the queries do i need to update the output result in all the workbooks as well?
    Here in the global structure the keyfigures are replaced with new keyfigures?
    Little confused , need help? Please answer my two questions
    Thanks,
    rani

    >
    rani wrote:
    > Hi,
    >
    > 1. I have some five queries already developed. Here in all the five queries i am using one global structure. I have a requirement tp change the global structure, Now after i change the global structure in one query1 do i need to transport only that query1 or i have to transport all the five queries for the change to get reflected.
    >
    >
    >  Thanks,
    > rani
    If you changed the global structure then transport the structure not the query.
    Go to transport connection in RSA1 choose Query elements -
    >Structures.
    Select your structure and transport.
    That should do.As long as you use "Restore to initial query" in the dataprovider properties of the workbook it should reflect your changes else you need to change at workbook level too.
    Hope this helps.

  • Problem with Queries Structures in Bex Query Designer and Universe Designer

    Hi everyone,
    I have a problem when i try to do a Universe from a Bex Query Designer.
    When I use a Characteristic Restrictions in a Structure, the universe only show me the structure without the objects inside it.
    EJ:
    1) Bex Query Designer
    Colunms
    (Structure) ZSRT_123
                          - (Characteristic Restrictions) Reg Guayana
    >          (InfoObject)     0Product = 'XXX'
    >          (InfoObject)     0Country = 'YYY'
         - (Characteristic Restrictions) Reg Caracas
    >          (InfoObject)     0Product = 'AAA'
    >          (InfoObject)     0Country = 'BBB'
    Rows
    (Structure) ZSRT_456
                   (Key Figure)     Net Sales
    2) Universe designer
    (Class) ZSRT_456
    >(Measure)      Net Sale
    (Class)     ZSRT_123
    >(Dimension)      ZSRT_123
    The universe dont translate the two Characteristic Restrictions in the structure ZSRT_123.
    Any information would be much appreciated. Thank you.

    Hi,
    I assume that you are using BOE XI 3.1 SP2.
    We have added an option in SP2 to generate or not the L00 level.
    Unfortunately this option applies not only on characteristics but also on hierarchies, hierarchies variables and structures: that's the reason why you have no elements belonging to the structure generated.
    I recommend to always generate L00 in order to have your structure generated correctly.
    This issue will be fixed in SP3.
    Regards,
    Didier

  • How to add three columns under a column of Column Structure in BEx Query ??

    Hi all,
        I have created a Structure for Taxes (with 10 rows) under Rows and another Structure for Company under Columns and it has 3 columns like Company A, B & C. Now I want to have three columns (Actual, Forecast & Total) under each company A, B & C. It means it will have 9 columns under these 3 companies.
      The ACTUAL should calculated as:
              Version = 100 and
              Months = Plan Begin Month - 1.
      If the Plan Begin Month is 4 (April) then ACTUAL should be calculated for first 3 (4 - 1) months only.
       The FORECAST should calculated as:
              Version = 699 and
              Months = From 4 (April) to 12 (December).
       'Plan Begin Month' will be entered on the selection screen.
       How can I design this query, PLEASE ?
        Thanks in advance.
    Regards,
    Venkat.

    Hi Ravi,
        Thanks for your quick response.
        The ACTUAL should calculated as:
              Version = 100 and
              Months = Plan Begin Month - 1.
              If the Plan Begin Month is 4 (April) then ACTUAL should be calculated for first 3 (4 - 1) months only.
       The FORECAST should calculated as:
              Version = 699 and
              Months = From 4 (April) to 12 (December).
          I am unable to create the Restricted Key Figure with Version.
         How can I design it, PLEASE ?
    Thanks,
    Venkat.

  • Addtional Structure on InfoSet query of Logical database

    Hi Experts,
    We have a logical database on which we are supposed to create an InfoSet query. We could create the InfoSet query and also the query on top of it.
    We have a requirement to add addtional fiels which are not part of the logical database. The addtional fields are in a strucuture. I added the strucuture using the Extras option, but I need help on how to extract data from this strucuture.
    Can you please help me with a sample code:
    Logical Database in question is - FTI_TR_PERIODS
    Structure to be included is - VTG_IRATE_STRUCTURE
    Field in structure to be included is - PKOND, SKOART
    As this is a structure we cannot right a select statement, and I am very new to abap and require help on how to extract data from the structure.
    Thanks for your help.
    Best Regards,
    Ravi

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost above discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

Maybe you are looking for