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

Similar Messages

  • Results based on From and To value in Bex query designer.

    Dear all,
    We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
    I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
    Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
    I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
    To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
    How to get my requirement achieved in the Bex query designer.
    Experts suggestion with steps will be very useful to solve my problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Dec 26, 2008 11:28 AM

    Hi Magesh,
    I think you could try one more way.
    Create a formula inserting your two formula variables for limits .(FV -  are ready for input ) .
    The formula would return the result as 1 or 0 because it would have boolean condition in it.
    You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
    You formula A would look like
    ( KF > FV1) AND (KF < FV2) * 1.
    And in the condition put A EQ 1.
    You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
    Regards,
    Sunmit.

  • As Bex Query design why I canu2019t select from list in values range

    Hello experts,
         I want to pop input window when I use analyzer run bw report, I know to add filter through restrict, then I selected value ranges, it was appearing between input text, the button canu2019t let me input, I tried select from list, Bex Query design occured some errors, if click u2018exitu2019 will prompt unknown software exception(0xc00200001) then stop .
    the imange: [http://www.itpub.net/thread-1192217-1-1.html]
    How to input text or select list? Why My Bex query design canu2019t do select from list? 
    please let me know the soultions, thanks for you help in advance
    Regards,
    Steve

    first of all, thanks for your help.   if need to install batch, please let me know. many thanks .
    more infomation as belows:
    the windows prompt:
    Your application an unhandled exception occurs. If you click [continue], the application will ignore the error and try to continue. If you click the [end], it will immediately close the application.
    I clicked more detail button , displayed as belows:
    For more information call using Just-In-Time (JIT) debugging details
    Please refer to the end of this message (instead of this dialog box) information.
    Exception Text **************
    System.NullReferenceException: Object reference not set to be the implementation of individual objects
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.HandleUnhandledException(Exception iException)
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
    in System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
    in System.Windows.Forms.Control.WndProcException(Exception e)
    in System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    in System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
    in System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    in System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    in System.Windows.Forms.Control.set_Visible(Boolean value)
    in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    in System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
    in System.Windows.Forms.Form.ShowDialog()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.GetUserSelection()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.ShowSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.InvokeSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.OnInvokeSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.picValueHelp_Click(Object sender, EventArgs e)
    in System.Windows.Forms.Control.OnClick(EventArgs e)
    in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    in System.Windows.Forms.Control.WndProc(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    inSystem.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • 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

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

  • 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

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

  • 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

  • Condition (Defintion) in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    Hi,
    <b>● All Characteristics in the Drilldown Independently</b>
    This setting allows you to apply a condition in a general way. Depending on which characteristics you use in the drilldown, you obtain different results.
    Note that the characteristics that are already used in an active condition for characteristic combinations are not included.
    This option is optimized for ranked list conditions, but can also be used for threshold value conditions with relative values.
    <b>●Most Detailed Characteristic Along the Rows or Columns</b>
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer. For more information, see Restrictions in the BEx Analyzer.
    <b>● Single Characteristics and Characteristic Combinations</b>
    This setting allows you to evaluate the condition for characteristics or characteristic combinations defined for specific drilldowns only. You can select any characteristic (of the characteristics used in the query in rows, columns, or in the free characteristics) or a characteristic combination.
    ○       If you only want to evaluate the condition when a certain characteristic is present in the drilldown, select this characteristic.
    ○       If you want to evaluate the condition for characteristic combinations, select multiple characteristics.
    Source:
    help.sap.com
    For more information and examples please check the following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/73/702e39074dc93de10000000a114084/frameset.htm
    Hope it helps.

  • IF...ELSE.. STATEMENT in BEx Query Designer

    Hi,
    Why there is no IF, ELSE function in BEx Query Designer?
    Assuming I need to write the following logic, how can it be accomplished?
    IF (A=0 OR B=0)
        THEN 0
    ELSE IF ( B/A <0)
        THEN '       *'
    ELSE
        B/A * 100
    i.e.
    if A or B is equal to 0, then display the value of 0
    else if B is negative (as A is either 0 or positive), then display the following text: '         *'
    otherwise, display the value of  B/A * 100
    Thanks!

    Hi,
    You can achieve this by creating a new formula.
    You have to use the boolean operations and mathematical functions. But we cannot display *. u have to display some value for that.
    Khaja

  • Constant Selection in BEx Query Designer on BI7

    Hi guys
    According to this blog <a href="/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection Selection</a>, we can create constant selection on both Characteristics and Key figures. I understand how to do it with restricted key figures.
    Can anyone give me a step by step guide on how to create constant selection for a Characteristic in BEx Query Designer on BI7. I can't find options for 'constant selection'
    Or is this the same thing when you include or exclude values?
    Message was edited by:
            jimi ogun

    Thanks Krishna
    I am actually using a Multiprovider for my queries but business requirements mean I need to create joins.
    I am trying to avoid Infosets and I believe another way is to use the Constant Selection feature in Query Designer.
    Going back to my previous posting, I know how this is done with a restricted KF but I don't know how when it comes to characteristics.
    Can anyone help?

  • 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

  • BI Bex Query Designer

    Hi SDN Guru's,
    I am working SAP BI  Reporting Area, My Customer asking we want to BI Report with Value and Description how to make this.
    We have only Product Hierachy with value Ex:- 000000211210042803, My Client expecting with description Manoj & Co like that.
    How to do in BI Bex Query Designer, can you please explain step-by-step.
    Thanks in Advance Guru's.
    Regards,.
    Kumar.

    Hi,
    Pre-Requisiite:  Both Key and Text should be maintained in BW system for this Infoobject
    In Query designer, Click on Characterstic properties-> Select Key and Text-> Save-> Run the report
    Regards,
    Suman

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

Maybe you are looking for

  • Very random question, but important

    I've bought a new MacBook Pro to take on an upcoming deployment overseas. Needless to say its going to be quite dusty there, and its an extremely fine dust, almost like powder. It gets everywhere. I'm going to buy a pelican case for storage when I'm

  • Edit Authorization at Entity Level

    Problem: I am trying to Edit Authorization at entity level but my changes are not getting saved. Discription: I have use case that I want to make an entity read only for a role defined in my jazn. To do so, I am opening my entity, and in struture win

  • Can't find the iMovie in app store ?

    Hi I can't find the iMovie app in the app store on iPhone and also on the iTunes. Why is it not available ?

  • Wireless router issue

    So I have a 2 year old Linksys Wireless N router which had been working fine for the past 2 years. A few weeks ago I updated the firmware and it has been working shaky ever since. I did the reset like it asked me to do. Somehow I got it to work when

  • My 3gs keeps reloading saying activation required?

    My phone keeps reloading and then says activation required, connect to itunes.  i do and nothing happens except for it reloading and starting over again?