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.

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

  • 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

  • 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

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

  • 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

  • Bifurcation of values in 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,
    i think yes. You need two rules for your keyfigure and this rules contains an IF...ELSE loop like this:
    For negativ keyfigure:
    Rule1 = (KeyFigure LT 0) * Keyfigure
    For positiv keyfigure:
    Rule2 = (KeyFigure GT 0) * Keyfigure
    Hope it helps
    Regards

  • Default values in query designer

    Hi,
    We have little weird requirement in our project.
    We have 2 variables on week char. in the query. One in global restriction which is manual input and other is in default values which is populated through customer exit. This is done to make sure if user does not enter anything on the variable screen in weeks variable, weeks will be populated from customer exit. In case if he/she enters anything  on the screen ,query should only consider values entered by the user.
    E.g If user executes the report and doesnu2019t input anything, customer exit will populate 200901 to 200910. Again if user goes to variable screen from the option in the analyser and inputs 201001 to 201015, query should only consider 201001 to 201015 values. But in this case values populated from customer exit in earlier run do not get delete automatically. I want to delete those values, if user inputs anything on the variable screen.
    I was thinking of deleting entries from e_t_range table but this is not possible as e_t_range table in turn passes the values to some SAP internal table(in std sap code) which we can not touch) and clears the e_t_range table in each run.
    Could you please suggest any other way to resolve this issue?
    Many Thanks.

    Hi,
    GO to the Customer exit and check what is the I_STEP value it is taking.
    I think the Query is not refreshing with the for the second time when the user is imputing the values manually.
    Use I_STEP = 2 in the Customer exit and check.
    For more details
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
    Santosh

  • Query Designer in BI - How to cumulate value and get the Max and Min value.

    I want to create a report with  query designe of BI 7r. is it possible. the data from the cube will be
    Year ,           Exposed Quantity
    1999 ,             200
    2000 ,            100
    2001 ,            -100
    2002 ,             300
    2003 ,           - 200
    2004 ,             100
    2005 ,            -200
    Calculation should be - Refer the cumulative value field
    Year  ,          Exposure Quantity ,   Cumulative value
    1999  ,            200   ,                             200
    2000  ,            100  ,                              300
    2001  ,           -100 ,                               200
    2002  ,            300  ,                              500
    2003  ,          - 200  ,                              300
    2004  ,            100  ,                              400
    2005  ,           -200  ,                              -200
    An the out put of the report  should be Max value ie 500 and Min Value -200.
    My question is that is it possible to do in the front end ie in the Query Designer (BI 7) If so how.
    Edited by: Parakadavil Chacko Mathew on Oct 8, 2009 3:52 AM

    Hi there,
    Create 4 column,
    1st will show regular values for the key figure,
    2nd will show Cumulative value, in Query Designer, Just right click on the this 2nd key figure properties, calculation tab there you can check on Cumulated option, and define the calculation direction as Calculate along the Column.
    3rd will show Minimum value , Just right click on the this 2nd key figure properties, calculation tab calculate single valuea as minimum.
    4th will show Minimum value , Just right click on the this 2nd key figure properties, calculation tab calculate single valuea as Maximum.
    Regards,
    Rajdeep Rane.

  • Query Designer - Hide Repeated Key Values - Doesn't work in the web

    Hello Experts,
    I'm facing a problem with a query. The user requested that he/she wants to see all the values of the key values.
    I already unchecked the option "Hide repeated key values" in query designer, but it still hiding it. I tested in BEx and it's working fine, but when I run it in the web the key values are being hidden.
    Anyone knows what is happening? I'm not using WAD and there is no possibility to use it.
    Thanks,
    Helder

    Hi,
    I have seen this problem - setting that option still does not show the repeated key values in web. You will indeed need to use WAD and uncheck that option in the properties of the analysis item. If you can't do that, the other option would be to do this change in the default web template (which is generally 0Analysis_pattern for BI WAD) but note that this will affect all queries.
    Also, please note that if the query is exported to excel, it will show the repeated values. This is the reason sometimes the users ask for key values to be repeated - maybe you would want to confirm that.

  • Text value is not getting displayed in Query designer !!

    Dear experts..,
    i have created a new query in query designer using my info provider and then selected one field in default value and then trying to restrict that particular field while selecting the restriction in query designer am getting the exact text value but after generating the report instead of text value , key value is getting displayed....so how can i get text instead of key value??
    please help me friends....
    i have posted in OSS mesage also...i got a reply like...even i didnt understand his reply too...what he is trying to say?
    whether can i get text display or not???
    can any one help me in this regard???
    SAP Reply----
    Hello kumar,
    After another analysis I have to inform you about general concept of
    "compounded characteristics".
    A compounded characteristic bounds two characteristics. The technical
    name is generated by both technical names of the two characteristics
    combined by two underlines "__".
    An individual text is only available for one single combination of both
    characteristics.
    Example:
    =======
    Compounded characteristic "Famous family name" is a combination of
    characteristic "COUNTRY" & "ETHNIC". Technical name: COUNTRY__ETHNIC
    Values for Country: USA, Australia
    Values for Ethnic: Asian, Latino
    Possible value combinations with individual text:
    USA & Asian; text: "Ling"
    USA & Latino; text: "Sanchez"
    Australia & Asian; text: "Chu"
    Australia & Latino; text: "Garcia"
    (Keep in mind the individual text only valid for the specific
    combination.)
    In analogy to the issue that you reported, you want to restrict this
    compounded characteristic. In the window where you select the restrictedvalue (called Selector) you'll see on the left hand side all available
    combinations of the characters with an individual text.
    You select family name "Chu" and drag'n'drop it to the right side.
    Actually you can only restrict the right compounded characteristic. In
    our example you would restrict on characteristic "ETHNIC" with value
    "Asian". (When you switch on technical names this comes more clear). Thetext "Chu" is displayed in the context of Selector because you selected
    value combination Australia & Asian. But in the end it's just a
    placeholder(!) for any combination of characteristic "ETHNIC" and value
    #Asian#; in our example it could be USA & Asian "Ling" or Australia &
    Asian "Chu").
    By leaving the Selector the individual text is gone because now the
    context is lost between the two characteristics. You have just a
    restriction on characteristic "ETHNIC" with value "Asian". An individualtext can't be displayed because the compounded characteristic is not
    specified for this restriction.
    You're right, it is confusing when "loosing" the text of a restriction.
    But accoring to the concepts of the compounded characteristics it
    is a correct behavior.

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

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

Maybe you are looking for

  • My computer no longer recognizes my user name to log in

    I am the primary account on this computer but it no longer recognizess my user name to log in.  I can log in on my daughters account though.  No body has changed any settings on this computer  How can I fix this problem?

  • Using arrays in apex

    hi i want to know if some can guide me how to use array in apex. i have a tabuler report with 4 columns. i need to write a validation in the tabuler report for that i need to used array. can I directly access the colums as i have shown below? or do i

  • Choosing the correct domain name

    Hi I just need a bit of advice about domain names. I have a commercial mail order company and couldn't get the .co.uk version of my company name so chose the .info equivalent - http://www.thelittlethings.info - I am constantly anxious about it, belie

  • Patch 9771731 failed

    Hi, db=10.2.0.3 apps=12.1.2 os=linux5 while applying patch 9771731 it struck when it comes to MSC product or user i have open SR with oracle support they spend morethan a week on thsi issue but still no solution this happend on production instance th

  • Tabbed Panels & IE 7 Weirdness

    I have a page that contains 5 instances of the DW CS3 spry tabbed panels. All work fine in IE 8 & FF 3 on Windows (and Safari & FF on Mac). But in Win IE 7, the content of two of those panels is hidden on page load. The tabs and text within the tabs