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

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

  • 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

  • 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

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

  • Adding columns to content query

    I have created a Content Query that retrieves all of my tasks from my site collection that meets my filter criteria.  However, The Item Views are incredibly limited
    (basically just the title).  I want to add ~5-7 additional columns to the query, such as due date.  I understand I may have to do this through SharePoint designer.  Please advise and if coding is required, please let me know what code to use.

    Hi,
    I understand that you want to add columns to content query web part.
    To include additional columns in the Web Part's query, we need to perform some minor customization in the .webpart file. We should programmatically instruct the Web Part to rename columns to names the default XSLT transformation expects, and then render
    the columns by using the default XSLT transformation styles. For more information:
    http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).aspx
    But the default XSLT transformations can render the following four fields:
    Title, Description, LinkUrl, and ImageUrl, we can  add a column and display it as the
    Description field in the Web Part. If we want the other columns to appear in addition to the KB title and product, modify the XSLT transformation and add the rendering for the additional columns.
    More information:
    How to: Customize the SharePoint Content By Query Web Part by Using Custom Properties (ECM):
    http://msdn.microsoft.com/en-us/library/aa981241(v=office.14).aspx
    How to: Customize XSL for the SharePoint Content By Query Web Part (ECM):
    http://msdn.microsoft.com/en-us/library/bb447557(v=office.14).aspx
    How to: Customize the Rendering of a Field on a List View:
    http://msdn.microsoft.com/en-us/library/ff606773(v=office.14).aspx
    Customizing List Views with XSLT Transformations:
    http://msdn.microsoft.com/en-us/library/cc300164(v=office.12).aspx
    Best Regards,
    Linda Li

  • 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

  • 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

  • SQL Loader - adding column values

    Hi everybody,
    Is it possible to have a column value in SQL Loader control file that is a function of two other columns. For example I have table of 3 columns c1, c2, c3
    and data file is having c1, c2 and I want to specify c3 as c1+c2 in the control file, so that it's populated in the table while loading data file. I tried this on date column but it gave me error ora-00981.
    Can you tell me exact sysntax if possible.

    LOAD DATA
    INFILE 'C:\SQLLOADER\AREA.TXT'
    APPEND INTO TABLE AREA
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (c1,
    c2,
    c3 ":c2+:c1"
    kuljeet pal singh

  • Adding columns in a query.

    Hello,
    I have 12 columns(jan,feb,mar,apr,......dec) in budget table.
    Budget table:
    year jan feb mar apr may jun jul aug sep oct nov dec
    2009 1 2
    2010 3 5
    2009 3 5 6
    I need to add the values of jan,feb,..... in a query and the sum of the same year.
    Output of the query for the above table for 2009 should return 1+2+3+5+6=17 and for 2010 3+5=8
    Please help me in writing the query to achieve the above result.
    Thank u

    Something like this?
    with t as
        select '2009' Year, 1 Jan, 2 Feb, null Mar, null Apr, null May, null Jun, null Jul, null Aug, null Sep, null Oct, null Nov, null Dec from dual union all
        select '2010' Year, null Jan, null Feb, 3 Mar, null Apr, 5 May, null Jun, null Jul, null Aug, null Sep, null Oct, null Nov, null Dec from dual union all
        select '2009' Year, null Jan, null Feb, 3 Mar, null Apr, 5 May, 6 Jun, null Jul, null Aug, null Sep, null Oct, null Nov, null Dec from dual
    select t.Year, sum(nvl(t.Jan,0)+nvl(t.Feb,0)+nvl(t.Mar,0)+nvl(t.Apr,0)+nvl(t.May,0)+nvl(t.Jun,0)+nvl(t.Jul,0)+nvl(t.Aug,0)+nvl(t.Sep,0)+nvl(t.Oct,0)+nvl(t.Nov,0)+nvl(t.Dec,0)) as Year_Sum
    from t
    group by t.Year
    /

  • Query Schema error adding columns for a query at workbench channel

    Hello experts,
    For our customer, we have created a custom query and it has been included into the query group Master Agreement List to be also used on the Master Agreement List Channel. However, when use tries to add columns, following error is raised:
    Do you know if this issue can be fixed? Is there any system property controlling this property?
    Thanks in advance and best regards,
    Isaac

    Hello Isaac,
    Thank you for providing the additional details. Some of the saved changes to the advanced list page query is stored as XML data in the database, so as rightly pointed out by Bogdan it appears that you may have hit the limit especially when dealing with large number of columns. Since the limitation is
    at the DB level our options for a solution will be limited as well. I’m following up with development team to see if there is a way to optimize the xml to make little bit more room or may be come up with an alternate approach. Either way it would require product code change. It would be helpful if you could open a message and add the details so we can track it.
    Regards,
    Vikram

  • Append Lookup Column Values using SharePoint Designer Workflow

    Hi all,
    I can set the value of a lookup column using number;#itemname (ex. 1;#MyValue), but I need to add a value to a lookup column that has existing values. I have tried setting the lookup column to the current value plus the new value, but it fails. Please assist.
    Regards,
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    This would fail because when using a lookup, that value must exist. The lookup creates a reference and if it can't find the reference in the list it's looking up to, it will fail. If you want to set it to something that is not in that list, then you'd
    either need to add it to the list first (run a loop through the list and check to see if it's there, Yes=set the field, No=create new item in list and then set field) or use a single line of text field.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • 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

Maybe you are looking for

  • Checking in a Compiled Help File to RoboSource Control

    We're getting ready to upgrade from RoboHelp X3 to X5 and begin using RoboSource Control. I have X5 and RSC installed on a test machine and noticed that RoboHelp HTML doesn't appear to automatically check in a newly compiled .chm file when I close th

  • Keys in GeneratorText.properties not used !!!

    hi all, I found in GeneratorText.properties some keys ignored and are not used in the generation process like: NOT_NULL_VIOLATION, CHECK_CONSTRAINT_VIOLATION How can I generate these keys in the *.properties files to translate error messages? yours,

  • Conflict issue in oracle streams

    Hi, Am having a stream replication environemnt set on scott.emp. My issue is say the stream setup is between two server one is in UK and other is in US. I want that the users of UK wont be able to update the US records and similarly UK records not to

  • Logic Boards ARRRRGGGGHHH

    Ok, the logic board has gone for the THIRD time in the iBook. Only this time, the extended warranty for this has expired and I'm going to have to pay for it. Any ideas how much this costs, I don't use the iBook all that much but I'd still like to hav

  • Currency with comma separator

    Hi all , I have a currency filed TFULLVACWTG. I am summing all values like this TFULLVACWTG = VFWTG001 + VFWTG002 + VFWTG003 + VFWTG004 + VFWTG005 . iam getting output like  this 14092.00 i should get output like this 14,092.00 I should write output