How to Merge and Sum across columns??

Hey guys I have an interesting Problem (at least interesting to me:p). I am trying to figure out how to use numbers to collate or group certain column data and then sum the values of the grouped data. below is a snippet from my an error log i've parsed. The final step I need to do is to create a 3 column output where the values are - Error (merged), # Errors (SUM), Error Detail(merged).
I hope this makes sense and any help is greatly appreciated.
24900 291 Client/zimpErrVal.h
24900 96 Client/zimpErrVal.h
24900 82 Client/zimpErrVal.h
15007 700 Alllocation/zsmErrVal.h
15209 15274 Session/zapErrVal.h
15209 228 Session/zapErrVal.h
15209 2447 Session/zapErrVal.h
best,
Curtis
Message was edited by: Curtis Wiilliams

Well there is a lot of interesting stuff going one here. The Hidden Col formula works great when the Err Code Col is sorted. When Err Code is random, the Hidden Col repeats counts some Err Codes twice thus giving an incorrect total...
/___sbsstatic___/migration-images/migration-img-not-avail.png
whereas the sorted Err Code returns the values I think your formula intended
/___sbsstatic___/migration-images/migration-img-not-avail.png
Also for some reason I can't get the Table 2 - Col A formula to recognize Table 1 - Err Code as a reference???
=IF(ROW()-1>MAX(Table 1 :: Hidden),"",LOOKUP(ROW()-1,Table 1 :: Hidden,Table 1::'Error Code'))
/___sbsstatic___/migration-images/migration-img-not-avail.png
how the heck do you post a screenshot???
Message was edited by: Curtis Wiilliams
Message was edited by: Curtis Wiilliams

