Formula Evaluation in Query Designer

Hi
In query designer I have Complex formula which is having lot of variables.
My users are saying some values are incorrect in report output
Can any one help how can we find the value is calculated in report output for this formula.
Thanks
Sudhakar.

Hi Sudhakar,
One more way which you can try to find out how the particular Key Figure is been calculated in query designer is as given below:
1) Go to RSRT
2) execute your query with option for Query Display As "List"
3) You will get the query output
4) In this screen, you will get the button "Key Figure Definition" on the top
5) Click on this button and there will be a pop up screen to select "Structure Element 1" and "Structure Element 2"
6) Here for "Structure Element 1" please select the KeyFigure name for which you want to see the calcuation
7) and click on the "Continue" (Here its blue colored icon)
8) After this you will get a screen showing KF value that is calculated by query
9) Drill down the key figure to see "Fixed Fliter" which will show the data selection used to calculate this value. These are nothing but the global filters defined in query
10) Drill down the KF to see the dynamic filter values i.e. selections with which this KF is restricted in query designer
With above analysis you can easily trace out how the particular KF is calculated in query designer.
Regards,
Geetanjali

Similar Messages

  • 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...

  • 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.

  • 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...

  • 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

  • Formula creation in Query designer

    Hi All
    I want to explain a bit more on my requirement .
    I have supplied qty and ordered qty and i have the difference between both which is called as service level as %. there will always be 100% for some suppliers and lessthan 100% . So i want to count only the 100% suppliers and divide by all the suppliers . so that i can get the perfect order . and the formula is below .
    I need to apply a formula line count with 100% / line count in one of my querys how to do it the qury designer . Can you anybody guide how to do it .
    Thanks in advance . I am sorry if i have posted in the worng fourm .
    thanks

    you must be having an  infobject refering to say supplier say supplier no. ( like customer number).
    STEP 1: create a new CKF ( formula in query designer on right columns panel)
    STEP 2: create a formula variable with reference characteristic as supplier no . replacement path replaced with infobject->attribute value - constant 1.
    STEP 3. you CKF  " NO OF SUPPLIERS"  definition would be as below
    supplier counter .
    STEP 4. identifying 100% suppliers.create a new CKF  " NO OF 100% SUPPLIER " ( formula in query designer on right columns panel).
    it definition would be
    supplier counter * ( ordered qty == supplied qty ).
    where supplier counter is formula variable. this will give total counts of supplier where ordered qty == supplied qty.
    STEP 4.
    divide CKF  " NO OF 100% SUPPLIER " / " NO OF SUPPLIERS"

  • Formula Variables in Query Designer

    Hello All-
    I'm using a formula variable in my report which is of type user exit.  In my FM, I am calculation some Sales Growth Analysis based on some rates from the TCURR table.  In short, I am calulating "FX Rate" for each currency (USD, EUR etc) I have in my cube.
    In the end, my e_t_range table will contain an "FX Rate" for each currency...in many cases the table will hold more than one value.  The problem is that my query dumps if I have more than one value in the e_t_range table.  I've used regular user exits before on Chars and I was allowed to have multiple entried in the e_t_range table.  What is the nature of formula variables?  Is it the case that I can only pass one value to my query with formula variables?

    Hi,
    Once Bex 3.5 query is opened in Bex 7.0, you can't open the same query in Bex 3.5. If you are still able to open the query in Bex 3.5 means you have not opened it in Bex 7.0.
    Please check it while opening a query in Bex 7.0. It would ask you question " Do you want open bex 3.5 query in Bex 7.0?
    Hope it is useful.
    Thanks,
    Ashok

  • Formula in BEx Query Designer

    Hi Friends,
    I have a requirement to create a formula, that checks the following condition.
    1) if Keyfigure A is 0 and Keyfigure B is 0 then the Value of this Formula should be null(blank space).
    2) if Keyfigure A is 0 and Keyfigure B is NOT 0 then the Value of this Formula should be 0.00
    i have written the following
    1) I dont know how to display blank space...
    2) (A == 0) AND (B == 0)*0
    Can you please tell me how to achieve this (1) and if the (2) formula is right.
    Thanks in Advance.
    Regards,
    Vinaya Paulraj.

    what product you use, "crystal Report" or wat
    if crystal reprot
    then you can use this formula
    if a=0 and b=0 then null
    else 0
    and you can fix the format of the formula to 0.00
    hope this helps you
    good luck

  • Formula Options in Query Designer

    Hi,
    Can anyone please tell me while craeting a formula we have % option and %A option. Where do we use %A option?
    Thanks

    please go thr these threads
    Percentage Share (%A)
    ● <Operand1> %A <Operand2>
    This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 *
    <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision
    by 0u201D if <Operand2> is equal to 0
    Re: Margin%

  • 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,

  • Query Designer Formula Logic

    Hi
    I have the following data and the status of the formula should be 1 or 0.
    Cancel Date : 05/31/2011
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 1
    Cancel Date : # (no date assigned)
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 0
    Cancel Date : 06/30/2011
    Formula  : cancel date >=today's date                             
    Cancelled(Yes =1/No= 0) : 0
    i tried the following formula in the query designer 7.0 but second condition gives 1 instead of 0.
    DELTA ( COUNT (cancel date >= today's date)).
    I am not able to find a better solution, please suggest.
    Thanks!
    Edited by: bwcrm01 on Jun 1, 2011 6:28 AM

    Hi,
    Here todays date is 06/01/2011 right? Shouldnt then be 1, 0 other way round for 1 &3.
    Cancel Date : 05/31/2011
    Formula : cancel date >=today's date
    Cancelled(Yes =1/No= 0) : 0
    Cancel Date : 06/30/2011
    Formula : cancel date >=today's date
    Cancelled(Yes =1/No= 0) : 1
    Anyways, Cancel Date is present as a Characteristic or KF? If Char, you can create the RKF, add above CKF in a RKF with Cancel Date NE #. This will give 'Blank' not zero when Cancel date = #.

  • 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.

  • Fromula SumGT SumCT in Query Designer

    Hi Folks,
    I have two formulas in the Query Designer.
    Formula A with exception aggregation on Material (Count) and didnot use calculate result as Field ( but it is showing some value in the result(count) ) & Formula B with calculate result as total.
    Now, Want to calculate the Result of Formula A / Result of Formula B.
    Have tried using SUMGT & SUMCT in the Formula.
    i.e, SUMCT 'Formula A' / SUMCT 'Formula B'. O/P is showing Zero.
    How to achieve this.
    Please throw some light in this regard.

    Hi,
    See the Properties... in Formula Collision
    Whenever you define two structures that both contain formulas, it is unclear to the system how to calculate the formulas at the point where both formulas intersect.
    See the below URL in SAP help...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/02223c5f00612be10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/0aec3b6e011341e10000000a114084/content.htm
    Thanks
    Reddy

  • Message in BEx Query Designer Formula

    Hi Experts,
    I need to display message based on the value of the formula result. For Example:
    If K.F1 =<2.5 Then <Message: ODD>
    ElseIF K.F1 >2.5 Then <Message: Even>
    Else
    <Message: Determine the value>
    EndIF
    Thease above messages would be build in the formula column of BEx query designer
    Thanks and really appreciate your response.
    Regards,
    Waseem

    Hello,
    I have done the same funtionality with the help of workbook.
    May be experts can guide us how to display  messages in the formula column of BEx query designer.
    Thanks.
    With regards,
    Anand Kumar

  • Usage of formulas in conditions in BEx Query Designer

    Hi guys,
    does anybody of you guys know, if it's possible to use the results of formulas in conditions? I tried it, but the result of the query was "No applicable data found", but there are data for the selection.
    When I'm defining the condition with the key figure (no restricted or calculated key figure), then the query can be executed.
    In my case, I like to define a condition based on a formula result. The value should only be displayed, when the result is greater than 30.
    Any ideas or are there any bugy in the BEx Query Designer?
    Thanks a lot + best regards,
    Clemens

    Hi Clemens,
    I have created a condition in my own system based on formula and it works perfectly fine. Please check following points in your condition change mode,
    1) Condition is marked as Active.
    2) In the block "Evaluate condition below for" you will have to select "All characteristics in drilldown Independently". If you have selected combination of characteristics then you will have to maintain proper sequence otherwise your condition will not work.
    3) In the next block when you set the condition, click on new, in the first block select your Formula from dropdown and set the proper operator in your case you will have to select "Greater than" in the next column set the value of key figure and just trasnfer it.
    Now you are ready to use the condition.
    Regards,
    Durgesh.

Maybe you are looking for

  • Issue in loading data to BI

    Hi, I will list the steps that I used to transfer data from ECC to BI. I created a characteristic in my infoobject catalog. With master data/attributes. I then created a generic datasource for master data attributes in ECC and replicated it in BI. Th

  • Can somebody help me with drop down box in STRUTS?

    Hi GURUs: I am doing a drop down box with Struts, and I have seen previous post on the forum regarding how to do that. Basically I have 2 classes InquiryAction and InquiryResult.jsp here is the code snippet from InquriyAction public class InquiryActi

  • How to display a linked multi-page pdf?

    I am a DW newbie building a small website for my book design business. I would like to show book design samples as spreads in a multi-page pdf (set up with page display set to two-up)  linked to thumbnail images on a web page. I have created the link

  • Unadjustable Date Stamp

    I need to include a date/ time stamp on a form that indicates when the form was created by the person filling it out. I recall being able to do this with a previous version of Adobe. How can I put in an adjustable date field?

  • IMac shuts down when starting up

    Hi there Wireless keyboard batts ran out, iMac didn't recognise keyboard any longer. Turned iMac off to restart, but only made it to the start up screen with apple logo, then everything shuts down. Can hear clicking noises, and the disc drive trying