Cell Definition in Query Designer

Hi,,
Can anyone will tell me the real time use of cell definition option in query designer.
Thanks and Regards.
Anjali

Anjali,
You can use cell definitions when you want to overwrite the value of a particular cell.
For this you need to have an identification of where the cell intersection takes place. So for defining cell definitions its mandatory to have two structures in the report.
Now coming to the scenario,
You have GL accounts in the rows structure and the key figures amount, deductions and some others.
Rows-----Amount--
Deductions
1001--20000--
100
1002--15456--
4363
1007--64334--
252
1005--36643--
34
1111--43436--
343
This is what the report displays for a particular year the user enters e.g 2007.
But for a GL account 1005 the user wants to display the amount for the last fours years.
The out put for amount for the GL account 1005 displays only 2007. The requirement is that it should display the summed up values of 2007,2006,2005,2004.
To get this out put we go for cell definitions and in the intersection of the 1005 GL account and amount we define a cell definition. Based upon the requirement we define the cell definition...
Hope this helps you.......

Similar Messages

  • Cell definition in Query Design within Bex Analyzer

    Hello,
    I would like to use special cell definition to visualizing the difference row definition between 2 columns (last year and actual year). With "Cell Definition" function in Query Design within Bex Analyzer there's a option to select a new restricted key figure for a related cell. But as a result I just can see a star (*) against a result number in that field. Do you have an idea, how can I solve this problem?
    Thanks and Regards,
    Nuran

    Hi again Dirk,
    there's not a unit problem. We use 2 different restricted key figure definition for a same row. The first restricted (or can be decribed as calculated key figure) key figure must be used in the first column to represent the value of the last year. And at the same row with usage of same text (for example: cost of goods sold)the second restricted key figure should be used to show the value of actual year (B2:costs in euro). The problem is the key figure definitions are totaly different; they're using different account groups etc. Cause of, I wanted to use cell definition function. In the first value field (B1) should be shown first key figure but I just get star (*) and a wrong value in the formula field of excel (between the toolbars and the result area).
    Thanks for your reply.
    Nuran

  • Formula Logic for Dates in the Cell Editor in Query Designer

    Hi All
    We are on BI7. (This is in the Cell Editor in Query Designer)
    I am trying to create a formula in one cell that enters a date based on the following logic (Lets call this formula A):
    I also have a placeholder "Cell reference" for a Date in another cell in the Cell Editor (Lets call it B).
    I also have two other dates in seperate cells in the Editor (Lets call them C and D)
    What i need to do is check that either C or D are not blank i.e one at least has a date and if so enter the date that is in B in A.
    My formula logic in (Cell A) at the moment is as follows:
    ( Cell C <> 0 ) OR ( Cell D <> 0) * Cell B
    When I run the query It is coming back with either a 1 or  0 depending if there is a date in C or D.
    What I want it to do is to display the actual date of  'Cell B'  in 'Cell A' if  ( Cell C <> 0 ) OR ( Cell D <> 0)
    If the value of B is blank ie no date I also want A to be blank i.e not equal zero or a blank date ie 00/00/0000
    Example 1
    Cell A    08/09/2009
    Cell B    08/09/2009
    Cell C   15/03/2010
    Cell D
    Cell A should = 08/09/2009 as there is a Date in Cell C or D and if so enter the date of Cell B in cell A
    Example 2
    Cell A   
    Cell B    08/09/2009
    Cell C  
    Cell D
    Cell A should = BLANK as there is a NO Date in Cell C or D
    Example 3
    Cell A   
    Cell B  
    Cell C   15/03/2010
    Cell D
    Cell A should = BLANK as there is a No Date in Cell B although a Date in cell C or D.
    Thank you for assistance in advance
    Kind regards
    Stevo

    Hi there,
    It seems you have done almost everything...
    What it seems that is missing is probably the cell reference for Cell C and for Cell D, or did you forget to mention it here?
    So here it is the big idea:
    - In the Cell Editor of the query designer, create a new cell reference for Cell C, let's name it ref_cell_c;
    - In the Cell Editor of the query designer, create a new cell reference for Cell D, let's name it ref_cell_d;
    - In the Cell Editor of the query designer, create a new cell reference for Cell B, let's name it ref_cell_b;
    - In the Cell Editor of the query designer, create a new formula for Cell A, let's name it form_cell_a;
    The form_cell_a should be created by the following:
    ( COUNT(ref_cell_c) + COUNT(ref_cell_d) ) * ref_cell_b
    So COUNT(operand) returns 1 if operand is different of 0 else it returns 0; So if ref_cell_c has any valu or ref_cell_d has any value it should return the value of ref_cell_b.
    Please note that with this formula, if you have values in both ref_cell_c and ref_cell_d this formula returns 2 * ref_cell_b, which is not what you pretend, I'm assuming you'll have value only for the following combinations:
    ref_cell_c has value but ref_cell_d don't have any
    ref_cell_c don't have any value but ref_cell_d has a value
    ref_cell_c don't have any value neighther has ref_cell_d any
    Diogo.

  • Structres and cells in Bex query designer?? urgent plz

    hi experts,
    could you please give me the useful info. regarding structres and cells with the examples.
    thanks in advance
    regards
    vadlamudi

    1. In the Query Designer, choose Cells (open) from the toolbar or use the menu option under View to reach the Cell Editor functions.
    2. You can now use four different functions.
    New Selection
    u2022 Select a cell in the Cells dialog box, and use the right mouse
    button to choose New Selection.
    u2022 Define the required selection.
    u2022 Enter a description for the selection and choose OK.
    New Formula
    u2022 Select a cell in the Cell dialog box, and use the right mouse button to choose New Formula.
    u2022 Define the required formula. Enter a description for the formula
    and choose OK.
    New Cell Reference
    Each cell that you define can be reused in formulas. If you want to reuse the value of the implicit generic cell definition that automatically occurs at the intersection of two structure parts of a query, select this cell in the Cell Definition dialog box, and choose New Cell Reference using the right mouse button. The description arising from the two structure parts
    automatically appears in the cell. You can now refer to this cell.
    Additional cells
    Click on the cell adjacent to the Help Cells and choose the required option if you need additional cells for auxiliary selections or formulas which are not already included in the query structure you have defined from the construction of rows and columns.
    Ashok

  • Cell Reference in Query Designer

    Dear Experts
    I am using cell definitions in my report I used Selections and Formulas in a cell.
    Now i want to use cell reference,
    can any one provide step by step procedure for creating cell reference in a query designer.
    Regards
    Supraja.K

    Hi,
    Define Cell References
    To define a cell in the table as a reference for subsequent use in formulas, select the cell and choose New Cell Reference in the context menu.
    Give the cell reference a unique description (Column Name/Row Name for example) so that it can be quickly identified. Change the description in the Properties of the Selection/Formula dialog.
    The cell reference is flagged in the table using the  symbol.
    Define Changes to Basic Key Figures
      1.  To calculate changes to the basic key figures, place the cursor in the relevant cell, choose New Formula from the context menu and define the cell using the cell references as operands.
    Define the formulas for the cells in the Reporting Period column as follows:
    Reporting Period / <Key Figure from the Rows> - Comparison Period / <Key Figure from the Rows>
    Define the formulas for the cells in the Comparison Period column as follows:
    Comparison Period / <Key Figure from the Rows> - Second Comparison Period / <Key Figure from the Rows>
       2.  Give the formulas a unique description (Column Name/Row Name for example) so that they can be quickly identified. Change the description in the Properties of the Selection/Formula dialog.
    The formulas are flagged in the table using the  symbol.
    Define Cells...
    You can define formulas and selection conditions explicitly for cells in queries with two structures. In this way you can override the cell values that are created implicitly from the intersection of the structure components. This function allows you to design much more detailed queries.
    Define Cells... is only available for queries with two structures. For queries with only one structure, the symbol is deactivated.
    If one or more exception cells have been defined for a query, this is shown by the  symbol on the status bar of the Query Designer.
    New cell reference
    You can use any cell that you define in a formula. If you want to reuse the value from the implicit, generic cell definition that is automatically created at the intersection of the two structural components of a query, select this cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Cell Reference. A description taken from the two structural components now automatically appears in the cell. The  symbol shows you that a cell reference exists for this exception cell. You can now reference to this cell. That is, you can reuse the implicit cell definition and do not have to create these values manually in a new selection.
    Regards,
    Marasa.

  • Cell Defination in Query Designer

    Hi, Gurus,
    Acn any one explain wht is cell dfination and for wht we r  uing in query designer...............
    Regards,
    Ramakrishna K

    Hi,
    Defining Exception Cells
    Use
    When you define selection criteria and formulas for structural components and there are two structural components of a query, generic cell definitions are created at the intersection of the structural components that determine the values to be presented in the cell.
    Cell-specific definitions allow you to define explicit formulas, along with implicit cell definition, and selection conditions for cells and in this way, to override implicitly created cell values. This function allows you to design much more detailed queries.
    In addition, you can define cells that have no direct relationship to the structural components. These cells are not displayed and serve as containers for help selections or help formulas.
    Prerequisites
    The query contains two structures. You can define exception cells only for queries which have two structures. You can use the one structure for characteristic values and key figures for the other. You can then define cells if these prerequisites have been met.
    A cell is the intersection between two structural components. The term Cell for the function Defining Exception Cells should not be confused with the term Cell in MS Excel. The formulas or selection conditions that you define for a cell always take effect at the intersection between two structural components. If a drilldown characteristic has two different characteristic values, the cell definition always takes effect at the intersection between the characteristic value and the key figure.
    Procedure
    In the Query Designer toolbar, choose Define Cells... to reach the cell definition functions.
    New selection
           1.      Select a cell in the Cell Definition dialog box and, from the context menu, choose New Selection.
           2.      Define your selection by dragging a key figure and the characteristic values by which you want to restrict the key figure (using Drag&Drop) to the right-hand area of the New Selection dialog box. See also Defining Selections
    You can use characteristic value variables instead of fixed characteristic values.
    -         If you want to change an existing variable, select this variable and, from the context menu, choose Edit. The SAP BW Variables Editor appears. For more information, see Changing Variables in the Variable Editor.
    -         If you want to define a new variable, select the characteristic value and, from the context menu, choose New Variable. The SAP BW Variables Wizard appears. For more information, see Defining Variables with the Variable Wizard.
           3.      Enter a description for the selection.
    You can use Text Variables in the description.
           4.      Choose OK. The cell contains the description of the selection. The  symbol shows you that a selection exists for this exception cell.
    New formula
           1.      Highlight a cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Formula from the context menu.
           2.      Define your formula using the operands and functions available. See also Defining Formulas
           3.      Enter a description of the formula.
    You can use Text Variables in the description.
           4.      Choose OK. The cell contains the description of the formula. The  symbol shows you that a formula exists for this exception cell.
    New cell reference
    You can use any cell that you define in a formula. If you want to reuse the value from the implicit, generic cell definition that is automatically created at the intersection of the two structural components of a query, select this cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Cell Reference. A description taken from the two structural components now automatically appears in the cell. The  symbol shows you that a cell reference exists for this exception cell. You can now reference to this cell. That is, you can reuse the implicit cell definition and do not have to create these values manually in a new selection.
    Functions of explicitly defined cells:
    Select a defined cell and choose the required function from the context menu (secondary mouse button).
    ·        Edit
    ·        Delete
    ·        Where-Used List
    Before you delete a cell, you can check for the formulas in which the defined cell is used in the where-used list.
    ·        Properties
    Choose Properties if you:
    -         Want to change the description of the cell.
    -         Want to change the highlighting of the cell.
    -         Want to hide the cell. That is, if you do not want to see the values of the cell.
    Help Cells
    Choose Help Cells, if you require additional cells for help selections or help formulas. You can use the functions New Selection and New Formula in the context menu to define help cells that are not displayed in the query to serve only as objects for help selections and help formulas.
    For example, you can define an invoice in a help cell and use this in a “real” cell to calculate a duplicated invoice.
                                a.      Right-click on the empty cell next to Help Cells to get to a context menu. From here, choose New Selection.
                                b.      Use Drag & Drop to drag the Invoice key figure into the right-hand area of the New Selection dialog box.
                                c.      Enter a description.
                                d.      Choose OK. The cell contains the description of the selection. The  symbol shows you that a selection exists for this exception cell.
                                e.      From the context menu for the required cell of the query, now choose New Formula.
                                  f.      Drag the cell you have just defined, which you can find in the Operands window, under Cells, into the Formula window using Drag & Drop. Click on the button twice.
                                g.      Enter a description.
                                h.      Choose OK. The cell contains the description of the formula. The  symbol shows you that a formula exists for this exception cell.
    In the help cells that are already defined in the context menu, you can:
    ·        Edit the cell definition
    ·        Delete the cell definition
    ·        Display the where-used list for the cell
    ·        Change the description of the cell under Properties.
    Hareesh

  • Cell definitions with Query formulas

    I have a query with cell definitions used.
    My problem is when I use a formula in one of the original query columns, it ignores the cell definitions and considers the orignal columns definitons.
    My understanding is that cell definitions overwrite the original query column defintion by default.
    The only way I can think of it, is that I should do all my formulas in the cell definitoins editr for all affected cells (one by one).
    Anyone had a similar problem.
    your help is appreciated.
    Thanx in advance

    I'm not sure if i understood correctly, you have the a formula defined in query columns let's suppose ab, and for the same formula intersection in the cell defnition you have another formula bc.
    But the query is returnign the result of a*b ? Am i correct in understanding ? If this is right, then why do you have calculations in both the places....

  • Can I copy cell definition in Bex design ??

    Hi, Experts,
        Now I have to user cell definition, but all of cell definition are similiar. but I failed to find the way to copy the existing seletion to new cell.
       so I had to define them one by one, it's really stupid work.
    Thanks a lot

    hi Jie,
    how are you doing ?
    the copy functionality seems will come with nw2004s
    compare the doc between bw 3.x and nw2004s
    http://help.sap.com/saphelp_bw33/helpdata/en/cb/89fa3a0376a51fe10000000a114084/frameset.htm
    ...Select a defined cell and choose the required function from the context menu (right mouse button).
    ¡¤        Edit
    ¡¤        Delete
    ¡¤        Where-Used List
    Before you delete a cell, you can check for the formulas in which the defined cell is used in the where-used list.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cb/89fa3a0376a51fe10000000a114084/frameset.htm
    Select a defined cell and choose the required function from the context menu (secondary mouse button).
    ¡ñ     Edit
    ¡ñ     Cut
    +¡ñ     Copy
    ¡ñ     Paste+
    ¡ñ     Remove
    ¡ñ     Where-Used List

  • BEx Query Cell Definition (If ..then...else with AND)

    Hello Experts,
    I am struggling with a requirement which I need to define in the Cell definitions in Query designer. I have tried going through the numerous posts regarding this if..then...else in SCN but were of no help to me.
    My requirement is as follows:
    if expression1 then result1, else if (expression2 AND expression3) then result2, else (expression4 AND expression5) then result3
    I tried to define this in the cell as below:
    <expression1> * result1 + (<expression2> AND <expression3> ) * result2 + (<expression4> AND <expression5>) * result3
    but somehow it does not work.
    Any pointers of how to achieve this?
    Thanks.

    Hi,
    If you are getting 'X' then this may be related with the dimensions you use in comparing variables. Try the whole formula such as
    (nodim(var_1) > nodim(var_2) * nodim(kyf_1)
    "then try seperating the if else statements into different cells" : for example try adding a formula for
    each item in your formula (one for buchungsperiode, one for buchungsperiode ein gabe etc. I mean you can find the formula vaiable or key figure that causes 'X' in the results by seperating the formula into the items of the formula.
    Regards
    Yasemin...

  • Query Designer writeing formula takes very long time

    Experts,
    When i try to write a formula. The query designer is taking very long time to navigate.
    One formula is taking 20 mins to write.
    1. I have upgraded my laptop memory to 2 GB of Ram
    2. I am on 7.10 SP4 Patch 1. Had the same issue with the previous versions.
    Please suggest a resolution.
    The QD has tested my patence. I am sure no body wants to create a query for 2 days. There has to be a problem somewhere causing this.
    Thank you.

    Vinod,
    Save the query and then exit BW sessions, also restart your system.
    It might be a problem with main memory of your laptop or BW server load.
    But 20mins is too long for any kind of definition in query designer.
    Please check these things, perhaps it helps.
    Thanks,

  • Cell definition choice in Query Designer is inactive

    In the Query Designer the choice "Define cells" is inactive, or grayed out. Why is this? Is there a global setting or does it have something to do with the query itself?

    Hi TMV,
    if you want to see the "cell " option in active mode , first u must have two structures.
    one is charactersitc structure and on key figure.
    Just go throw the below description.
    Hi,
    just go throw the below description:
    In the Query Designer, choose View ® Cells from the menu bar to reach the functions of the cell definition. The Cells screen area is displayed.
    New selection
    1. Select a cell in the Cell screen area and choose New Selection with the secondary mouse button. The new selection that is not yet defined appears in the cell.
    2. Select the new selection and choose Edit from the context menu. The Change Selection Cells dialog box appears. Make the basic settings on the General tab page.
    3. Use Drag&Drop to define your required selection by dragging a key figure and the characteristic values by which you want to restrict the key figure to the right-hand area of the Details of the Selection dialog box. See Defining Selections.
    You can use characteristic value variables instead of fixed characteristic values.
    - If you want to change an existing variable, select the variable and choose Edit from the context menu. The variables editor appears and you can change the settings.
    - If you want to define a new variable, select the characteristic value and choose New Variable from the context menu. The new variable is displayed. Choose Edit from the context menu of the new variable. The variables editor appears and you can define the settings.
    For more information, see Defining Variables.
    4. Enter a description for the selection.
    You can use text variables in the description.
    5. Make any necessary settings for the properties of the selection on the other tab pages. See Selection/Formula Properties.
    6. Choose OK. The cell contains the description of the selection. The symbol shows you that a selection exists for this exception cell.
    New formula
    1. Select a cell in the Cell Definition dialog box and, using the secondary mouse button, choose New Formula from the context menu. The new formula that is not yet defined appears in the cell.
    2. Select the new formula and choose Edit from the context menu. The Change Formula Cell dialog box appears. Make the basic settings on the General tab page.
    3. Define your formula using the operands and functions available. See Defining Formulas.
    4. Enter a description of the formula.
    You can use text variables in the description.
    5. Make any necessary settings for the properties of the formula in the other tab pages. See Selection/Formula Properties.
    6. Choose OK. The cell contains the description of the formula. The symbol shows you that a formula exists for this exception cell.
    New cell reference
    You can use any cell that you define in a formula. If you want to reuse the value from the implicit, generic cell definition that is automatically created at the intersection of the two structural components of a query, select this cell in the Cell screen area and, using the secondary mouse button, choose New Cell Reference. A description taken from the two structural components now automatically appears in the cell. The symbol shows you that a cell reference exists for this exception cell. Now you can reference this cell. You can continue to use the implicit cell definition and do not have to manually generate this value using a new selection.
    Functions of explicitly defined cells:
    Select a defined cell and choose the required function from the context menu (secondary mouse button).
    &#9679; Edit
    &#9679; Cut
    &#9679; Copy
    &#9679; Paste
    &#9679; Remove
    &#9679; Where-Used List
    Before you delete a cell, you can check for the formulas in which the defined cell is used in the where-used list.
    You reach the properties of a defined cell by selecting the defined cell. In the Properties screen area you can also make changes such as:
    &#9679; Changing the description of the cell
    &#9679; Changing the highlighting of the cell
    &#9679; Hiding the cell ( if you do not want to see the values of the cell)
    Help cells
    In the Help Cells area you can define additional cells for help selections or help formulas. You can use the functions New Selection and New Formula in the context menu to define help cells that are not displayed in the query to serve only as objects for help selections and help formulas.
    For example, you can define an invoice in a help cell and use this in a “real” cell to calculate a duplicated invoice.
    a. Using the secondary mouse button, click on the empty cell next to Help Cells to reach the context menu. From here, choose New Selection.
    b. Use Drag&Drop to drag the Invoice key figure into the right-hand Details of the Selection area.
    c. Enter a description.
    d. Choose OK. The cell contains the description of the selection. The symbol shows you that a selection exists for this exception cell.
    e. Now choose New Formula from the context menu of the required cell of the query. The new formula that is not yet defined appears in the cell.
    f. Select the new formula and choose Edit from the context menu.
    g. Use Drag&Drop to drag the cell you have just defined, which you can find in the Available Operands window under Cells, into the Detail View window. Click on the button twice.
    h. Enter a description.
    i. Choose OK. The cell contains the description of the formula. The symbol shows you that a formula exists for this exception cell.
    Result
    You have defined one or more exception cells for a query.
    Regards,
    Shailaja

  • Authorization in BEx Query Designer: "read only" for definitions of variables

    Hello,
    I`m developing a concept of authorizations for key user who should be able to maintain certain
    objects in the query designer. For other objects they should have access “read only”.
    The users have authorizations  to  design new queries.  They should be able to use existing variables
    (SAP Business Content ( 0*) and customer variables (z*). On this point, I have a problem: in the selection window of the query designer there are only buttons to create, to delete and to edit a variable.
    The user must have authorizations for changing, although he just wants to look for the definition
    of a variable (if he wants to see their basic or global settings before using the variable).
    I can´t find a possibility to switch from “edit” to “read only”.
    The users should only see and apply variables from others (SAP, collegues), but he mustn´t be able to
    change them.
    The user needs the following authorization objects:  S_RS_COMP , activity =02 (change), also
    authorization object S_RS_COMP1. If I give the users only activity 03 (display),
    the user get the message: “display not allowed”.
    Is there any possibility to give a key user the authorization to display all variables with
    their definitions?
    Best regards
    Ricarda Seyb

    Hi raghukan,
    This is may be due to the authorization but still you can check the consistency check for these queries using RSRV.
    Regards,
    Amit

  • Can we see value of CKF in exception cell in query designer-please reply

    Hello all,
    I am defining a query in query designer in which i am using the exception cells, I am having two structures in this query. Now at the intersection of these two structure on one particular line I am trying to define the properties of that cell. I selected new selection and after that I added the calculated key figure that I had created. So should that cell show me the value of the calculated key figure (that is what I thought, that if I can put my CKF in that cell it will show me the value for that CKF). I am seeing different results.
    Is there any way you can actually show the value of calculated key figure in that particular cell.
    Thanks in advance,
    Raj

    Hi Raj,
    You can add Calculated key figure,RKF and even single key figures .The cells are independent of each other and that should not be an issue.
    Whatever the key figure is in the cell it should show that value.
    Just check again whether you have put any key figure into the selections of the structures
    There should be no key fgures into selctions.
    Hope it helps
    Thanks

  • Cell definition in BEx query processed in WEBI?

    Hello,
    We have defined cell definition in Business Explorer query. This query is processed by WEBI. My Querstion is: Does WEBI consider the cell definition from BEx Query?
    Thx for answer.

    Problem solved

  • Cell Definition in the query

    Hi Experts,
    Iam new cell definitions in the query. can anyone please explain an easy example scenario using cell definition and the reason why we go for it eventhough we can do all the filters in the query definition windows as well.
    Thanks,
    DV

    Before you create cell, you need to have two structures only then the cell icon will be enabled.
    The value of the cell is dynamically getting calculated using formula, example,.. in your struct:
    KF
    PLANT1-----10
    PLANT2-----20
    But you wanted to get plant1 divided by Plant 2 and vise versa for the other plant, you can achieve this only by using cell.
    After creating the two structures, then the cell icon will be enabled once you double click that, that is the time you can do all the manipulation for the cell.
    hope that helps.
    Thanks.
    Wond

Maybe you are looking for