Rounding the values in Query designer

In Query Designer, I am trying to store the rounded value of the below calculations to use in calculating a difference amount and %variance.
Currently:
Report shows actual % of 1.1 and budgeted % of 1.1, because we are rounding the actual value of 1.0798 to 1.1 and the budgeted value of 1.1326 to 1.1.  The difference is calculated as budget u2013 actual or 1.1326 u2013 1.0798 = .0528 and the percent variance is 0.0528/1.1326 = 4.66%.
Requested:
The end user wants the rounded values of 1.1 used in calculating the differences and percent variance, so 1.1 u2013 1.1 = 0 difference and percent variance is 0/1.1 = 0%.
What function can I use to recall the rounded values to use in difference and percent variance calculations?
Thanks for any and all help!
Kim Plut

HI Al -
Your suggestion:
If you want to round a key figure "KF" to have zero decimals:
( FRAC ( 'KF' ) < 0.5 ) * FLOOR ( 'KF' ) + ( FRAC ( 'KF') >= 0.5 ) * CEIL ('KF')
An equivalent MS Excel formula you can use to test is:
=IF(A3-TRUNC(A3)<0.5,FLOOR(A3,1),CEILING(A3,1))
If you want to round a key figure "KF" to have 2 decimals:
( FRAC ( 'KF'*100 ) < 0.5 ) * FLOOR ( 'KF' * 100 ) / 100 + ( FRAC ( 'KF'
100 ) >= 0.5 ) * CEIL ('KF' * 100) / 100
The equivalent MS Excel formula to test it is:
=IF(A5100-TRUNC(A5100)<0.5,FLOOR(A5100,1)/100,CEILING(A5100,1)/100
is exactly what I need, I am struggling to find the formula to round the key figure to 1 decimal in the query, any suggestions on how to modify the above formulas to return one decimal.  I was able to successfully test in Excel but cannot get the correct formula in Query designer.
Thanks
Kim

Similar Messages

  • Dump when trying to display characteristic values in QUERY DESIGNER

    Hi Experts,
    Life seems to become a struggle with 7.0 for me :-(.
    My current problem:
    If I try to display characteristic values  in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
    It's that kind of dump, that doen't help really (to my oponion)_
    What happened?
        The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_RSBOLAP_BICS_SERVICES======CP' has to be
        terminated.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
        "CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
        "HANDLE_UNCAUGHT_EXCEPTION"
    ... etc.
    BW 79, SP21
    GUI 7100.4.14.3136
    Any ideas?
    Thanks in Advance and Regards
    Joe

    Hi Vikram,
    Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
    Regards
    Joe
    Edited by: J.F.B. on May 28, 2010 3:02 PM

  • Adding column values in query designer

    Hi,
    I have requirement to add value in query designer the values should look like this
    Column A     Column B
    10                    10
    20                    30
    30                    60
    40                    100
    the first values of column B will be same as Column A 10. The second value of column B = column A 1st value +Column A second value similarly Third value of column B = 1st + 2nd + 3rd values of column a. So on and so forth
    Any help will be highly appriciated.
    Regards,
    ray

    Hi
    Just create the formula and go to the properties of that formula and go to the calculattion tab and in the "CALCULATE SINGLE VALUE AS "  select the option the additive ( not sure but once check that will perform additive operation plz once check it) and select the cumulative check box.
    I think u can get it , because in one of my project i did that calculation.
    Hope u got it,
    Thanx & Regards,
    RaviChandra

  • Currency conversion in the Business Explorer(Query design)

    Hi Experts,
    How to convert currencies from CAD to USD using the “Current exchange rate 0011” for a particular record in the Business Explorer (Query Design).
    Any useful answer will be rewarded with suitable points.
    Thanks!
    Rohan

    Create a currency coversion type for the exchange rate
    Go to RRC1, enter a  name for your new currency conversion type
    on the exchange rate tab mark the radio button Exchange Rate Type.
    enter the exchange rate type there
    enter the target curr in the tar curr tab as USD
    similarly in the query also enter the curr conversion key.
    hope it helps,
    assign points if useful

  • Problem with the icon "Display query on the web" in Query Designer

    Hi Friends,
             I was told by my PM to give them all FI Modules standard business contenet reports, so for that reason i have installed all FI business content & loaded the data in the Dev Server, now i just want to show the reports, but i want excute these reports in Internet Explorer using the Icon "Display Query on the WEB" in query designer, when i click on that it isn't getting displayed in the browser.
             the URL coming like this, "http://itcchqbd:8100/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&INFOCUBE=0FIAA_C11&QUERY=0FIAA_C11_Q0001&VARIABLE_SCREEN=X&DUMMY=1"
    getting the message in the page, the page can't be displayed,
              How to solve this problem & how do i have to show the standard business content reports to all FI Superiors ?
    awaiting for ur answers
    Regards,
    Balaji

    Balaji,
    first check if you have enabled web reporting on your BW server ( there is a how to paper for the same )
    another way to check out the same is to find out if there are existing web templates being published which would make the server web ready.
    As for FI content - activate the FI relevant areas in Business content and then activate the respective datasources and then load the data.. or go trough the best practices for BW-FI ( service.sap.com/bestpractices) wnd then activate the best practices for the same.
    Hope it helps.
    Arun
    Assign points if useful

  • Maximum number of records displayed on the browser using Query Designer.

    When you display a query on the web using Query Designer is there a maximum limit of how many records (rows) it can display? For example, can it handle 25 million records?
    Thanks.

    Hi Sebastian,
    I still find such a requirement weird as one cannot definitely go thru' so much of data at a time - it would thus always make sense to perhaps filter on some criteria which would make analysis & perhaps even download much faster. The limit as I understand is approx 750,000 data cells. Maybe the below link & SAP notes can help validate
    Limitation in No. Of data cells displayed in BEx Analyzer
    SAP Notes :-
    Note 1040454 - Front-end memory requirement of the BEx Analyzer
    Note 1030279 - Reports with very large result sets/BI Java
    Note 1411545 - BExAnalyzer: safety belt for large resultsets
    --Priya

  • To find the version of query designer currently installed in BI DEV

    Hi.. Where can I find the version of query designer (BI addon) installed in my BI DEVsystem.

    Hi,
    At the time of opening query designer it will show .
    Open query designer and  on menu bar go to help tab and select about .
    Thanks.

  • Want to round the value can any body suggest

    hai all
    i want to round the value and store it in on variable
    eg:12334.789 as to 123345 it should be stored in some variable
    suggest me please
    thanks in advance
    sindu

    Hi,
    You can Use either
    FLOOR : Largest integer value that is not greater than 12334.789
    or
    CEIL: Smallest integer value that is not less than 12334.789
    or
    TRUNC :Interger part of 12334.789
    Eg:
    DATA: I TYPE I,
              X   TYPE P  VALUE '12334.789 '.
    I = FLOOR( X ).    output- 12334
    I = CEIL( X ).          output- 12335
    I = TRUNC( X ).      output: 12334
    regards
    Rakesh

  • How to restrict the attribute values for the user in query designer

    Hi All,
    I have a requirment where certain user would see certain vailes in the query desiner of the attribute.
    The requirment is we have planing material which is attribute of material
    When X user want to restrict the  values for planning material ,where he is able to see all the planning material.But who is not authorized for all the value.
    Ex: X user has authorization for see planning material 100,101,102. of material But when he try to restrict the planning material in query designer where is getting all values of planing material.
    Or
    is there way to blank the restriction help.so that he can't able to see values while restricting
    Please some one can advise me on it..

    Hi,
    Let me sum up:
    you have an object ZPLNMAT for the planning material
    you have the object 0MATERIAL for material and this object has ZPLNMAT as attribute.
    If you can restrict in the query designer, I suppose this attribute is then as navigationnal and also added in the multi-provider.
    The object ZPLNMAT is checked as relevant for authorization, and you set up a role with the attached values of ZPLNMAT this user should have access to.
    Are you sure the users are restricting on the ZPLNMAT object and not 0MATERIAL, because you should have everything now
    PY

  • Summation of rounded values in query designer

    Summation of rounded values
    Hello,
    we would like to know if there is a function which we could insert into e fixed structure that works like the query function  Summation of rounded values.
    It seems like it doesn' t exist....
    Davide
    "Example
    Summation of rounded values
    The example below shows the values of a simple query where sales have been set with a scaling factor of 1,000.
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,246
    Customer 2
    2,126
    Total
    4,372
    If you now reduce the number of decimal places, the values are rounded:
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,25
    Customer 2
    2,13
    Total
    4,37
    You can see that the total seen locally is not the value that you would expect. This value was calculated first then displayed and then the value was rounded.
    If you activate the Summation of rounded values function, the value is rounded first, then calculated, then displayed. The query then appears as follows:
    Customer
    Sales
    EUR 1,000
    Customer 1
    2,25
    Customer 2
    2,13
    Total
    4,38"

    Hi,
    If you want to sum up the value of pswdt follow the sample which i handled with select statement;
    SELECT MATNR  SUM( LSMNG ) SUM( WEMNG )
              INTO (V_MAT, V_LSMNG, V_WEMNG)
              FROM S012
              WHERE MATNR = WA_MAT-MATNR
              GROUP BY MATNR.

  • All Dates displayed for "Characteristic Values" in Query Designer

    Hello Experts,
    We are on BI 7.0, level 13.  I am having an issue within the Query Designer with regards to dates.  I have a write-optimized DSO that contains 3 date fields (for example, ZDATE1, ZDATE2, and ZDATE3).  Each date InfoObject is of type DATS so the system automatically creates it with reference to 0DATE. 
    When I create a query in the Query Designer, on the left hand side, I expand the "Characteristic Values" node under each date field.  The Query Designer shows the same list of values for each of the 3 dates even though they are not valid values posted in the DSO for those fields.
    For example, ZDATE1 only has 1 value posted in the DSO (01/01/2005).
    ZDATE2 only has 1 value posted in the DSO (01/01/2006).
    ZDATE3 only has 1 value posted in the DSO (01/01/2007).
    Bute when I expand the "Characteristic Values" node in the Query Designer, I see ALL THREE values under each date field.  I would expect to only see the 1 value posted for the InfoObject in the DSO.  Also note that each InfoObject is defined to show "Only posted values in InfoProvider".
    It appears that Query Designer will show all values for the reference InfoObject 0DATE instead of the ones posted to the actual InfoObject in the DSO.  If I delete the data in the DSO, the Characteristic Values list still remains because they exist in 0DATE.  Anyone encounter this before?  How can I get the Characteristic Values list to only show posted values for that InfObject?
    Thanks for your help!
    J

    Thanks for the response.  I went into the DSO and right clicked on each of the Date fields.  I looked at the Provider-specific properties and there is the option for "Query Exec.FilterVal" which only restricts what values appear when restricting during execution, not during query creation.
    Is there someplace else I should look or someplace else I can make change to only display posted dates when creating a query?  Thanks!

  • Hide a row or column for characteristic value # in Query Designer

    Hi gurus,
    I would if we could hide a result row / column if one of the characteristic value is #. The requirement is actually to remove the meaningless row / column from the whole result set. For example, I have a char Material Group in the column. Since not every Material is assigned to a Material Group, I will get the following layout:
    Material_Group A
    Material_Group B
    Material_Group C
    Is it possible to define in query designer so that the column with # will automatically not be displayed?
    Thanks,
    Meng

    Hi Meng,
    I guess we have the same users..
    But there is one thing that is going to make a non sense on the report: if you do not display the "#" for material group, then the total of your query by material group will not be the summation of what is displayed on the screen...and if the user explort the information in Excel (pretty sure they will do so), you will have some calls that your query does not balance....
    Based on that assumption, tell the users to assign a material group to the materials, so that this unassigned column disappears. You could even give them a control report listing all the parts that do not have a material group
    If this is a standard business rule not to have a material group for all parts, then, what you could do is to change the text for empty rows for Material group, then the "#" will disappear and wil be under the text description you defined.
    But keep in mind that your data is made of materials which do not have a material group in their definition, noraml or not ?
    PY

  • Value for a characteristic changed with an other value in Query Design

    I want to change the value for a characteristic (Type) in Query Design (not the description, the value).
    In my cube I have these values:
    Customer *** Type
    22222********SmallCorp
    22223********SmallCorp
    22224********MedCorp
    The report should like:
    Customer *** Type
    22222********LEGALENTITIES
    22223********LEGALENTITIES
    22224********LEGALENTITIES
    Or only the "SmallCorp" value should be changed in LEGALENTITIES.
    How to do that?
    Thanks,
    Dragos

    You can write an exit to replace Type SmallCorp to LEGALENTITIES.
    But this will reflect in other queries too....
    Or If change in modelling is still an option, you can add one more Type 2 in the cube and update in the transformation with Constant =  LEGALENTITIES. Use the Type 2 in the queries.

  • Filter certain InfoObject values in Query Designer

    Hi
    I've the following scenario:
    - InfoObject 0ACCOUNT contains some account numbers with prefix 'XYZ' followed by a number, e.g. 'XYZ12345'
    - These values may never be shown to the analysts, i.e. I need to filter (remove) them in the characteristic restrictions of the Query Designer
    How can I do that? Hard-coding all these values makes no sense as new account numbers could be created anytime.
    I think the only solution is using a customer exit or does someone have another idea?
    Thank you for you help
    Patrick

    Hi Patrick,
    Exclusion with multiple values generally hampers query performance, so better I would suggest you to include required values in filter if that is feasible (As I know there is some limit on number of filter value inclusion also).
    You can simply create a customer exit variable on 0ACCOUNT, select all the master data values of 0account in internal table and then delete the values starting with 'XYZ'.
    DELETE i_t_account where 0account CP 'XYZ'.
    after that you need to populate all these values in variable. I would suggest you to do this operation in I_STEP = 2, otherwise if you do it in step 1 then it might take some time for user to see the selection screen.
    Regards,
    Durgesh.

  • Precalculated Value Set - Query Designer - information Broadcasting NW2004

    Hi Buddies,
    Needs your help!
    i have question regarding to the precalculated Value set distribution type for infomation Broadcasting NW2004.
    According to my understanding, firstly i created a broadCasting setting Z_Test based on Query1 to calculated the value Set, for example ,  for company code.
    And then in the Query Designer, New a Query2 which contains a Variable type precalculated value set and its default value point to the broadcasting setting created before.
    but when i check the query, it present an error message : 'Default value for Variable 'PM_Comp' are not within permitted value range'.
    could anyone can help me out with it?
    Thanks a lot!!
    B.R
    Vivi

    Hi,
    I am also getting the same error. Have you got any solution ??
    Regards,
    Sheetal

Maybe you are looking for

  • Syncing iPhoto and iPhone Albums

    When I create a photo album in iPhoto, it shows up in my iPhone after I sync, but when I create an album with Photos on my iPhone, it does not show up in iPhoto after I sync.  Is this how it's supposed to work?

  • Java reflection and parameter's names

    hi, I have to extract from a method of a given class all types and names of the parameters, i've tryed to use java reflection function: Method[] metodo = temp.getDeclaredMethods(); for (int i = 0; i < metodo.length; i++) System.out.println(metodo.toS

  • MBP (early 08) shows VGA display when nothing plugged in

    My macbook pro early 2008 shows VGA display when there is nothing plugged in. It performs just like there is an actual display plugged into it. I have run AHT and it tells me nothing is wrong. I have reset pram. I deleted all the prefs that relate to

  • List events within a calendar

    Hi, Sorry if I'm asking something really simple, but I can't find how to do it. I'm using Snow Leopard and in iCal I've got a number of different calendars. I'd like to be able to view all of the events in an individual calendar. I can search . and i

  • Enabling ff sync on new main computer

    How to enable firefox sync on new main computer and connect it to one existing firefox sync account - I can see only 2 options: create new or connect (to other main computer) and the account is identified only by mail, which did not change I am on fi