How to sum the  result rows at query designer

Hi,
We want to sum  the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
exp:
   ..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
X..1............9..........6..............7........10.........13..........?????
Edited by: zarata on Oct 23, 2011 12:49 PM
Edited by: zarata on Oct 23, 2011 1:07 PM

Hi,
Could you please provide some more information.
if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex  as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
Regards,
Pravin

Similar Messages

  • How to supress the result in a query?

    Hi Experts!
    I have a query, and by default show results right / down.
    How can I set in design-mode that dont show any result?
    Thanks!

    Hi,
    You mean to say that you want to suppress the result rows while creating the query itself.
    Check these threads.
    How to change default for Suppress Results Rows
    Suppress results row by default when creating new queries?
    Regards,
    Rk.

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • How to spool the result of an query into a file in sql 2000

    Hi All,
    I have an SQL query which iterates through number of times for checking on some conditions and will return results each time. I wants to save the results into an different xml file each time. I tried using below query:
    exec xp_cmdshell 'bcp "use Mimsadaptorlogs; select top 10 * from log order by logdate" queryout "D:\cdr_cg.xml" -T -c -t,'  ---> Its not working as expected.
    I got the Below output:
    NULL
    Starting copy...
    SQLState = 01000, NativeError = 5701
    Warning = [Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'MIMSAdaptorlogs'.
    NULL
    10 rows copied.
    Network packet size (bytes): 4096
    Clock Time (ms.): total       62
    NULL
    Could you anuone please suggest me on this.......
    Thanks and Regards, Bala

    You will need to write a client program to do this. SQL Server is not intended for writing files. People still do it by calling BCP through xp_cmdshell, but this is a dubious practice. Better is to write a CLR stored procedure for the task. However, you
    are on SQL 2000, and the CLR support was added in SQL 2005. Furthermore, there is no XML type in SQL 2000, and the only way to generate XML is with the FOR XML clause. But this output is not well understood by BCP. Then I try: [code} bcp "SELECT * FROM Northwind..Customers
    FOR XML RAW" queryout slask.bcp -c -T [/code] on SQL 2000, I get [code] 11 rows copied. [/code] which is complete hogwash, because there are 91 rows in that table, and the output should be a single XML document, and the output looks like this: [code] <row
    CustomerID="ALFKI"... Bouchers" City="Marseil... tomerID="DUMON" Company... 0.32.21.21" Fax="40.32.... los Hern ndez" ContactT... n Steel" ContactTitle="... e" ContactTitle="Market... ="Salzburg" PostalCode=... " Phone="(21) 555-3412"... ty="Charleroi" PostalCo...
    <row CustomerID="WARTH"... [/code] I have truncated the output on the right side, but the left side is authentic. It really is that bad.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to tokenize the result from a query

    Hi,
    I need some help in writing a query or stored procedure for the following scenario
    select rname from emp where username='user200';
    This query will return the result,as comma separated,in the format r100,r101,r102
    Now,I have to write another query using the above result like below
    select place from loc where rname in ('r100','r101','r102');
    Basically,I need to break the string 'r100,r101,r102' into 3 tokens.Can someone help me write a stored procedure or query for this?
    Thanks
    Ravi.

    Ravi, Try this.
    CREATE OR REPLACE procedure str_token
    is
    input_buffer varchar2(100);
    var1 varchar2(10);
    var2 varchar2(10);
    var3 varchar2(10);
    n1 number(4);
    n2 number(4);
    n3 number(4);
    cursor c1 is
    select place from loc1 where rname in (var1,var2,var3);
    begin
    select rname into input_buffer from emp1 where username='user200';
    n1 := instr(input_buffer,',',1,1);
    n2 := instr(input_buffer,',',1,2);
    n3 := length(input_buffer) + 1 ;
    select
    substr(input_buffer,1,n1-1),
    substr(input_buffer,n1+1,n2-n1-1),
    substr(input_buffer,n2+1,n3-n2-1)
    into var1, var2, var3
    from dual;
    for i in c1
    loop
    dbms_output.put_line('place:'||i.place);
    end loop;
    end;
    Regs,
    Karthik

  • How to get the standard Menu of Query Designer into Web Template

    Hi Experts,
    is there a way on how to put the standard menu within Bex Query Designer (after executing a Query with the Query Designer you get into ad-hoc reporting with a menu including several functions like print, show as..., properties, etc) into an individual Bex Web Template?
    Copy & Paste source code will not work I guess because of several javascript functions I don't have access to.
    Thanks & Best regards
    Tobias

    BEx queries are displayed on the web using standard web template 0ANALYSIS_PATTERN or some customized version base don your implementation.
    You can either include the 0ANALYSIS_Pattern web template in your custom template or use Save as to create a new template with 0ANALYSIS_Pattern  AS THE STARTING POINT.

  • How to sum the result from 2 different queries?

    Hi ,
    I would like to add the reslut of the below queries and insert into the status_count column of the temp table called edr_status_by_report_data.
    How could I do that ?
    SELECT         
              COUNT(status_code)
        FROM (SELECT site_id,
                     site_lane_id,
                    (SELECT NVL(MAX(interval_start_date_time), date_time)
                       FROM edr_rpt_tmp_grouping_table
                      WHERE interval_start_date_time <= date_time) bin_start_date_time,
                            TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                            vehicle_status  status_code
                       FROM edr_status_by_veh_data
                      WHERE vehicle_error_count = 0                         
                        AND vehicle_status > 0                   
             ) vehicles
    SELECT         
              COUNT(status_code)
        FROM (SELECT site_id,
                     site_lane_id,
                    (SELECT NVL(MAX(interval_start_date_time), date_time)
                       FROM edr_rpt_tmp_grouping_table
                      WHERE interval_start_date_time <= date_time) bin_start_date_time,
                            TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                            vehicle_status  status_code
                       FROM edr_status_by_veh_data
                      WHERE vehicle_error_count = 0                         
                        AND vehicle_status = 0                   
             ) vehicles
          ;              

    That just becomes:
    SELECT count(*)
    FROM   (SELECT site_id,
                   site_lane_id,
                   (SELECT NVL(MAX(interval_start_date_time), date_time)
                    FROM   edr_rpt_tmp_grouping_table
                    WHERE  interval_start_date_time <= date_time) bin_start_date_time,
                   TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                   vehicle_status status_code
            FROM   edr_status_by_veh_data
            WHERE  vehicle_error_count = 0
            AND    vehicle_status >= 0);Or, if you needed to have both columns separately for some other purpose, you could still get them in one query:
    SELECT COUNT(CASE WHEN status_code > 0 THEN 1) count_gt_zero,
           COUNT(CASE WHEN status_code = 0 THEN 1) count_zero,
           COUNT(CASE WHEN status_code > 0 THEN 1)
             + COUNT(CASE WHEN status_code = 0 THEN 1) total
    FROM   (SELECT site_id,
                   site_lane_id,
                   (SELECT NVL(MAX(interval_start_date_time), date_time)
                    FROM   edr_rpt_tmp_grouping_table
                    WHERE  interval_start_date_time <= date_time) bin_start_date_time,
                   TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                   vehicle_status status_code
            FROM   edr_status_by_veh_data
            WHERE  vehicle_error_count = 0
            AND    vehicle_status >= 0);

  • How to handle the prefix logic in query designer

    Dear all,
    Please suggest me to handle the prefix logic or any combination of values need to be find from string.
    like if i want to find data which contain "prime" word in the data or as prefix.
    like data "prime coil" so need to identify that data contain prime word.

    Hi Viral,
    Please use Virtual Characteristics to handle this requirements.
    Thanks,
    VSK

  • How to get the results for given Bind Variable

    Hi
    Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
    snippet as follows
    viewObject.setNamedWherClauseParams("name","hei");
    viewObject.executeQuery();
    How to get the results from viewObject is my question..?
    Thanks in advance

    Should be something like
    while (vo.hasNext()){
    Row r = vo.next();
    r.getAttribute....
    You might want to read the "most commonly used methods" appendix in the ADF Developer Guide.

  • Extracting the result of a query into a internal table

    Hi,
    Does anyone knows or have an idea how to extract the result of a query into a internal table, is there a function module or BAPI?
    Thanks in advance,
    CK

    So then normally I would use a statment like:
    IFunctionTemplate ftemplate = repository.getFunctionTemplate("<b>BAPI_SALESORDER_GETLIST</b>");
    to call a particluar function, but I tried using
    IFunctionTemplate ftemplate = repository.getFunctionTemplate("<b>BAPI_MDDATAPROVIDERBW_GETCATALOGS</b>");
    and it did not seem to work. I also tried -
    IFunctionTemplate ftemplate = repository.getFunctionTemplate("<b>MDDataProviderBW.GetCatalogs</b>");
    How do I format the function?
    Thanks
    Paul

  • Inserting empty row in query designer

    Hi Gurus
    Can any one advice me on how to insert a empty row in Query designer
    I'm using structure
    Thank you

    Refer - /thread/814122 [original link is broken]

  • How to execute a procedure depending on the result of a query?

    Hello, I'm new in ODI.
    I want to execute a procedure depending on the result of a query Oracle table.
    We have a Oracle Table whit a column that contains two possibles values.
    I want read the table, row by row, and depending on this value, execute a Procedure or execute another.
    How can i do?

    what you need to do is
    1. create a variable which "new_var2" which has the count of the number of rows you want to process. must be data type numeric.
    2. copy "new_var2" to the package screen.
    3. duplicate the "new_var2" on the package screen and evaluate the variable and test for "> 0" zero, call it "new_var2_E"
    3. create a new odi variable "new_var1" with a refresh of "select field1 fom (select field1,rownum as rownumber from tablex) where rownumber = #new_var2" in the relevant schema and technology.
    4. copy "new_var1" into your package (some where in the flow)
    5. right click the "new_var1" variable in you package screen and you should get the option duplicate step (click on that)
    6. select the the duplicate "new_var1" on the package screen and correct the the name to something meaning full to you "new_var1_E", also change the "type" to "evaluate variable" then you should see a "value" box. enter one of the values you want to test in the box (remember do not put in quotes ' )
    7. now back on the package screen join the "new_var1" to the "new_var1_E" with an OK line
    8 you now join "new_var2" to "new_var2_E" with OK
    9 you join "new_var2_E" to "new_var1"
    10. you then join the "new_var1_E" with an OK or a KO line to the relevant procedure.
    12. you need to duplicate "new_var2" in the package screen one more time this time and call it "new_var2_D" set the type to evaluate and then select the increment of -1
    13. the relevant procedure to "new_var2_D" with an OK
    14. join the "new_var2_D" to the "new_var2_E" with an OK
    15. this should close off the loop now the exit point is "new_var2_E" with a KO line to the next part of your process....
    Basically you should end up with a loop on new_var2 decementing, and it is used to get a specific next record row from your table.
    Hope this helps, sorry it is a little long winded..
    Edited by: DavidGD on Feb 8, 2009 3:29 PM

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • How to use the result of a sql query for a max () function

    Hi
    I wrote a query on which i wrote
    "select max(id) from users "
    how can i use the returned value.
    if i made the var name ="userid"
    can it be userid.rows[0] or what.
    thnx for any help

    Hi!
    The result of this query will be the max ID of users' IDs.
    Let say we have:
    String sql="select max(users.id) from users";
    Statement st = ctx.conn.createStatement();
    ResultSet rs = st.executeQuery(sql);
    rs.next();     
    So you can get the max Id in the following way:     
    int maxId=rs.getInt("id");
    Regards,
    Rossi

  • How to display the result of  excutions(insert/update/delete rows)

    Hello.
    Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
    In additional, I also like to show the hierarchy of scenario in the same view.
    So, I need the query using the information of the ODI repository.
    If it is possible, I also like to have the decription of the tables in the ODI repository.
    Can anyone tell me how can I get the information of the counts of excution?
    Thanks in advance.

    Hi,
    You can get that information from the API getPrevStepLog. Does it work for you?
    Download the last API reference manual from:
    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs

Maybe you are looking for

  • ABAP or FM for post-processing of infopackage

    Gurus, Does anyone know the name of the ABAP program or function module that handles the post-processing of an info-package.  For instance, we have an infopackage that needs to delete prior reqeusts where the selection criteria match.  The infopackag

  • IDvd - Onestep dvd from movie, not working?

    I am trying to make a onestep dvd from movie - from an avi file... but every time I make one (I followed all the directions perfectly). It looks like it is burning and takes about 4  hrs. but nothing happens. it just says I have inserted a blank dvd.

  • Iphone Locking To No Bars But Still Having 3G

    So, case of beer to anyone that can actually give me a solution to this - as its driving me nuts. Had my Iphone 4 for over a year now. For as long as I can remember it sometimes, and randomly, drops to no bars signal. This of course means i can't mak

  • PT91 Attendance/Absence Report

    Hi Friends, I am running a standard report PT91 which gives attendance/absence report. I defined the indicators for the attendances like P for Present etc., And when I enter a attendance record in IT2002, the indicator is coming as "P". But if I ente

  • DSC - Event triggering for Single Process Shared Variables

    Hello, I understand how to set up a Value Change Notification for Network Published Shared Variables so that an event will trigger when that particular Shared Variable changes. However, I can't figure out how to do the same for Single Process Shared