BEx Query Designer - working on fields calculations

Dear all,
I Developed Query which will give me output for Amount of Consumption of Chemicals during selected Period and Profir Center.
I Display Amount field using formula
also i calculate amount of one material (CANE) using formula, now i want to calculate cane / amount and display in third colum for Example :
Material                          |--- CANE|   Cane / Amount--
|      Amount
2000001     RANOCIDE M     |----
| -
|     587,984.30 INR
2000002     RANOCIDE SR     |----
| -
|      473,880.80 INR
2000003     SANTROSE     |-- |--
|      270,818.20 INR
CANE     CANE             |  2,961,039,200.47 INR  |                X        |     
now in Cane / Amount formula field  i am not getting any value , Please can some one Provide me solution for it...
I dont want to display material Cane in output
my output should look as follow:
Material                           |      Cane / Amount |      Amount
2000001     RANOCIDE M      |       5,035.92         |     587,984.30 INR
2000002     RANOCIDE SR      |       6,248.49         |      473,880.80 INR
2000003     SANTROSE      |       10933.67876  |      270,818.20 INR
and dont want to show INR every time with each currency amount
Please help
Regards
Pumam
Edited by: PPShinde on May 24, 2011 12:16 PM

HI,
I am calculating CANE by using formula
in Data source MSEG and MKPF data is there
in formula for CANE i am taking conditions
first calculate CANE 262 formula field
Key figure is AMOUNT
MAterial  is CANE
and MOvement type 262
same way for CANE 261
Key figure is AMOUNT
MAterial  is CANE
and MOvement type 261
In CANE
i did CANE 262 - CANE 261
now for Amount i did same way
first calculate AMOUNT 262 formula field
Key figure is AMOUNT
MAterial  is All materials having MAterial TYpe Chemicals
and MOvement type 262
same way for AMOUNT 261
Key figure is AMOUNT
MAterial  is All materials having MAterial TYpe Chemicals
and MOvement type 261
IN AMOUNT
i did AMOUNT 262 - AMOUNT 261
r u getting
i cant able to show u output in excel ot tabulkated format
Thanks lot
Regards
Punam

