Formula Problem in BEx

Dear All,
I am using BEx Query Designer to make a query.I view the report using browser. I have 2 keyfigure fields "price" and "forecast quantity". I have to arrive at "forecast Value" = price * forecast quantity using formula in Query designer. Although for each material this proves correct in report material wise. If I see the report customer-wise a customer who has bought 10 materials first the prices are added up andthen the forecast quantity is added up and then the sums are multiplied to get forecast value which is wrong.
Illustration :
For Customer 1 :
                Quantity    Price     Value(Quantity * price)
Material1   | 2           | 10        | 20
Material2   | 3           | 10        | 30
Material3   | 5           | 10        | 50
Material4   | 7           | 10        | 70
Total         | 17          | 40        | 170 = Correct value
But if I see report customer wise I get the value as 17 * 40 = 680 which is wrong.
Is there any way when I see an aggregation of materials the calculation in formula column first multiplies individual rows and then add the rows to give me final value?
Regards,
Ratish
[email protected]

Hello ,
           Right click on the calculated key figure select properties enhanced and change to Before aggregation , now the result is calculated correctly.
But if you use before aggregation, the cubes aggregates are not used, so this will have negative effect on performance , this property is applicable to query level key figures.
hope it is clear
assign points if useful

Similar Messages

  • Ad Hoc Formula Definition in BEx Web

    Hello,
    I´m searching how to use the smart-input / AdHoc Formulas within the BEx Web (in BEx Analyzer it is not a problem).
    I found following statement:
    http://help.sap.com/saphelp_nw70/helpdata/en/a4/eb1442be645133e10000000a155106/frameset.htm
    Release 7.0 Support Package Stack 14
    I got exactly this system status in my test system, but I could not manage to execute the adhoc formula feature in a query (I don´t have the context formula within calculations and translations) - like it is described here:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/0a20fc60585bebe10000000a1553f7/frameset.htm
    Is there something else I got to take care of? Some system setting? Also I got the SAP GUI 710.
    Can anybody help me?
    Best Regards,
    Sandra
    Edited by: Sandra Schmidbauer  on Jul 1, 2008 5:57 PM

    Hi,
    I just found out that there is a different in step 5 of the Define Exception Wizard between an ad hoc exception created in BEx Web Analyzer and an exception created in Query Designer.
    Step 5 is to set characteristic restriction.
    I was not aware there is a different between exceptions created in Query Designer and BEx Web Analyzer.
    Exception created In Query Designer: In step 5, it stated that "For all characteristics, the exception has no restrictions as long as none of the following settings are selected"
    Ad hoc exception created In BEx Web Analyzer: In step 5, it stated that "For all characteristics, the exception affects only the results as long as none of the following settings are selected"
    If you have filters applied to some characteristics that are not drill down/across in the query result, you must include them in the characteristic restriction of the exception.  Otherwise, the query result will not be affected by the exception.
    E.g., Drill down by Plant, filter Fiscal Year by 2008.
    In step 5 (of ad hoc exception), must include both Plant and Fiscal Year in the characteristic restriction.

  • Problem in BEx analyzer output in BI dev and BI Quality

    Hi All
    I am facing a problem in BEx analyzer output in BI Dev and BI Quality server where the query is make on BI infoset.
    When i am executing the query in BI dev server then it is giving the output result but when i tried to executing the BI query in BI quality server the i got 'No available data found result'.
    I have also checked the same selection input result in infoprovider for infoset and output is getting for the same.
    Please suggest for regarding solution.
    thanks & regards,
    Gourav Sekhri

    Hi,
    check whether you have loaded data in to quality server if no, please load data for all the target involved in info set.  If data loaded check all the target 'request for reporting available 'or not.
    Also check whether data is showing in infoset or not.. if data availble there change your selection critiria accordingly.
    Thanks
    BVR
    Edited by: binu v. rajan on Aug 20, 2011 4:23 PM

  • I can't open iTunes on my pc in windows. I keep getting a Problem event: BEX error.

    can't open iTunes on my pc in windows. I keep getting a Problem event: BEX error.  How can i fix this?  need very detailed step by step instructions on how to fix. thx

    Check out this discussion link:
    https://discussions.apple.com/thread/2777410?threadID=2777410&tstart=15

  • Since update, when I click on iTunes store I get message that iTunes has stopped working fault module StackHash_e8ad Problem event BEX

    Since updating iTunes, I can open iTunes, view my apps, music, movies, etc. But when I click on iTunes store I get an error message that iTunes has stopped working. The fault module name: StackHash_e8ad Problem Event: BEX. Already tried reinstall several times and tried all the tips and advanced tips on the iTunes troubleshooting page. HELP!!!

    Try gn_id's suggestion from the following post:
    Re: iTunes 11 crashes when opening the store - no error message

  • Problem in BEX Analyzer

    Hi Gurus,
    *Sales Query 1     *
    *CUSTOMER ID     *
    *MATERIAL ID     *
    *Key Figures     *
    *SALES REP ID     *
    *No Applicable Data Found.     *
    Could you guys please help me to solve the above problem in BEX when excute query.
    No data is showing in BEX though infocube shows the data.
    Cheers
    Shrinu

    Check if data in infocube is available for reporting, Goto context menu of cube -
    > manage -
    > requests tab --> check and see if the 'request for reporting' column has the query icon.
    Also, do you have aggregates defined on u r cube. If uo do, you will have to roll up aggregates.
    right click cube -> manage --> Rollup tab -> Press Execute button
    after its complete goto requests tab and refresh, the u will be able to see the icon for 'request for reporting' available.
    run your query again and you shd be able to see data.
    If the above dont work search the forums for more info, this problem has been discussed several times.
    Thanks
    K
    Edited by: Krishna K on Jan 20, 2008 2:48 AM

  • Problem about Bex Exception

    Hi All,
    I have some problems with bex exception. In my query, I have 3 columns  (the third one is a rate calculated from the first (C1) and second columns (C2)). I have a characteristic in row which lists the different values. Sometimes, I have no value for C1 and C2 and also, the value  rate is space (thatu2019s normal behaviour). I must highlight some rate by
    If rate < 55         bad
    If rate => 55      good
    I did an exception
    Bad        except1    BT      0  to 54
    good      except2    GE      55
    That works fine but my problem is :
    The rate cells with a space value are also highlighted with the bad colour. Have you some idea to avoid this behaviour ?
    C1                        C2                                                 Rate
    1000                         5                                               200   (C3)
    100                        20                                                5    (C3)
    space                              space                               space   (C3)
    1st  C3 is green
    2nd C3  is red
    3rd  C3  is also red (I want to leave blank)
    Thanks fot your help.

    Hi,
    If you are in BW 3.5 then you can make us of class interfaces for this scenario and it was explained here in this article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0b4cfcc-f9c1-2b10-1bb5-d4b61083d471
    Hope this helps you.
    Regards,
    Rajkandula

  • Problems using Bex 3.x on Citrix Terminal Server Nw2004s

    Hello,
    we've got some problems using Bex 3.x on Ctirix Terminal Server.
    1.) There are 3 Windows displayed (1)sapbex.xla
    remote (2) Mappe 1
    remote (3) Mappe
    Why these Remote-Windonws are diplayed ? Do I have to set a path ?
    2.) There occurs after a time when the Query should be changed ? No entry in SM21 ? An unexpected 'unable to show modal form within this context' error occured in wdbrlog"
    Is there any connection time out-setting for the Bex ?
    Thanks
    Frank

    Hi,
    the problem resulted while implementing Citrix Hotfix XE104W2K3R02 and was fixed with XE104R02W2K3001.
    Citrix Info:
    Hotfix Rollup Pack XE104W2K3R02 - For Citrix MetaFrame XP 1.0 for Windows Server 2003
    Known Issue(s) in this Release
    • After applying this hotfix rollup pack, seamless connections to Microsoft Office applications may display multiple icons on the client taskbar. To resolve this issue, apply Hotfix XE104R02W2K3001.
    Hotfix XE104R02W2K3001 - For MetaFrame XP 1.0 for Windows Server 2003
    Issue(s) Resolved in this Hotfix
    1. After applying Hotfix Rollup Pack 2, seamless connections to Microsoft Office applications may display multiple icons on the client taskbar.
    Kind regards
    Frank

  • BEx Formula Problem (If-Else)

    Hello everybody,
    I am heaving a little problem with the BEx Formula Editor.
    I would like to create a formula based on time dependent attributes; witch should provide me with an actual customer rebate.
    The Query should look like (displayed in Excel/Analyzer):
    Customer Rebate A Rebate B Rebate C Actual Rebate
    1         5 %     10 %      0 (#)       10 %
    2         2 %      0 (#)    0 (#)       2 %
    3         5 %      0 (#)    0 %         0 %
    Rebate A, B, C are attributes of different characteristics and for being able to use them in my formula (for Actual Rebate) I have created a formula variable (replacement path) for every rebate. I have already figured out, that there is no possibility to differentiate between real zero values and zeros being displayed because there is no value defined (#) (at least it seems so to me). So I added another attribute which is 1 if there is a value. For the following example let’s call it “Rebate X (exists)”
    The formula I would like to use should contain the following logic:
    If (Rebate C (exists) == 1) {
    Actual Rebate = Rebate C
    } elseif (Rebate B (exists) == 1) {
         Actual Rebate = Rebate B
    } elseif (Rebate A (exists) == 1) {
         Actual Rebate = Rebate A
    } else {
         Actual Rebate = 0
    Any help would be appreciated.
    Kind Regards
    Simon Ulrich

    Hi,
    I suppose Eugenes Formular will give you the total of all three rebates if they all exist. To get the elseif correctly, I propose a formular like
    (Rebate C (exists) == 1)* Rebate C + NOT (Rebate C (exists) == 1)* (((Rebate B (exists) == 1)*Rebate B) + NOT (Rebate B (exists) == 1) * ((Rebate A (exists) == 1)*Rebate A))
    Hope all brackets are set correctly, slightly confusing in this editor

  • Bex Queries: scaling and formula problems

    Hi,
    I have two questions / problems:
    1. I am currently building a query on 0PCA_C01 cube and I would like to perform a scaling of 1000 (e.g. 1000 u20AC become 1 u20AC). This works fine for my actual column (scaling is performed her), but not for my budget column (same like actual however different 0vtype) and my deviation absolute column (actual - budget). Any idea why this doesn't work ?
    2. I have also a column deviation % which is a formular deviation absolute / budget. In the query I have defined following formular: deviation absolute / nodim ( budget). The result though, is wrong. When i try the formular with normal excel formular based on the appropriate cells, the result is correct. Any suggestions what is wrong here ?
    Thank you !!!
    Regards,
    Max

    Hi Tom ,
       You can check the following SAP notes for  this issue :-
    1. 1484847 - "Error #2032" while trying to import BEx query through SAP Netweaver BW connection in Xcelsius
    2. 1390703 - Error #2032 in Xcelsius when attempting to import an SAP query with 2-way SSL connection .
    Regards,
    Lokesh

  • Keyfigure dsiplay problem in BEx Report

    Hello Experts,
    In my BEx report i need to display keyfigure values as a whole numbers instead of fraction.I have selected 0 in decimal place of keyfigure properties but the problem is if I have a decimal it gets truncated instead of round figure.  Eg. for value 153.65 report shows 153 but I need to display as 154.
    Regards
    Kumar

    To be more specific suppose u r having a key fig say KF having the value 153.65.
    Don't set any decimal place for the KF. Just go to the properties and hide it
    Now create a new formula and set the decimal places to 0 in the properties and use the following formula.
    ( FRAC ( 'KF' ) < 0.5 ) * FLOOR ( 'KF' ) +
    ( FRAC ( 'KF') >= 0.5 ) * CEIL ('KF')
    Hope this helps

  • Cumulation problem in BEX REPORT?

    hi,
    i am generating reporting FISCAL PERIOD WISE. the values of standard price(OPRICE_STD), moving average price(0PRICE_AVG) values are basically coming from R/3 directly.
    0fiscper    Company period            std price           mov avg price
    2009001     20090101                      40                         50
    2009001     20090102                      40                         50
    2009001     20090103                      40                         50
    2009001     20090104                      40                         50
    no, when i run the report by fiscal period the values are showing 160 instead of 40, and 200 instead of 50 respectively.
    when u drill down the values are 40,50 only for the company period wise. but how to display overall result as 40 for std price, and 50 for mov avg price in the bex report. that means how to do it in bex query designer.
    regards
    vadlamudi

    thanks one and all , that problem has been resolved.
    i have created structure for material types( Ingredients, packaging materials in rows)
    when i execute the query by fiscal period the values which are showing is very high in the final result.
    when i drill down by material and keyfigure(formula) values are not matching with the final result.
    and if we execute by material wise rather than period wise the values are perfect.
    pl tell me the solutio
    regards
    vadlamudi
    Edited by: venugopalv on Sep 3, 2009 10:55 AM
    Edited by: venugopalv on Sep 3, 2009 11:52 AM

  • Formula headings in BEx shows UID....

    In the formula description I have "% change vs last year".  When I execute it in BEx the heading displays "Formula 4AN7E9DVTL4EKQ3AKQFJMB7KJ (which is the UID).  I can not get it to display "% change vs last year".  I have checked and unchecked "Use Standard Text" and that does not work.  Is this some sort of bug?  Can anyone help me out with this?
    File Version = 7100.2.8.1039
    Build = 983952
    Patch Level = 8

    HI,
    I am also facing the problem, if u have resolved it can u please tell me how u did it.
    Regards,
    Sandhya.
    Edited by: Sandhya Rani Boya Hussainappa on Oct 14, 2008 11:42 AM

  • IP - Various problems with BEX Analyser - help would be nice

    Hi,
    we use IP in combination with BEX analyser. We experience certain problems. Does anyone experienced the same issues mentioned below:
    1) if a planning function is executed, it is executed twice when your cursor is within the query itself. If it is outside the query when clicking on the button, it is executed once (like it should).
    2) Locking: we don't have locking problems, but from the moment two people lock each other once, they need to close their analyser and re-open it (so logon again) in order to be able to start planning again in a non-locked part. If they just change their selection (to the not-lock part) they remain locked!!!
    3) planning function with multiple variables: system cannot retrieve values of all variables.
    details of function:
    CMD                                               1       EXECUTE_PLANNING_FUNCTION
    PLANNING FUNCTION NAME           1      AG10_COPY01
    DATA PROVIDER_FILTER                 1     DATA_PROVIDER_1
    VAR_NAME                                     1       PROF_CTR
    VAR_VALUE                                    1       510
    VAR_NAME                                     2     PERIOD
    VAR_VALUE                                    2        012
    VAR_NAME                                     3       CUSTOMER
    VAR_VALUE                                    3     1000
    -> following the instruction of the SAP course, in case of multiplle variables they should start from 0 and have an incremental increase. But the system only recognizes the variable with index = 1
    regards
    D

    Dear Dries,
    could it be that the variable type you use require a different set of commands?
    In general the parameters of the BEx Analyzer follow the rules of the SAp BW 3.5 Webruntime. When reading this detailed documentation you find that depending on the type of variable other names have to be used, e.g. when using a selection option variable you need something line varname_low, varname_high, ...
    The documentation can be found in the online-help:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/07/ff413a3ace7022e10000000a11402f/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/07/ff413a3ace7022e10000000a11402f/content.htm</a>
    Best regards, Olaf Fischer

  • Variable extracting problem in BEX

    Hi Experts,
    I created a user entry variable with multiple single values.
    After running the query, i tryed to choose parameters, but in new window I have get a time out.
    In another words I can`t choose the parameters.  
    I  opened the query without the value, and I can see the parameters in navigational block.
    After this I checked the ODS and characteristic in RSRV. Iam not fined any problem, all test is finished green.  
    I tryed create new query with this variable on another data provider and this work!
    Can anybody help me to solve this problem?
    Thx!
    Vadim.

    Hi,
    take additional a look at this note:
    FAQ: Input helps in Netweaver BI
    SAP Note Number: [1080863|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
    This note gives answers to frequently asked questions (FAQ) with regard to using the input help for characteristics in SAP NetWeaver BI. This includes the input helps in the BI BEx Java Web as well as the input helps in the BI BEx Tools.
    Regards
    Andreas

Maybe you are looking for

  • Headphone jack no longer working - How to test if it is a hardware or software issue?

    Hi, my headphone jack fairly suddenly stopped working. The speakers and the sound are fine, but when I plug my headphones in nothing plays. I see that the computer does recognize that headphones are plugged in, and it does change it to "headphones" i

  • Problems capturing form data

    I'm new to PHP and I'm having a few problems. I've put together a script to process an HTML form and I need it to capture the names of all 'checked' checkboxes within my form and exclude all unchecked data. I know i must be doing something stoopid bu

  • How can I dissable 'sponsored' tiles?

    With the new Firefox we got the very unwanted sponsored tiles. There were about 10 tiles that were placed for me. Some of them were even animated. Some nice spam right in your face on a screen you use regularly. There is a' gears' icon where you can

  • IPhone 3G goes into Recovery Mode after every restore

    Every time I restore my iPhone 3G, it goes into recovery mode right after an error-less restore has been completed. Yes, I've tried using tools such as TinyUmbrella and RecBoot and iRecovery. The device was not jailbroken when I tried to update it to

  • SOA Demo: worklist application doesnt show the created task!

    I dont know why but after creating task that doesn´t show to be aproved on work list! I cant see any kind of error... What can be done?