Calculating reference based sum in variety of tables

Hello there.
Can anybody tell me if there is a way to calculate reference based sum in variety of tables?
For example - I've got a sheet with some tables in it. There are header row and header column in each table. Each header column contains various items and the column next to it contains numeric value for theese items. Some items are repeating throughout the different tables.
So, I'd like to make a master table that would contain the total value of each repetitive item without using table identifier in the formulas, because the number of tables will vary. Maybe there are some wildcards for this type of cases?

_Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
Then, cross your fingers, and wait _at least_ for iWork'09
Yvan KOENIG (from FRANCE mardi 12 août 2008 12:39:25)

Similar Messages

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

  • Sort/filter datablock based on procedure that return table type

    Hi All,
    I’ve got datablock based on procedure that return table type. In the form I have to provide ‘filter and sort records’ functionality. Previously, using tables/views based datablocks, I’ve done that by using:
    -- filter
    SET_BLOCK_PROPERTY (L_BLOCK_NAME, DEFAULT_WHERE, L_WHERE_CLAUSE);
    -- sort
    SET_BLOCK_PROPERTY(L_BLOCK_NAME ,ORDER_BY, L_ORDER_BY_CLAUSE);
    -- and then
    EXECUTE_QUERY;
    It doesn’t work with procedure that return table type. How I can do that?
    Bartek

    I agree with Andreas, from the sample you have given us, I don't see any reason why you could not merge these queries into a single UNION/UNION ALL query. Also, I would add your summation query to your main query to eliminate this extra step. The result would look something like:
    SELECT DISTINCT
         pih.id
         ,d.document_id
         ,pih.doc_serial_no
         ,pih.purch_invoice_date
         ,oh.company_name
         ,(SELECT NVL(SUM(amount),0)
              FROM "YOUR TABLE HERE" yth
              WHERE yth."YOUR COLUMN HERE" = pih.id) AS sum_amount
      FROM "YOUR TABLES HERE"
    WHERE "YOUR JOIN CONDITIONS HERE"
    UNION ALL
    SELECT DISTINCT
         sih.id
         ,d.document_ind
         ,sih.doc_serial_no
         ,sih.sales_invoice_date
         ,sih.company_name
         ,(SELECT NVL(SUM(amount),0)
              FROM "YOUR TABLE HERE" yth
              WHERE yth."YOUR COLUMN HERE" = sih.id) AS sum_amount
      FROM "YOUR TABLES HERE"
    WHERE "YOUR JOIN CONDITIONS HERE"
    [/code]
    Hope this helps.
    Craig...
    +If a response is helpful or correct, please mark it accordingly+
    Edited by: CraigB on Feb 23, 2010 1:39 PM
    It appears the CODE tags are not working as well as the URL tags.  :(                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Metrics on database read/write/delete based on size of the table

    Hi,
    Though we have many performance measurement tools,sometimes it is difficult for developers to trace and measure each read, some reads which look fine in the development environment turn out to be show stoppers in quality environments.
    I am trying to find if we can give a rough estimate of ideal response time of an RFC based on the number of database fetches/writes in the RFC assuming that the loops and internal table reads etc are optimized.
    e.g.: if my RFC performs two reads and one insert.I would like to arrive at a figure e.g.: 200ms should be the ideal runtime of the RFC.
    I would like to base my calculations based on the following parameters:
    - Table Size
    - Key/Index used
    e.g.: For a FETCH operation
        Table Size | Key Used | Total Time 
         Upto 1 G  | Primary  | 100ms
         1 - 5  G  | Primary  | 200ms
    Similarly for insert and delete..
    I have the following questions for the forum in relation to the above:
    - Is the above approach good enough for arriving at a
      approximate metric on total response time of an RFC ?
    - Are there any other alternatives, apart from using the
      standard SAP tools ?
    - How are metrics decided for implementations with Java
      and  .NET frontends ?
    Thank you,
    Chaitanya

    Hi There
    Do you mean dba_segments table?
    My boss want to export 2 big tables and import to training environment, each table contains more than 2 million rows.
    I want to know how big(bytes, or megabytes) are those two tables on the hard drive, because we are going to run out of the space on the same server. I am not sure the diskspace can afford such big export or not, so if I can know how big are those 2 tables, and then I can decide what I can do for export. For example: I got 200MB left on my /home directory, that is the only place we can put export, those 2 tables could be bigger than 400MB even though I compress the export file.
    Hopefully this time it is clear.

  • Common reference based on Item Combination

    Hi,
    I had a scenario where i need to create a unique reference based on Item and org combination.
    Eg:
    Item Org Common
    Item1 A1 001
    Item2 A2 002
    Basesd on Item and Org Combination i need to generate a common reference value. Can some one help me out how to get this.
    Thanks.

    Hi,
    user11186474 wrote:
    Hi Frank,
    The data i will be having is for ever item and org combination i need to create a common reference value.
    For Eg:
    I have ItemA in Ai org for this item and org combination in need to create item a item and org combination..similarly for itemB and A2 org i need to create one more common reference.. this goes on for every item and org combination.
    The output of my table will look like this
    Item Org Reference
    ItemA A1 0001
    ItemB B1 002
    For Every Item and org combination i need to generate a unique reference value.In the above i need to generate a common reference value.So what's wriong with the query I posted earleir?
    If you want leading 0's so that the derived column always has 3 digits, then use TO_CHAR.
    if you want the output to sometimes have 4 digits (like '0001') and sometimes 3 digits (like '002') then use CASE.

  • Adding Sum Totals from Multiple Tables in A single Document

    Hello All,
    I'm having trouble adding sum totals from multiple tables I've created in a Pages 09 doc. I putting together a spreadsheet for cost projections for a house remodel. I created tables for each room of the house. At the bottom of the document I'd like to have another table that takes the totals from each individual room and adds them up. Problem appears to be that each table has the same x/y axis labels so row and column numbers/letters are repeated so the final table can't quantify thing correctly.
    Any easy solutions? I can't find anything that's helped in my search efforts.
    Thanks,
    Josefis

    Jerry,
    Thanks for the feedback. I thought that might be the case. And you were correct to assume I was more comfortable in Pages. I'm halfway through converting everything to numbers. In the end it will work great too. Just some different formatting/design choices to be made as numbers doesn't appear to be as versatile in the same way pages is with design. So far it looks pretty good though.
    Thanks again,
    Josefis

  • Is it possible to reference the name of the current table in a formula?

    Hi,
    I am wanting to be able to reference the name of the same table that I am entering a formula into, i.e.:
    =SUMIFS(Net,Event,"CURRENT TABLE NAME HERE",Category,"Publicity")
    Is this possible?
    Thanks,
    Nick

    AppleScript can access the current table name, so it if you are doing a lot of formula entry in different tables you could click once in a table and have a short script insert the formula for you.  Here's a simple example:
    Say you have a data table like this:
    Event
    Category
    Net
    Event 1
    Publicity
    10
    Event 2
    Celebration
    20
    Event 1
    Supplies
    5
    Event 1
    Salaries
    20
    Event 3
    Celebration
    25
    Event 1
    Publicity
    20
    Event 2
    Publicity
    11
    Event 1
    Accounting
    20
    And (important) you have 'Use Header Names as Labels' turned on in Numbers > Preferences.
    You caninsert this formula:
    =SUMIFS(Net,Event,"Event 1",Category,"Publicity")
    ... into a table named Event 1 that looks like this:
    Cat
    Amount
    Publicity
    30
    ...with a script like this:
    -- NB:  the \ "escape" the quotation marks so AppleScript takes them literally
    tell application "Numbers"
      set t to document 1's active sheet's first table whose selection range's class is range
      set c to t's selection range's first cell
      set c's value to "=SUMIFS(Net,Event," & "\"" & t's name & "\"" & ",Category,\"Publicity\")"
    end tell
    The script automatically inserts the name of the table you have clicked in.
    (To use the script just copy and paste into Script Editor, click once in the cell where you want the formula (B2 in the example) and click the 'Run' triangle button in Script Editor.)
    SG

  • Create "Object" Type based on columns of a table

    Hi Experts
    is it possible to create an Object Type based on columns of a table?
    for example the syntax for creation of type is
    CREATE OR REPLACE TYPE temp_t
    AS OBJECT (ID number, code number)
    can we create a type that is based on columns of an existing table? so that we donot have to write down all the column names in each type as i have to create types based on 100 and above tables :-s
    Please help me out here!
    Best Regards

    You cannot do that Zia, check below code:
    SQL> create or replace type temp_t as object(object_name all_objects.object_name%TYPE);
      2  /
    Warning: Type created with compilation errors.
    SQL> sho err
    Errors for TYPE TEMP_T:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    1/35     PLS-00201: identifier 'ALL_OBJECTS.OBJECT_NAME' must be declared

  • Problem creating hierarchy based on 2 physical dimension tables

    I'm having a problem creating 1 logical dimension with a drill-down hierarchy, based on two separate physical dimension tables. The errors I receive when navigating the drill-down hierarchy is:
    "Cannot find logical table source coverage for logical columns" &
    "Missing join between logical tables".
    I'm using OBIEE 10.1.3.4
    Here are the details of what I have setup sofar:
    Physical layer:
    Dimension table DIM_ORG with columns:
    -dimension_key
    -org_total_code
    -org_total_description
    -org_detail_code
    -org_detail_description
    Dimension table DIM_DEPT with columns:
    -dimension_key
    -dept_total_code
    -dept_total_description
    -dept_detail_code
    -dept_detail_description
    Fact table FACT_SALES with columns:
    -fk_org
    -fk_dept
    -sum_sales
    Physical Joins:
    FACT_SALES.fk_org = DIM_ORG_dimension_key
    FACT_SALES.fl_dept = DIM_DEPT.dimension_key
    Business Model & Mapping layer:
    I created a logical dimension ORG_DEPT. It contains two logical table sources (DIM_ORG & DIM_DEPT) and the following logical columns:
    - All Departments (mapped to dept_total_code)
    - Organisation (mapped to org_detail_description)
    - Organisation Number (mapped to org_detail_code)
    - Department (mapped to dept_detail_description)
    - Department Code (mapped to dept_detail_code)
    The business logical key is based on the combination of Organisation Number & Department Code
    The hierarchy I need is: All Departments -> Organisation -> Department so I created the following hierarchy for ORG_DEPT:
    - Total Level containing: All Departments
    - Organisation Level containing: Organisation Number (defined as the Logical level key) & Organisation (defined als the Drill level key)
    - Detail Department Level containing: Department Code (defined as Logical level key) and Department (defined as Drill level key).
    In the LTS of the dimension ORG_DEPT I've set the Content levels for the sources:
    DIM_ORG : Organisation Level
    DIM_DEPT: Detail Department Level
    In the LTS no -inner- joins have been added against related physical tables.
    I created a logical fact table SALES (based on the physical fact table) and joined it against the logical dimension table ORG_DEPT.
    In the LTS the Content level for ORG_DEPT is set against the Detail Department Level. No - inner- joins have been aded against related physical tables.
    When I create a report in Answers to test the hierachy and select only 'All Departments' I get the correct dimension value returned. When I try to drill to the next level I get the following ODBC error:
    "Cannot find logical table source coverage for logical columns: [All Departments]. Please check more detailed level keys are mapped correctly".
    When I create a report in Answers and select both 'All Departments' and 'Sales' I get the correct result. When I try to drill to the next level I get a different ODBC error:
    "Missing join between logical tables DIM_DEPT and DIM_DEPT: There must be at least one physical join link between the underlying physical tables".
    Any suggestions are welcome!
    Thanks!

    Hello Robert,
    Your suggestions were known to me but I still wanted to combine the two physical dimension tables in one logical dimension. So I've played around a bit more and found the solution: In my original setup I had two seperate logical table sources (one for each physical dimension table). The solution was to combine the two logical table sources in one logical table source. I achieved that by logical joining the DIM_DEPT table to the FACT_SALES table and subsequently to the DIM_ORG within the 1 LTS and using inner joins.
    Then I created the logical table key (a combination of org_detail_code & dept_detail_code). After that I could create the hierarchy with no problem.
    Edited by: The_Dutchman on Nov 4, 2011 9:43 PM

  • Sum function for internal table column

    Dear Experts,
    how can I sum a complete internal table column.
    Regards
    ertas

    Hi,
    Use SUM in AT END of event in the loop of an internal table.
    Example
    Loop at ITAB into wa_itab.
    at end of wa_itab-field.
    sum.  " Here all numric fields will be summed and stored in that filed(wa_itab-field)
    endat.
    Endloop.
    Regards
    Krishna

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • Update table based on values from other table

    Hi,
    I am trying to update one table based on the values of another table. Since you can't use From in update statements, how do you execute this?
    For example i have to tables, Table A and Table B. I want to update a column or columns in Table A based on another value in Table B:
    So if the column in Table B was 1 then column in Table A would be Yes, if Table B was 2, then Table A would be Yes, if Table B was 3 then Table A would be N/A and so on...
    Any help would be appreciated.
    thanks,
    scott

    SQL> select * from t1;
    ID ST
    1
    2
    3
    SQL> select * from t2;
    NO
    1
    2
    3
    4
    SQL> update t1 set status=(select decode(no,1,'Y',2,'N','NA') from t2 where t1.id=t2.no);
    3 rows updated.
    SQL> select * from t1;
    ID ST
    1 Y
    2 N
    3 NA
    Daljit Singh

  • How to create new calculated column based on filtered columns?

    Dear All,
    I'm using Oracle Analysis.
    I have two column, each one have different formula.
    My Formula based on filter.
    Column1
    FILTER("DW"."SUM_PLAN_MONTH_AMOUNT" USING ("DW"."PLAN_YEAR" BETWEEN YEAR(DATE'@{P_BEGIN_DATE}') and YEAR(DATE'@{P_END_DATE}')))Column2
    FILTER("PAYMENTS"."SUM_PAY_AMOUNT" / 1000 USING ("PAYMENTS"."PAY_DATE_PAID" BETWEEN DATE'@{P_BEGIN_DATE}' AND DATE'@{P_END_DATE}'))How to add new calculated column based on those two column?
    For example:
    Column1 | Column2 | NewColumn
    5 | 10 | 10 / 5 * 100
    7 | 12 | 12 / 7 * 100
    Regards,
    Eba
    Edited by: Erdenebayar on Apr 19, 2012 1:42 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:37 PM

    Hello MK,
    I have a tried following formula. It is working, but result is not filtered.
    I filtered "PAYMENTS"."SUM_PAY_AMOUNT" and "DW"."SUM_PLAN_MONTH_AMOUNT" columns.
    "PAYMENTS"."SUM_PAY_AMOUNT" / "DW"."SUM_PLAN_MONTH_AMOUNT" * 100Can you share me some tutorial?
    BR,
    Eba
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
    Edited by: Erdenebayar on Apr 19, 2012 3:43 PM

  • Change to stack reference based

    Is this possible change to Stack Reference Based??
    If so , How to do it??
         private boolean solveHelper(int c, int r){
              if(r == n){
                   solved = true;
                   return true;
              if(c == n){
                   return false;
              if(hasNoConflicts(c, r)){
                   placePiece(c, r);
                   boolean done = solveHelper(0, r+1);
                   if(done) return true;
                   else{
                        removePiece(c, r);
                        return solveHelper(c+1, r);
              else{
                   return solveHelper(c+1, r);
         }

    Ya..it is homework...
    but we didn't taught how to unroll the recursive to
    Stack, so that why i'm came up and ask!!!
    So i'm beg you show me how?!You haven't been taught that?
    The texts that you have do not cover it?
    The teacher did not cover it?
    And yet you have been assigned that homework?
    Is part of the assignment supposed to be you doing your own research to find the methodology?
    If the answer to the last is "no", then I suggest you drop the class and file a formal complaint with the adminstration.

  • Calcullating no. of records in an internal table based on condition

    Hi,
    i have several records in an internal table. i need to calculate the number of records which meets a condition. is there any simple logic to find the records which meet the required criteria apart from looping into the internal table.
    your help would be appreciated.
    Thanks,
    kranthi.

    Hi,
    U can use sy-dbcnt after the select querry.
    DBCNT  Number of elements in edited dataset with DB operations
    WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.
    REPORT ZZZ_TEST1 .
    Tables: mara.
    Types: begin of ty_mara,
           matnr like mara-matnr,
          end of ty_mara.
    DATA: i_mara TYPE STANDARD TABLE OF ty_mara.
    DATA: v_cnt like sy-dbcnt.
    SELECT-OPTIONS: s_matnr FOR MARA-matnr.
    SELECT matnr from mara into table i_mara.
    if sy-subrc = 0.
    v_cnt = sy-dbcnt.
    WRITE: /12 'Number of selected records:', v_cnt CENTERED.
    endif.
    Hope this helps u.
    Thanks & Regards,
    Judith.

Maybe you are looking for

  • Problem with folders

    i noticed that in the "info" of a video file you can set the video type to either movie, music video, or tv show. but when i look under videos on my ipod it only shows music videos and movies, but no tv shows menu, and so i cant access my tv show fil

  • SSL WebServices config error ? trust failure

    I’m at a loss in getting SSL to work with 7.0’s Web Services. I compiled and ran the basic javaclass example using http. I’m using the demo cert provided with WLS. I haven’t changed any admin console SSL settings. Then (I think) I followed the direct

  • General observation about Yosemite

    Not liking it, guys. I don't like the presentation. Buttons and icons look even more fake than usual. Looks dumpy, silly, like a cheap child's toy. Tabs in Safari may be meant to be unobtrusive, but come on. I would prefer the ability to change the d

  • SQL condition not working

    Hi, The following query works as expected while running from Oracle database. the same query is on a query zone of type F1-DE-QUERY but doesnt work the same way. i know the problem is in using the replace(PHONE,')','') LIKE .... statement only. is th

  • Safari 5 won't even open

    When I try to open up Safari 5 the web page won't even open. It shows that the program is open but nothing will pop up. I tried re-installing but it keeps doing the same thing.