Creating formula in the Query Designer

Hi,
I have a KF which I have to convert in to different unit in the query ( x/data)
The problem is some of my data in the cube is zero (0) and when I use division, it shows me error (red X) in the query output.( Divide by zero)
Is there any way to skip this division if the data is zero? How can I set my formula in the Query designer?
Thanks
M Kumar.

Hi,
Please use the NDIV() or NOERR() function outside of your expression and it will take care of the division by zero.
See here for details:
http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/content.htm
Hope this helps...

Similar Messages

  • Curerency conversion for a Formula in the query designer

    Hi
    I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
    Source Currency = SAR
    Target Currency = USD
    So how can i do the curerency conversion for a Formula in the query designer.
    pls let me kow
    kumar

    Hi,
    If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    Regards.

  • Create Buttons in the Query Designer, is that possible??????????

    Hello,
    When I Start the Query, I want to choose. For Expample:
    For Display the Query with the Rows or not....
    1.Button with Film Production
    2.Button without Film Production
    Can I realize 2 Buttons for that ?`??
    Thanks and Happy Easter..
    Barish
    Edited by: Baris Ozcan on Mar 19, 2008 8:12 AM

    Hi,
    Selections means... your column or row.
    In 7.0 QD .Select your keyfigure from column. right side you can see property window. where you have tab "Display". check that whether it should be "Always show". if it is there, definitely the keyfigure will show the result. and also, if you are not getting any output value, when u r executing the query. check that any filter have u used in Query..
    might be ur query restriction doesn't give any value, that's y ur report looks empty.
    note: there is no Query change mode in BI7.0 query designer, as we have in bw3.5.
    Regards,
    senthil

  • Currency conversion in the query designer level

    Hi
    Iam calculating the 'Financial Loss' in the Formula in the query designer.And it comes in SAR(Saudi Riyals).
    But i want the 'Financial Loss' in USD in the Query Designer. Because i want the USD Financial Loss to be use in some other calculation.
    Please let me know how can we do this one in the query designer. I really appreciate for it .
    Regards
    Kumar

    Dear Ravi,
    Basically there are 2 ways to do it: routine & query level.
    If query level, you need to maintain it first using tcode RRC1, then you use it in your KF in your query. .
    Routine level,
    You can create new KF in info-provider, then in the update rules routine, you can use this function to convert the currency :
    CONVERT_TO_LOCAL_CURRENCY
    Hopefully it can help you a lot.
    Regards,
    Niel
    thanks for any points you choose to assign.

  • Creating customer formula to be used in the Query Designer

    hi,
    How can i code a specific formula to be used in the query designer. As an example, i need to calculate dynamically working days between two dates.
    i tried to find the corresponding BAdl interface with no success..
    Do you have any suggestion ?
    Ludovic

    Hi..
    I have a scenario ...  it may help..
    The group HR administrator wants a detailed line item report that lists all employee absences in a given period. The report is to show the employee number, the absence start date, together with the end date of the absence and show the number of calendar days the employee was absent.
    The good thing about using this technique is that no redesign work is needed from your technical BW team, no ABAP is involved and best of all, it quick and easy.
    Solution:
    For this example I created an ODS object called Absence that holds basic employee information along with individual absence record data.
    Follow the steps below:
         Open the BEx Query Designer and create a new report on your chosen InfoProvider.
                  Drag the Employee, Valid from and Valid to characteristics into the Rows section of the screen.
    If needed, apply data selection restrictions to the characteristics as pop up
         Right click on the Key Figures structure and select New Formula
         In the new formula window right click on Formula Variable and choose New Variable
         The Variables Wizard will launch and will require you to specify the variable details.
    ( Click the NEXT button if the Introduction screen appears )
         Enter the variable details on the General Information as shown in  pop up
    Enter the Variable Name , Description and select Replacement Path in the Processing by field.
    Click the Next Button.
         In the Characteristic screen (pop up) select the date characteristic that represents the first date to use in the calculation (From Date).
    Click the Next Button.
         The Save Variable screen (pop up) displays a summary of the new variable.
    Click on the Finish button to save the variable.
         Repeat steps first four  for to create a second variable for the second date to be used in the calculation.
    In the example shown, the characteristic 0DATETO is used to create the variable ABSEND (Absence End Date)
    Define the Calculation............
                The new calculated key figure will now show in the columns section of the BEx query designer
    excute...
    with regards,
    hari

  • 'Display as hierarchy' in the Query Designer

    Hi,
          Can anyone highlight some points or importance of 'display as hierarchy' in either rows or columns in the query designer. Also could someone put some thoughts on the 'new structure' in the query designer, is it just that we can create some new selection and new formula from the structure or is there any other explanation for its existence. Any kind of explanation would be greatly appreciated.
    Thanks,
    Anjali.

    Hi Anjali,
    display as Hierarchies:
    simply enables you to select and use hierarchies for that InfoObject if available.
    Structures:
    you can create structures with or without keyfigures. Structures give you a great deal of flexibility and consistancy in your reports. Eg. you can create a structure that gives you a drilldown on char selections that are different for each line or column. We use that to "simulate" divisions in a drilldown that we don't have backed up by masterdata.
    Also structures enable you to keep reports consistant by using the same global structure eg. for all Contribution margin reports
    Hope that helped,
    regards,
    michael

  • Fox Formula Variable In Query Designer

    Hi Experts,
    I have created 1 variable in fox formula of type VARV and i want this Variable to show in query designer while creating new Variable so that i can replace the Query Variable With Fox Formula by Using Replacement Path.
    While Creating new variable in Query Designer it is not Showing that Fox Formula variable.
    Because i want to use this in WAD While Executing the Planning Sequence.
    Is there any way we could get That Fox Formula variable in Query Designer.
    Regards
    Girish

    Hi Marc,
    While Creating Variable from Query Using Query Properties it is still not Showing That Variable in Fox Formula.
    And My Requirement was to Replace that Fox Formula Variable With Query Designer Variable.
    Please Suggest any Solution.
    Thanks
    Girish

  • Keyfigure value by comparing 2 date fields, in the query designer.

    Hi all,
    Could any one please intimate, how to display the key figure result with the comparison of 2 date fields.
    We are having "Completed Date" say(CDATE) and "Deadline Date"(DDATE) values in the report as time characteristics, dervied from the CRM system.
    Now we need to compare the values as:
    CDATE <= DDATE, then only consider this under "Meeting Planned Date"(Key Figure).
    Could you please intimate, how to display the key figure value, by using the code at  the query designer level.
    Thanks & Regards,
    A.V.N.Rao

    Hi Rao,
    Simple create two formula variables with replacement path from these two date fileds,then create a formula then do the comparison
    Eg:
    ZVAR_CDATE  WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ CDATE
    ZVAR_DDATE  WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ DDATE
    CREATE A FORMULA FORMULA1: IN THE FORMULA BUILDER AREA DO THE COMPARISON.
    Thanks & Regards
    Ramsthota

  • Error in while Executing Query in the Query Designer

    Hi,
    I  created info Set based two  info object and  three Data Store Objects. and join condition is Left Outer Join.
    there are Business Partner info object, CRM  BP Sales View Info Object and Data Store Objects are  BP: Roles (0BP_ROLE),Partner: Industries(0BP_IS),CRM Marketing Attributes for Business Partner(0ATR_DS01)
    I given some Selection Parameters while executing query in the Query Designer. in That i given city is selection parameters
    and i creted variable for this info object.
    it gives the Error Messages
    Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
    Der Wert "New Delhi " von Merkmal 0CITY40 enthält an der 10.ten Stelle einen Fehler
    it is very urgent , can any one help me regarding this.

    Hi Reddy,
    The Error message in english is this
    While reading the data mistakes have appeared. Navigation is possible
    The value " New of Delhi " from sign 0CITY40 contains a mistake at the 10.ten place
    and i think you need to run the change run and run the report with out selecting the variable option.and navigate in the report by filtering the report for your requirement.
    Try this and let me know.
    Thanks,
    RK

  • How to assign current date/time to a formula variable in Query Designer

    How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
    Thanks

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    Hope this helps...

  • How can i reuse a structure in the query designer in 3.5

    Hi all,
    we are using the version BW 3.5,  now how can i reuse a structure made int he query designer, because i need it in another query, i did the structure and put it a technical name and save, help guys

    HI Richard,
    Create a Structure in Rows/columns and save As it, then in the left Panel of the Query Designer you can see three Folders
    1) Structures
    2) Keyfigures
    3) Dimensions
    then Expand the structures Folder, there you can find your saved structure, Structures are 2 types
    1) With Key figures
    2) Without Key Figures
    If you have the key figures in your saved structure, then you can find it in the subfolder of with Keyfigures, else in the other folder.
    Now you can use this structure by draging in all the queries which are on the same InfoProvider (CUbe. MultiProvider)
    Regards
    ReddY A

  • How to create two structures in query designer?

    Hi experts,
    I got the requirement to create 2 structures in query designer , as far as i concern i got to know that there will be chance to create on one for char and other for key figure,
    is their any chance to create 2 structures on key figures.
    If possible please help me in that.
    Thanks in Advance
    vas

    Hi,
    in Query at a time only 2 structures can be used, even thought there are many structures created on that infoprovider.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/4d/e2bebb41da1d42917100471b364efa/content.htm]

  • Providing access to Variables in the Query Designer

    Greetings experts and fellow consultants,
    I have a simple question, did a search and did not come up with much of an answer.  Currently, we have a system with a role for BI Power Users in order for them to create ad-hoc queries.  An issue we found was that these power users were not able to view variables within the query designer:
    Under the "Characteristic Restrictions" pane, the variables show up as (Display Not Allowed) under their associated InfoObjects.  This is presenting an issue (understandably) and I would like to provide access for these power users to see the variables.
    My question is, are there any circumstances where I would want to restrict which variables are shown to the power user?  Right now, I plan to allow display access to all variables (via S_RS_COMP+S_RS_COMP1 for those informed on Security).  Just trying to brainstorm on whether there might be scenerios where I would want to hide certain variables.
    Many thanks to all opinions, as always!

    Suresh, in my above post I knew how to enable this.  I just wanted to know in regards to security whether there were any exposures.  Apparently, I could not find any and the changes went through without issue.  The way you enable display of variables in the Query Designer is the following:
    S_RS_COMP:
    RSINFOAREA '*'
    RSINFOCUBE '*'
    RSZCOMPTP 'VAR'
    ACTVT '03'
    S_RS_COMP1:
    RSZCOMPTP 'VAR'
    RSZCOMPID '*'
    RSZOWNER '*'
    ACTVT '03'
    Hope this helps.  Of course, adjust the field values are you see fit but the minimum requirement is that RSZCOMOPTP 'VAR' (Variables) and ACTVT '03' (Display).

  • Unable to Create Instance of Essbase Query Designer

    followed by Unable to Initialize Query Designer.Essbase v6.1Excel 97 sp2 iWin NT 4 sp5We are running into this error when trying to launch query designer."Unable to Create Instance of Essbase Query Designer"Query designer is checked in the addins before we try running it. We receive the messages. If we check the addins after we get the messages, query designer is unchecked.The Essbase addin works fine with no issues. Any thoughts on what this might be or how to troubleshoot it?Thanks.Mike

    Update: is it possible that security rights to the Essbase directory would affect the Query Designer? On a machine that it works on, I've noticed that the "xla" file updates each time it is accessed.

  • Some question about the query designer

    hello, dear all,
    I am a new comer of here, and I am intersting in BI, but I have no basic knowledge about it.
    so I just want someone could give me some advice about it.
    our boss need I do the developer about the query designer,  I just have searched in this forum. but nothing founded for I am a new comer here,
    I heard there are some training document of the query designer, could someone give me the URL, thanks.

    Hi,
    Query desinger is used to develop a Query, Query can be created on following data targets
    -Info Cube
    -DSO
    Virtual data target
    -MultiCube
    -Infoset
    -Multiprovider
    We have 5 section in query designer
    - Infoprovider : where we select the data target , on which report to be created
    -Filter : to restrict value at infoprovider level ( if you want data for year 2008, for example)
    -Free Characterstic : this allow you to drill down
    -Columns : char/keyfigs to be display in columns can be added here
    Row: key/char to be display in Rows can be added here
    gv me ur mailid i will let u have Bex manual,
    I would suggest , if you have any IDES ( training ) system , where you can log in and then go to RRMX,
    and try to create new query and add any data target ( which is already created ) and then drag and drop the char/key fig to the required section ,
    save it and execute it .....
    if you play arround and see the output , that would help u to understand how to work with query designer.
    Hope this helps
    Sukhi
    Edited by: Sukhvidner Singh on Nov 4, 2009 5:36 PM

Maybe you are looking for