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

Similar Messages

  • 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

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

  • 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

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

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

  • 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

  • Error while openening InfoProvider in Bex Query Designer

    Hi all,
    i am getting an error while opening the InfoProvider for a new Query in the Bex Query Designer.
    Error Group
    RFC_ERROR_SYSTEM_FAILURE
    Message
    Exception CX_RSR_MESSAGE in program SAPLRRMS
    RRMS_X_MESSAGE
    Main Program: SAPMSSY1
    Include Program: LRRMSU13
    What could be the problem?
    Thanks in advance
    Andreas

    Hello Andreas,
    seems as if  JCo Connections on your system have not been set up correctly.
    Please have a look here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/ca/115e4088dc0272e10000000a155106/frameset.htm
    Regards,
    Daneil

  • 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

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

  • 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

  • Why can't I find Bex Query Designer ?

    Hi,
    I installed successfully SAP Netweaver ABAP Trial Version. But I can't find the Bex Query Designer. I thought it was part of SAP Netweaver ?
    How can I get it ?
    Thanks.

    Hi,
    Bex and the other tools such as analyzer and web app.designer come with SAP gui installation (while installing SAP gui you should select BW-addon ) and you can find  the query designer under the following path on your computer .C:Program FilesSAPFrontEndBwwdbrlog.exe
    Regards,
    ®

  • 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