Similar Messages

  • How do I dynamicaly sum a column in Pages without specifiying start/end?

    How do I dynamicaly sum a column without specifiying a start/end range?
    I want to add a new row anytime and have that sum total reflect the new row value.

    The best answer will depend upon knowing what file format.  Audacity app is a popular answer but if you are dealing with a lossy format such as AAC/.m4a or .mp3 you are better off using using editing tools for those (MPEGStreamclip and MP3Trimmer respectively).

  • Summing across columns

    Sorry, this is a very basic question that I haven't found the answer to when searching.
    I am setting up a basic table to keep track of business receipts.  I would like the total to be automatically filled in as I tab across the row.
    I have  Amount   Tax   Shipping     Total    after I fill in the columns, is it possible for the total to be automatically summed?
        ie        $10.00   $0.50                   $10.50
    I've tried a few ways, but have not gotten it to work on each row.
    Thanks
    - Jill

    Sure, you can sum across as easily as you can down. In this screenshot I used your figures & selected the three cells across & then dragged the sum shortcut to the last cell. You can then fill down with that formula by dragging the tiny circle.

  • How to save and retrive table column values added via view enhancement

    Hi,
    I want to enhance standard webdynpro component FITE_VC_REVIEW.
    I want to add new column to Fight Info Table and also to Hotel Info table.I can do UI changes via view enhancement .
    First Approach: I add new fields to Flight Info and Hotel Info structure.
    Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
    Question :
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
    Question:
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    And which approach will be good.
    Regards,
    Madhvika

    no ans yet

  • How to save and retrieve table column values added via view enhancement

    Hi,
    I want to enhance standard webdynpro component FITE_VC_REVIEW.
    I want to add new column to Fight Info Table and also to Hotel Info table.
    First Approach: I add new fields to Flight Info and Hotel Info structure.
    Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
    Question
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
    Question:
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    And which approach will be good.
    Regards,
    Madhvika
    Moderator message: please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Feb 16, 2011 3:02 PM

    no ans yet

  • How to merge and centre cell on Numbers 3.2?

    Hello, I need to merge and centre two cells on Numbers 3.2 and haven't found any way to do it yet?

    I used to love merging cells to ge things looking just the way I thought they should. SG and others on this forum have convinced me to avoid it. It does not take much tweaking to get the results I used to get with merged cells.
    I entered the text in C1. There are no merged cells. The alignment is right justified. To get it centered on B and C I typed option-tab twice after "Cells". It is a little difficult because you can't see option-tab while you are entering it. Once you leave the cell its affects are manifest.
    quinn

  • How to get and set the column order in SharePoint list forms

    Hi,
    I want to read the column order of the SharePoint list forms in SharePoint 2003 sites using any of the available web services and need to set the same order
    in the newly created list in SharePoint 2010.
    I am able to read the fields from SharePoint 2003 and creating the list with same fields in SharePoint 2010, but the column order is not maintaining in
    list forms.
    Also, I need to created the views from 2003 site to 2010 site.
    Please help me...
    Thanks in advance...

    Hi,
    Please try to use the following code to programatically change the order.
    SPList list = web.Lists["Example List"];
    if (list.ContentTypes.Count > 0)
    SPContentType ct = list.ContentTypes[0];
    string[] names = {"Example_x0020_One", "Example_x0020_Two", "Example_x0020_Three"};
    ct.FieldLinks.Reorder(names);
    ct.Update();
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/ce66fd65-2882-4bda-8142-89e116d8b90f/how-to-set-the-order-of-the-fields-in-list-forms?forum=sharepointdevelopmentprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Can anyone describe how to cut and paste table columns in Data Modeler?

    A number of times I have tried using the copy and paste columns functionality in Data Modeler, but in all circumstances when I've copied a set of columns from a table (by highlighting the column set and pressing the copy columns button), opened a new table, and pressed the paste columns at the end button, nothing has happened. is there some unintuitive thing that I need to do?

    Ok, thanks.
    I see I left "Copy" out of the first reply I sent.
    1. Create a table or tables, say tables A and B.
    2. Expand the table which has the columns you want to copy, say table A, in the browser
    3. Shift (or ctrl) select the columns and select COPY from the context menu.
    4. Click in the table you want to copy to, say table B, in the diagram and right-click to use the context menu , select paste
    or select the table B in the browser and right-click, select paste.
    Are you using the copy in the menu?
    There was a bug in our Early Adopter that required you continued to hold the keys, but this has been addressed - you can read this thread to see how things were handled there: Re: Data Model: set of columns

  • How to select and sum  internal table records

    Dear Friends
    I kindly ask you if we have select statement
       if s_mtart = 'z003'
          select single pvprs from ckmlcr into ckmlcr-pvprs
    where poper EQ s_poper and
          kalnr = itab2-kalnr  and
          bdatj = itab2-bdatj and
          curtp = itab2-curtp.
    like this how can I calculate how many record it got and I want to get summation of this field(pvprs).And for all poper's must contain.
      Please  Let me remind you my itab is already open I didn't put any thing for this situation

    it seems to be you written this SELECT in a loop. if so,
    instead of pushing the values into ckmlcr-pvprs ,create an internal table
    data : begin of itab,
         pvprs  type ckmlcr-pvprs ,
        end of itab.
    then just after that SELECT SINGLE,
    select single pvprs from ckmlcr <b>into ITAB-pvprs</b>
    where poper EQ s_poper and
    kalnr = itab2-kalnr and
    bdatj = itab2-bdatj and
    curtp = itab2-curtp.
    IF SY-SUBRC = 0.
      APPEND ITAB.
    here either you can use APPEND OR COLLECT.
    If you use COLLECT,all the values will get summed up and final sum will be in the table ITAB-pvprs.
    ENDIF.
    After all loops your itab will have the totals.
    DESCRIBE TABLE ITAB LINES V_LINES.
    V_LINES Will have total no of lines.
    Regards
    srikanth

  • How to Group and Sum rtf elements

    Dear Friends,
    I am having limited knowledge of XML so looking for your help
    I am trying to create external template for Bill Presentment Architecture which is in .rtf. Template is having 3 section Invoice header, Lines and Tax summary.
    Invoice Header and line section is ok, but facing some issues with Tax section.
    LINE SECTION
    LINE_ID     ITEM     RATE     QTY     BASE_AMT     TAX_RATE     TAX_AMT     TOTAL_AMT
    1     P0001     20     10     200     21%     42     242
    3     P0003     40     30     1200     21%     252     1452
    4     P0004     20     100     2000     10%     420     2200
    5     P0005     50     10     500     10%     105     550
    2     P0002     50     20     1000     6%     210     1060
    EXPECTED RESULT IN TAX SUMMARY SECTION WHICH I AM LOOKING FOR
    TAX RATE           BASE_AMT          TAX_AMT          TOTAL_AMT
    21%          1400          294          1694
    10%          2500          525          2750
    6%          1000          210          1060
    Looking for your help, much appriciated.
    Regards,
    Jay
    Edited by: 992820 on Mar 9, 2013 5:20 AM

    >
    Tax Code Taxable amount
    VAT 6% 1200
    VAT 6% 1400
    VAT 7% 1000
    VAT 7% 2000
    I used you code
    <?for-each-group:LINE;./tax_code?> G tag
    and getting following result
    VAT 6% 1200
    VAT 7% 1000
    >
    because you have loop by tax_code and no loop and no aggregation function (e.g. sum) for amount, so amount will be from first row
    try add sum function for amount
    also http://docs.oracle.com/cd/E18727_01/doc.121/e13532/T429876T431325.htm#I_bx2Dcontent
    Summary Lines: Check this box if you want to display summarized transaction lines. Grouped lines are presented in the Lines and Tax area of the primary bill page.so it's may be not template problem but some settings?

  • Sum of columns in union query

    hi, i am using oracle 10g database..
    how to get the sum of column in union query ?
         select * from (select 100 records from dual), (select 50 available from dual)
    union
    select * from (select 200 records from dual), (select 150 available from dual)
    display should be like
                     records         available
                      100               50
                      200               150
    total            300               200thanks ...

    Peter vd Zwan wrote:
    try this:Grouping by records will not produce correct results:
    SQL> with a as
      2  (
      3  select * from (select 100 records from dual), (select 50 available from dual)
      4  union
      5  select * from (select 100 records from dual), (select 100 available from dual)
      6  union
      7  select * from (select 200 records from dual), (select 150 available from dual)
      8  )
      9  select
    10    case when grouping(records) = 0 then null else 'total' end tot
    11    ,sum(records)   records
    12    ,sum(available) available
    13  from
    14    a
    15  group by
    16  rollup (records)
    17  ;
    TOT      RECORDS  AVAILABLE
                 200        150
                 200        150
    total        400        300
    SQL> select  case grouping(rownum)
      2     when 1 then 'Total'
      3   end display,
      4          sum(records) records,
      5          sum(available) available
      6    from  (
      7            select * from (select 100 records from dual), (select 50 available from dual)
      8           union
      9            select * from (select 100 records from dual), (select 100 available from dual)
    10           union
    11            select * from (select 200 records from dual), (select 150 available from dual)
    12          )
    13    group by rollup(rownum)
    14  /
    DISPL    RECORDS  AVAILABLE
                 100         50
                 100        100
                 200        150
    Total        400        300
    SQL> SY.

  • How to get last row and sum of all columns in one query

    Hi ,
    is there a way to get last record for a column and sum of all record for another column in the same query.
    Best Regards ,

    You should define your requirements properly for volunteers to help here..
    Your data is not good enough to provide you accurate solution. Reason being you dont have a proper column which differentiates between first and last entry.
    The solution becomes easy based on your desgin.
    I have introduced a grouping column called "id" and a time column called "time_of_insert" (only this way you can confidently say that you can differentiate between first and last (also a fool proof solution) --- you may optionally use sequence(instead of date though if you say you may end up inserting two rows at the same time, then probably sequence would be a better choice to differentiate rather than a timestamp field) etc...)
    With your sample data something like this can be done to achieve your desired result.
    WITH dataset AS
            (SELECT 1 id,10 used, 8 remain,systimestamp+1/24 time_of_insert FROM DUAL
             UNION ALL
             SELECT 1 id, 1, 7,systimestamp+2/24 FROM DUAL
             UNION ALL
             SELECT 1 id,2, 5,systimestamp+3/24 FROM DUAL
             UNION ALL
             SELECT 1 id,1, 0,systimestamp+4/24 FROM DUAL
             UNION ALL
             SELECT 1 id,0, 0,systimestamp+5/24 FROM DUAL
             UNION ALL
             SELECT 1 id,1, 4,systimestamp+6/24 FROM DUAL)
    SELECT *
      FROM (SELECT SUM (used) OVER () sum_all,
                   FIRST_VALUE (remain)
                      OVER (PARTITION BY id ORDER BY time_of_insert DESC)
                      last_row
              FROM dataset)
    WHERE ROWNUM = 1;
    Output:
    SUM_ALL       LAST_ROW
    15                  4
    Cheers,
    Manik.

  • How do I sum across the same table in multiple sheets?

    So I'm trying to figure out an annoying problem.
    I have a largish (100's) amount of data with each collection being a table in a sheet, one sheet per data collection. This means I have 100's of sheets, each with the same table name and layout. Each sheet has several hundred data points in it.
    How do I do a sum across all of the same table in all the sheets?
    For example I want to do Sum('Data Sheet Number *'::'Table 1'::A1) to get a sum of everything in all the A1 cells of all the sheets named 'Data Sheet Number ' followed by anything (I'm using the star in the same way one would do it in a shell...)
    Thanks!
    Message was edited by: unusedusername
    Message was edited by: unusedusername

    To respond to WWJD: I was handed the data and I don't have any control over it's format...
    I found the answer in the forums though, so I guess I'm answering my own question
    http://discussions.apple.com/thread.jspa?messageID=6203991&#6203991
    The auto-filling INDIRECT reference worked very well for me.

  • How to get the sum in appropriate column without a red triangle appearing?

    Hello,
    In 'Numbers" - How do get columns to add (calculate) the sum in each decending column on an Expense Report.
    When I highlight the decending column the total appears on the far left of the screen.  When I drag the sum amount from there to the appropriate column a red triangle with an ! appears instead of the amount.
    Thanks for your immediate help.

    The red triangle is an Error triangle. Clicking it will display the error message and tell you what error has occurred. From your description, my assumption is that you dragged the SUM() function from the quick calculations at the lower left and dropped it intto a cell in the column being summed.
    If that's the case, this is likely the error message you would see:
    When you highlighted the 'decending column,' you likely selected all of the cells in that column, including the one into which you dropped the function.
    Instead, do one of the following. These assume the column you want to sum is column B.
    If you want the sum at the top of the column:
    Make sure the row you want the sum to appear in is a Header row.
    Enter this formula into any Header Row cell in column B:   =SUM(B)
    If you want the sum at the bottom of the column:
    Add a Footer row to the table. (Go Table (menu) > Footer Rows > 1).
    Enter this formula into the Footer Row cell in column B:   =SUM(B)
    SUM (and other functions) that expect a range of cells will interpret a cell reference entered using only the column letter (B) as meaning 'all of the non-header, non-footer cells in column B', and will exclude those cells in header or footer rows.
    Regards,
    Barry

  • How to Create a Table with Merge and partitions in HANA

    Hi,
    What is the best way to create a Table with MERGE and PARTITION and UNLOAD PRIORITIES.
    Any body can you please give me some examples.
    Regards,
    Deva

    Ok,
    1) the UNLOAD PRIORITY has nothing to do with the order of data loads in your ETL process
    2) Unloading of columns will happen automatically. Don't specify anything specific for the tables, then SAP HANA will take care about it
    3) Not sure where you get your ideas from, but there is no need to manually "flush" tables or anything like that. SAP HANA will take care of memory housekeeping.
    4) Partitioning and how to specify it for tables has been largely documented. Just read up on it.
    5) Delta Merge will happen automatically, as long as you don't prevent it (e.g. by trying to outsmart the mergedog rules)
    Seriously, I get the impressions that this list of requirements is based on some hear-say and lack of actual information and experience with SAP HANA. There are a couple of extensive discussions on data loading optimization available here in SCN and on SAPHANA.COM. Please read those first.
    All this had been discussed broadly a couple of times.
    - Lars

Maybe you are looking for

  • Randomdata in javacard

    hi all, Does anybody know how to use the javacard.security .Randomdata class ? and can you tell me how to implement the generateData and setseed methods of the abstract RandomData class or give me sample program.... thanks.

  • ICloud Contacts

    My iCloud contact list is a disaster. I find many contacts repeated 3-10 times. I would like to "select all" and delete, rather than manually doing it 1 by 1. I cannot seem to find the right steps to accomplish this. Can anyone guide me as to how i c

  • Http proxy View access control log

    Access control log is broken. I get BMON window...operation cannot be completed. Tried TID 10026035 which did not work at all. Jerry Gunn

  • Open new browser window from a JApplet

    Hi, I want to open a new browser window from a JApplet.My first thought was to use the Live Connect technology but it worked only with simple applets not with JApplets.Then i tried it by getting the Applet context (getAppletContext() method) but it s

  • How long can i use the iwork beta in icloud?

    how long can i use iwork beta in icloud?