Similar Messages

  • Difference between  aggregation and calculation tab in BEx Query Designer

    HI,
    I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in  the properties tab i found aggregation tab and calculation tab.
    I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
    I not able to used that Aggregation tab it is showing as a hidden fields...
    can any one tell me whats the exact difference between these tabs and when we need to use which tab?
    With Regards,
    Thanesh Kumar.

    Hi Thanesh Kumar,
    I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
    I could explain to you the difference between these two tabs.
    For "calculation" tab, it changes the display of result and does not change the calculation logic.
    It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting)  is used for further formula calculation.
    For "aggregation" tab, it changes the real calculation logic.
    The system takes the setting as the aggregation rule for records.
    The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
    Average instead of summation when aggregating records. And the Average value will be taken for calculation
    in further formulas or other calculations.
    For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
    a basic key figure. That should be the reason why you see it greyed-out.
    Regards,
    Patricia

  • Bex Query Designer and Bex Analyzer not working

    Hi All,
    While Login to Bex Analyzer, It is giving an error "An error occured while communicating with the BI Server"
    While Login to Bex Query Designer, It is giving an error "Login Aborted".
    Please help me to resolve this issue
    Thanks
    Irshad

    Hello Irshad
    Not sure if it helps but can try suggestion mentioned in this note.
    https://service.sap.com/sap/support/notes/1434630
    If problem persists you can upgrade your SAP GUI Patch level.
    Still facing problem, please contact SAP .
    Regards
    Anindya

  • % Calculactions in Bex Query Designer

    Hi Experts,
    Could you please on how can i perform the below % Calculactions in Bex Query Designer.
        Vendor No line item Not = L category =A  status =RFQ :for items
    Example : I have 8 items for vendorNo 200274 and only 4 as above condition and 5 items as not L(delete)
    requament: % RFQ Without Response:
    Percentage of Quotation response ={(No. of RFQReponses Received/ No. of RFQ items sent)*100},
                                                                   ( 4/5 * 100= 80%)
    Percentage RFQ without response= 100 -  Percentage of Quotation response
                                                                  =  100-80 = 20%
    How can i perform the % Calculations in Bex Query Designer.
    Vendor
    Purchasing document
    Indicator: Line Item
    Purch. doc. category
    Purch. doc. status
    Item
    Number of Records
    category A item L
    200274
    V-LINE EUROPE EXPORT MARKETING
    6000003778
    L
    A
    Not assigned
    10
    1
    20
    1
    30
    1
    6000003779
    Not assigned
    A
    Not assigned
    40
    1
    9000000046
    Not assigned
    A
    RFQ
    10
    1
    1
    20
    1
    1
    30
    1
    1
    40
    1
    1
    Result
    8
    4
    thank you

    Hope you have done some groundwork you have done on this requirement. Have you tried to create New Formula and put the required formula in it to calculate Percentage of Quotation response ?
    Your formulas seems to be straight forward.
    Keep in Filter: item Not = L category =A  status =RFQ
    You may start working on it and get back with if you are struck.

  • Where to write IF THEN ELASE statements in BEX Query Designer

    Hi All,
    I need to write a formula in query designer...
    saying that to display the all Quantities in KGs.. Now articles are in Grams and KGs...
    So here i need to perform calculation like... if article is in KGs divide by 1, else if article is in Grams divide by 1000.
    where can i write this logic to perform calculation ...
    Thanks in advance..
    ravi.p

    hi chetan,
    No its not work.. why because i  need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'.  this is  attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting  Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight. 
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there any solution to solve this Problem...

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

  • Group by in BEx query designer

    Hello experts,
    I'm new in BEx query designer and I'm currently working on displaying the maximum of a list of values and group them by calendar day like the exemple below:
    CalendarDay
    Client
    Amount
    02.09.2014
    A
    3000
    02.09.2014
    B
    2000
    03.09.2014
    A
    1500
    03.09.2014
    B
    1600
    The result I need to display is as below:
    CalendarDay
    Amount
    02.09.2014
    3000
    02.09.2014
    2000
    OverAll result
    3000
    03.09.2014
    1500
    03.09.2014
    1600
    OverAll result
    1600
    What's the best solution for this ?! is it to work with calculated Key Figure or Exceptions ?! Would any one help me to get such result.
    Thanks a lot

    If you need to show the data as you mentioned then i think you are suppose to keep client in rows and also you have to switch on the result row display for that characteristic.
    Because if you remove it then data will get aggregated based on calday and it will become 2 records only.
    To get the maximum value you have to use Exception aggregation.Create a new formula and put the amount kf inside it.Hit the aggregation tab--Exception aggregation as maximum--Reference characteristic as client.
    If this does not work then we can also apply nested aggregation based on calday.
    Regards,
    AL

  • Drilldown in BeX Query Designer

    Hello,
    I am new in SAP. I am having problem creating Drill down. I have this report where all the data is Transactional data. So I haven't created any Master Data. So I won't be able to use Navigational Attribute for Drill down purpose and I don't want to use Hierarchy. Is there any possibility of getting the Drill down in BeX Query Designer? Any help will be appreciated.
    Warm Regards,
    Debayan

    Hi Debayan,
    first of all, what is your requirement to create a drill down?
    A drill down in BEx query means showing additional information from report output. There are 3 ways to drill down a query in BEx
    1. Master data-Navigational Attributes
    2. Master data- Hierarchies
    3. Free characteristics
    As you dont have any master data in the report (which is very strange) you can use the additional characteristics provided in the 'Free characteristics' to see how the drill down works in BEx.
    Please share your exact requirement.
    Hope this helps.
    -Swati.

  • Division in bex query designer

    Hi experts,
    I have a strange problem in bex query designer. I am trying to calculate margin in % but the calculation gives the wrong result.
    The two figures I try to calculate are -25124 and -91248 (figures in 1000 NOK)
    The result should be (-25124/-91248)100 = 27,53* (when formula entered in excel)
    I have tried the following in Bex query designer
    -25124 %A -91248 = -0,02753%
    (-25124/-91248)*100 = 0,02753
    What might be the problem here?

    Thanks again for your answer,
    I will try to explain my report (requirement from the business user)
    Actual (KF)----
    Budget (KF)       
    Sales-- -91248--
    -77153         
    FSP-- -25124--
    -18918
    Margin  % -
    (FSP Actual/Sales Actual) 100---(FSP Budget/Sales Budget)100
    Dim
    Dim
    Result
    The margin is calculated in the cells in the bex query designer to differentiate between actual and budget. There is no option to calculate the margin in the columns as this would influence all other rows aswell.

  • New ratio doesn't appear in Bex Query designer

    Hello Experts,
    I added 2 ratios to my infocube. It activated without any problem. I then added these 2 ratios to my multiprovider and activated it after affecting them to the previous infocube.
    Then I connected to the Bex query designer and loaded a report in order to add these ratios, but there are not available for selection in the Ratio menu of the multiprovider.
    Has anyone faced this problem?
    Thanks

    Try reactivating the Multiprovider again and see if that works !
    I had this issue earlier, where I couldn't see two of the newly added characteristics in the multiprovider. But simply reactivating the multiprovider solved my issue.
    - Danny

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

  • In Bex Query designer - Flat is not supported

    Hi all,
    In Bex query designer,
    While execution of the query, the following error is coming .
    Failed to process request; contact your system administrator
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Flat mode is not supported!
    java.lang.UnsupportedOperationException: Flat mode is not supported!
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.Characteristic.setHierarchy(Characteristic.java:330)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.Characteristic.readStateFromDomNode(Characteristic.java:542)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QvCharacteristic.readStateFromDomNode(QvCharacteristic.java:379)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QvStructure.readStateFromDomNode(QvStructure.java:106)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.AttributeContainer.readStateFromDom(AttributeContainer.java:297)
    Details: Full Exception Chain
    Most important error.
    regards
    Selvan

    Hello,
    I have the same problem with Flat mode is not supported! at ... Characteristic.setHierarchy(Characteristic.java:335):
    Open, close, reload of the query does not help.
    Other SDN-thread "500 Internal Sever - Flat Mode is not Supported!" related to transaction RSRT.
    Execution of query via RSRT works, but the problem still persists in the BEx Web Analyzer.
    Could be related to a BEx Web Analyzer "bookmark" ("Personalize Web Application").
    I have not deleted any item. We use SAP BW 7.0 with a patch level approx. 09.2009.
    The "flat-mode" seems to be the  "BEx table mode".
    SAP hints do not seem to fit here:
    - 715820 BW 3.x Front-End Patch 14 (we use BW 7.0)
    - 874825 SAPBWNews for BW 3.x Front-End Support Package 19
    - 874827 SAPBWNews for BW 3.5 Front-End Patch 08 (we use BW 7.0)
    - 905229 update to SAPTableTree
    - 909824 Termination in flat mode when an object is deleted (old?)
    - 909827 Incorrect InfoProvider-dependent characteristic values
    - 910602 Condition includes too many characteristics (usage of deleted elements)
    - 915215 Termination when a query definition is changed (old? visibility of elements?)
    - 968273 Cache with flat files: Exception is not caught (does not apply to given error)
    Any new solutions?
    Best regards
    Thomas

  • Values Bifurcation in BEx Query Designer

    Dear BI Gurus,
    In a column we are getting both positive value and -ve value. We want to bifurcate the values and show only +ve value in one column and show -ve value in another column. Is it possible through Bex query designer?
    Please through some light on this issue.
    With Regards,
    Balachander.S

    Hi bala,
    This can be achieved by creating two calculated Key figures, Just use else if condition in the formula and use if KF1=KF>0 then KF else 0, here all the positive values will be displayed similarly use if KF2=KF<0 then KF Else 0 it will display all the negative values. But here all the values will be displayed. Just hide the Key figure and display only calculated keyfigures. Else you can use exceptions to differentiate the positive and negative values.
    Hope this helps.....
    Rgs,
    I.R.K

  • Char restriction in Bex Query Designer

    Hi Gurus,
    Can anyone explain what is the use of the Characteristic Restriction Area in in the BEx Query designer
    If i set 0CALYEAR =2008 in the Char Restriction and in the column definition i set the one of the column to display data from year 2009. Will it work ?
    Please advice
    Thank you
    BR

    There are two type of characterstic restrcitions in the query. Global and local.
    If you are createing a restrcited key figure or selection and restricting calday then it will be restricted to that particular key figure (and show 2008 data) and in the columns it will show you other years data (i.e. 2009 data).
    But if you are using a global fiter in the filter tab of query designer, then it will be applicable to the whole query.

  • Creating Restrictions in BEx query designer for (1-a), where a is variable.

    Dear All,
    >>  Suppose for the variable in the BEx query designer, I've created restriction for 0FISCPER to the variable 0P_PER (as 0P_PER-1) by right clicking 0P_PER3, from that a dialog box appears.  In that I've selected 0P_PER3 and then clicked on offset variable and when I set the offset variable, it works for (0P_PER-1.etc, 0P_PER+1,etc..)
    But if I want to have (1-0P_PER), then plz tell me how to define this restriction?
    Plz explain me the steps to perform (1-0P_PER) restriction in BEx query designer in BW1.
    I'm using SAP BI 7.2 gui.
    Expecting your reply soon,
    with Regards,
    Jerald

    My requirement is that I want to have " 1-fiscal year"., But this I could not define using offset variables, since using offset we can define "fiscal year +1" or "fiscal year -1". 
    So there would be some other way to define "1-fiscalyear".  So Please help me to define "1-fiscalyear"  by giving me the steps.
    Thank you,
    with Regards,
    Jerald

Maybe you are looking for

  • Two errors during cancellation of AR Credit Memo with 'Free of Charge' option

    Dear all, I've created a AR Credit Memo - with Free Of Charge option established. After I've tried to cancel this document. SAP shows the following error messages: - No matching records found '' (SWEI) (ODBC -2028) [Message 131-183] - No matching rec

  • Issue with calculation script - please help

    There is a script that I am working on that needs to track the changes made by the user on the data form and push the entered value down proportionally to the lower levels. It's a signal dimensional spread. It needs to spread the parent level values

  • Background Image for a Page

    Hi All, How to have a background image for a Portalpage? As Portlets are on the top of page,setting image in the Portal Style does not help. What's the wworkaround? Thanx

  • Importing SWF creates bitmap and graphic

    I've created my user interface in Photoshop > opened file in ImageReady and exported document as SWF for my Flash 8 pro. When the SWF is imported to Library in Flash, the library gets a bitmap AND a graphic of each image. Can someone explain why? Whi

  • Voice dialing and OS 4.5

    Greetings to all, I am new in the forum. Nevertheless pleasingly I am made an impression by the level of information that handles, always of first hand.  Let me comment my problem, handling a device BB 8330. All the functions and programs were execut