Performing ranking calculations with the BEx Query Designer - ideas?

I have a scenario where I have a key figure with raw values.  In the column beside this I want to rank the key figures by their raw values.
Something like this:
Amount      Rank
   0.11           2
   0.05           3
   0.22           1
   0.03           4
I can do this no problem using the "Calculate Single Values as:" Ranked List.
For subsequent calculations I need to perform mathematical operations on the RANK column.    For example say I want to make a 3rd column where I divide the rank by 2:
Amount      Rank     Rank by 2
   0.11           2             1
   0.05           3            1.5
   0.22           1            0.5
   0.03           4             2
I cannot figure out how to do this as SAP does not really STORE the values of the rank column for my next calculation.  The "Rank by 2" column actually shows this:
Rank by 2
    0.065
    0.0025
     0.11
    0.015
which is dividing the original amount by 2 and not the actual RANK value.
Anyone have some suggestions on what I can do?

I know what you are talking about, it will always return 1 or zero which is true or false, I don't think you can do anything much to this. Since, the value of Ranked is getting calculated at runtime.
thanks.
Wond

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

  • To get result as ratio in the BEX Query designer

    Dear Experts,
    I would like to know how can we give the result as a ratio  rather than summation.
    In our case , We have 5 vendors we have a 3 vendors as premium vendors  2 as non premium. I am getting the Premium vendors with value 1 and non premium as value 0   in the keyfigure. I want to get the  result of this keyfigure as 2/5 = 0.4 
    (total premium vendor/ Total no of vendors) .
    How can i achieve this. Kindly help on this.
    Regards,
    Rajarathnam.S

    Hi,
    Create a counter on vendors. Change the CKF with definition as follows:
    KF / counter.
    So, for premium vendors it will be 1/1 = 1
    for non premium vendors it will be 0/1 = 0
    For the example given by you, In the result row you will get 3/5.
    Note: in the result row it should be sum of KF / sum of counter otherwise it will simply display 3 in result row.
    For that you might have to create a CKF on the KF with aggregation as summation and a similar CKF on counter with same aggregation.Then use these 2 CKFs in the formula with standard aggregation.
    Best Wishes,
    Mayank

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

  • 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

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

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

  • Error  in opening  Query  in Bex Query Designer

    Hi all,
    I am getting an error while opening the InfoProvider for a new Query in the Bex Query Designer.
    program error in class SAPMSSY1 method : Uncaught_exception.
    ASystem error in program CL_RSR and form GET_COB_PRO-02
    In RSRT:
    00000003      I>> Row: 78 Inc: LRRMSU13 Prog: SAPLRRMS
    00000003      ASystem error in program CL_RSR and form GET_COB_PRO-02- (see long text).
    With Regards

    Hi Raju,
    Check for the authorization
    Auth object : S_RS_ICUBE , S_RS_MPRO,S_RS_ISET
    Infocube subobject -> aggregate ,data ,definition.
    Auth object S_RS_COMP
    Activity                       01, 03, 16, 22  
    And let us know ...
    Hope that helps.
    Regards
    Mr Kapadia

  • Bex Query designer withour Enterprise Portal?

    Dear BW experts,
    After launching the Bex Query designer with BI7 system. After designing query, If I click on execute (Ctrl+R). It is launching internet explorer with error "Invalid Syntax error - Page cannot be displayed"
    It is launching the following URL
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZCCQ20071048070001&VARIABLE_SCREEN=X&DUMMY=1
    I think it is looking for Enteprise Portal server. I dont have an EP server.
    What is the alternate way to execute this?
    Thanks in Advance...

    Hello to all of you,
    just to make sure that I do not missunderstand:
    As far as I know in BW3.5 (without EP installed) you were able to execute a query directly out of the query designer and it was shown as a web-query.
    Now I tried to do the same with a BI7-System the first time and I get the same symptom as Abdullah. We also do not have an EP installed on that system.
    As solution, you all describe that I have to open the query in analyzer to see it in excel - OK - BUT if I do not want to see it in excel but as a webquery (like in my good old BW3.5) instead ? Isn't that possible anymore ???
    Uwe

  • Problem with a Bex Query Report with Web Intelligence

    Hello!
    I have a Bex query (with query Bex version 7.0) I'm connecting with Web Intelligence (4.0) but one of the attributes instead of displaying the description shows only the key, and it is strange because other cubes if given by the conversion.
    I wonder if there is a solution for this or if it is a problem of version 4.0 of Web Intelligence.
    I await your response,
    Greetings!

    Hi,
    Whereabouts in the application are you seing this problem?  (in the query panel conditions, in the prompt list of values, or in the table block? )
    also, what do you mean by "and it is strange because other cubes if given by the conversion" ?
    it's worth noting that the "key and text display properties" in the Bex Query Designer do not influence webi.  WebI consumes the global infoobject property from BW RSH1.
    Regards,
    H
    p.s. if you need to understand which features are or are not supported with BI 4.0 tools, please look here: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5

  • Bex query designer -- Execute Error

    Hello,
    when i am executing the Bex query designer -- > Execute. i am getting the following error.
    Service not attainable
    What has happened?
    The call of the URL http: // fe-pit-ttbw.company.com:8000 / irj/servlet/prt/portal/prtroot/pcd! 3aportal_content! 2fcom.sap.pct! 2fplatform_add_ons! 2fcom.sap.ip.bi! 2fiViews! 2fcom.sap.ip.bi.bex it was broken off, because the appropriate service is not available.
    Indication
    The demolition appeared on the system PIT and with the fault code 404 and the reason trouble(need) found. The selected virtual Host was 0.
    What can you do?
    Please, choose a valid URL. If you still dispose of no user's identification, you address your system administrator.
    Fehlercode:ICF-NF-http-c:000-u:SAPSYS-l:D-i:rb3pnk2_PIT_00-v:0-s:404-r:Notfound HTTP 404 - trouble(need) found your Internet SAP Communication Framework team
    Edited by: Ranga123 on Aug 5, 2010 1:14 PM

    hi
    have u checked if web service is active to open the report in web?
    use T-Code SICF
    also check if portal is up or not.
    also check below post:
    [SICF service - error code 404;
    Edited by: Gaurav on Aug 5, 2010 2:01 PM

  • BEX Query Designer - Application Error

    Dear experts,
    I have a problem with my BEX Query Designer. Whenever I tried to save a query, I caught the following exception:
    BEX Query Designer has encountered a problem and cannot proceed with the current action. We are sorry for the inconvenience.
    Additional Information:
    QD revision 300
    Internal Error ID: E-ONGUIUNHANDLEDEXCEPTION
    Error Message: Method not found: 'Void com.sap.bi.et.Communication.RZX0.RSZ_X_ELTPROP.set_PROPVERS(System.String)'
    Can someone help me to solve the problem?
    I am using the following version:
    BI AddOn 7.X (based on 7.10), Support Package 3, Revision 520

    From the log:
    5:01:38 PM.31 ########## --> com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException ##########
    -EXCEPTION-START- 5:01:38 PM.31:  ---
    Exception Message: Method not found: 'Void com.sap.bi.et.Communication.RZX0.RSZ_X_ELTPROP.set_PROPVERS(System.String)'.
    Exception    at com.sap.bi.et.QueryDesigner.QDbElement.ToTable(RSZ_X_ELTPROP isEltProp, QDbCopyInfo iToTableInfo)
       at com.sap.bi.et.QueryDesigner.QDbQuery.ToTable(RSZ_X_ELTPROP isEltProp, QDbCopyInfo iToTableInfo)
       at com.sap.bi.et.QueryDesigner.QDbElement.ToTables(Hashtable iTables, QDcElement iElementsToSave, QDbCopyInfo iCopyInfo)
       at com.sap.bi.et.QueryDesigner.QDbElement.Save(String iRole, String iNode)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveElement.Save(QDbElement iElement, Boolean iOutputSuccess)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveAsElement.Save(QDbElement iOriginalElement, QDbElement iSaveElement)
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveAsElement.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandBase.Execute()
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveElement.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandSaveQuery.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandBase.Execute()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.CommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.InitialCommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.DoExecuteCommandInternal()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.ItemClickedHandler(Object sender, BarItemClickedEventArgs args)
       at com.sap.bi.et.QueryDesigner.QDdEventDispatcher.MenuItemClickedHandler(Object iSender, BarItemClickedEventArgs iE)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.OnItemClicked(BarItemClickedEventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
       at com.sap.bi.et.QueryDesigner.QDiBarItem.OnItemClicked(EventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs e)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Full Stack:   at com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       at com.sap.bi.et.common.appl.Log.Trace.Exception(Exception ex, String iAdditionalInformation)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       at System.Windows.Forms.Control.WndProcException(Exception e)
       at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDbQueryDesigner.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDStarter.QDStartup.Main()
    -EXCEPTION-END----

  • BEx Query Designer Error

    Hi All,
    I have a problem where I have just updated to SP 18 and now the BEx Query Designer comes up with a problem, I can open the Query Desinger but when I go to open a query from my history the Query Designer shuts down immediatly.
    Has anybody got any Ideas?
    The SAP Gui and Business Explorer is 710.
    Thanks for your help
    Jay

    Hi Pra,
    I do not get an error message the Query Designer just shuts down.
    Are there any log files I can look into to check for error messages?
    Thanks
    Jay

  • BEx QUERY DESIGNER AND QUERY ANALYZER

    HI!!!
    I want to learn to use the BEx Query Designer and the Query Analyzer, someone can help me with link, manuals, tutorials, cookbooks, everything about this?
    Thanks and regards

    Hi,
    Please check the links below which may help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/a8cd1f71-0a01-0010-4783-f119b6132d25
    https://www.sdn.sap.com/irj/sdn/bi-elearning
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/ba95531a-0e01-0010-5e9b-891fc040a66c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/27388d45-0c01-0010-9ebf-9b3dd7bd4ce6?prtmode=navigate
    http://help.sap.com/saphelp_nw04s/helpdata/en/05/4b583cf7388362e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92a25985-0a01-0010-5ea0-99ff9e0a244a
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/d21c1f46076bb2e10000000a1553f6/frameset.htm
    Regards,
    ®

  • Execution of BEx Query Designer Querys in BI Java SDK

    Hello experts,
    i am actually occupying with the possibilities of the BI Java SDK. I checked the documentation but could not find an answer to my question, so i address this issue now to the community in the hope, that someone out there can give me a hint:
    Is it possible to execute a BI query, which was designed in the BEx query designer, within the BI Java SDK OLAP query api?
    Is  there somewhere a method, which could be simply passed the technical names of the infocube and  the query and then returns the query result as a IBIResultSet or IBIDataSet?
    Thanks in advance for your help,
    best regards,
    Thilo

    Hello Mohan,
    thanks for this impression - thats a way i didn't think about at all before. I even think, that it is not necessary to publish the query as iview - it would suffice to invoke the BEx-AdHoc-Analysis Service via a HttpConnection-Object within a servlet and then parse the result delivered by the BEx service. You won't even need BI Java SDK for this, since this is plain Java functionality.
    But as i see there seems to exist no BI Java SDK-"generic" possibility to invoke an existing query as i see....
    If anybody has got another idea, it is very welcome. But i think i will investigate on the approach with the native HTTP call to AdHoc Service.
    Thanks anyway & best regards,
    Thilo

Maybe you are looking for

  • How can I add a new vaiable to the file loaded by Property Loader without changing my script

    I have an input file to my script that I load via Property Loader. The number of parameters in the input file may change from test to test.. Is it possible in some way to add a new parameter without changing the sequence file? Is there for example a

  • TypeError :  air has no properties

    Hi guy! I tried to use trace function of air object My html file is : <html> <head> <title>Sandbox Bridge Test</title> <script type="text/javascript" src="AIRAliases.js"></script> <script type="text/javascript">                        function doLoad

  • 8530 Internet Explorer Issues

    Device info Your carrier: Sprint Model info and OS version:8530  v5.0.0654 (Bundle 1108, Platform 4.2.0.298 Apps and free space File free before and after a battery remove/replace: Post battery space - 114402645 bytes Did a battery pull fix your issu

  • Is Prelude really a replacement for OnLocation?

    Hi, I've been reading up and it seems that adobe means for Prelude to replace OnLocation. That seems odd to me. I use OnLocation to create shot lists during pre production and then as a video assist and audio monitor on set (Bypassing the need to ing

  • Different views

    hi experts, we have 4 types of views. 1. database view 2.projection view 3.maintanance view 4.help view i want to know the difference among them. can anyone plz help me to know abt individual view, and the difference among them. give me the data abt