sum on two dimensional

Hi all, I'm fine with excel, but have trouble extrapolating numbers for this and hoping that someone can help.

Basically, for example, a spreadsheet to budget domestic.  I have a table of data where column A is the month of the entry, column B is the category, and column C is the $.  Something like:

A         B                   C

April 1 grocery store $100

2 April gas $50

grocery store $75 April 3

May 4 utilities $50

grocery store $90 may 5

May 6 gas $40

(imagine the above, but with several months of data).

I want to create a summary table summarizing the totals by month and category

A                   B                C

April may

Food products 1 175-$ 90

2    Gas                $50             $40

3 utilities $0 $ 50

That means, in B1, the sum of $ is the $ total for all groceries in April entries in the table above ($100 + $75).

My excel formulas do not seem to be transferred on the well, when I try to build it.  Any ideas?  What is quite a unique use of SUMPRODUCT in numbers or something else?

Thanks for the thoughts that you all.

See you soon,.
Aaron

The numbers do not support forms of 'matrix formula' of SUMPRODUCT.  Use rather SUMIFS (which also works well in Excel).

The formula in B2, filled with worms the down and right, is:

= SUMIFS(Data::$C,Data::$A,B$1,Data::$B,$a2)

Be sure to type a "before names so that the numbers treated as text and you will get a match."  Otherwise, it will guess that you mean a date and time string (which will match this year, but not for the entries of entry next year).

SG

Tags: iWork

Similar Questions

  • How to extract a single dimension of two two-dimensional array

    Hello

    Perhaps this question is too naïve and simple. I have two two-dimensional chart (256 rows and two columns). All I want is to retrieve one of these columns as a dimensional table a separate. It seems to be something very very basic that should cover just about any programming language. However, I couldn't find the right function in the list of functions of table. I don't know I'm missing something very obvious. I tried the Board index, subset of table, table of cluster and reshape the table. None of them is the right function for this. I have used LabVIEW for awhile now, but I can't find a solution to this fundamental problem. Can someone help out me.

    Thank you

    HI -.

    With the function Index Array you tried a number of cabling to the marked entry index (col)?

    See the vi attached for an example.

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • Sum of two variables by year

    Hello

    How can I use SQL to a different variable sum the two per year, as for 2010 is totalrevenue 6907 + 19539 = 26446 etc.



    DATA_YEAR VALUE NOM_DE_VARIABLE
    -------------------------------------------------- ---------------------- ----------------------
    CTInternalRevenue 2010 6907
    CTInternalRevenue 2011 7315
    CTInternalRevenue 2012 7990
    CTInternalRevenue 2013 8554
    CTInternalRevenue 2014 8976
    CTExternalRevenue 2010 19539
    CTExternalRevenue 2011 16848
    CTExternalRevenue 2012 17176
    18567 2013 CTExternalRevenue
    CTExternalRevenue 2014 20344


    Thank you.

    Gian

    Hello

    To ignore some rows in the table, use a WHERE clause:

    SELECT       'TotalRevenue'     AS variable_name
    ,       data_year
    ,       SUM (total)          AS total
    FROM       app_cfas_v2.app_cfas_calculated_data
    WHERE       variable_name     IN ( 'CTInternalRevenue'
                        , 'CTExternalRevenue'
                      )
    GROUP BY  data_year
    ORDER BY  data_year
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • Extend the two-dimensional array

    Hi all

    How can I extend both the axis of a two-dimensional array?
    DECLARE
      TYPE num_array IS TABLE OF VARCHAR2(100);
      TYPE bidim_num_array IS TABLE OF num_array;
      l_array bidim_num_array;
    BEGIN
      ...
    END;
    in order to fill the two-dimensional table as a matrix:
    l_array(1)(1) := ...
    l_array(1)(2) := ...
    l_array(1)(3) := ...
    l_array(2)(1) := ...
    l_array(2)(2) := ...
    l_array(2)(3) := ...
    l_array(3)(1) := ...
    l_array(3)(2) := ...
    l_array(3)(3) := ...
    I don't know the size of the MxN matrix.

    Thanks in advance.

    Manuel Vidigal wrote:

    How can I extend both the axis of a two-dimensional array?

    Just as you would with one-dimensional, just twice - one for each dimension. You will also need to initialize second dimension table whenever you extend first dimension:

    SQL> DECLARE
      2    TYPE num_array IS TABLE OF VARCHAR2(100);
      3    TYPE bidim_num_array IS TABLE OF num_array;
      4    l_array bidim_num_array := bidim_num_array(); -- initialize two-dimensional array (this initializes first dimension only)
      5  BEGIN
      6    l_array.extend; -- extend two-dimensional array
      7    l_array(1) := num_array(); -- initialize second dimention array
      8    l_array(1).extend; -- extend second dimension array (this extends first dimension only)
      9    l_array(1)(1) := 'Row 1, Column1';
     10    l_array(1).extend; -- extend second dimension array
     11    l_array(1)(2) := 'Row 1, Column2';
     12    l_array.extend; -- extend two-dimensional array (this extends first dimension only)
     13    l_array(2) := num_array(); -- initialize second dimention array
     14    l_array(2).extend; -- extend second dimension array
     15    l_array(2)(1) := 'Row 2, Column1';
     16    l_array(2).extend; -- extend second dimension array
     17    l_array(2)(2) := 'Row 2, Column2';
     18    for i in 1..l_array.count loop
     19      for j in 1..l_array(i).count loop
     20        dbms_output.put_line(l_array(i)(j));
     21      end loop;
     22    end loop;
     23  END;
     24  /
    Row 1, Column1
    Row 1, Column2
    Row 2, Column1
    Row 2, Column2
    
    PL/SQL procedure successfully completed.
    
    SQL>  
    

    SY.

  • two-dimensional array

    Hello

    Sorry for this question but I am new to flex.

    How do I declare a two-dimensional array?

    You can do this:

    
    
      
        
      
      
        
        
        
      
    
    

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

  • sum of two rows in a table

    Hello world

    the data in the table is

    Demographics Demo_label 1 2 3 Total Type_no
    Marital_Status 0 12 10 22 1 Unknown_0
    Marital_Status 20 20 20 60 2 Unknown_null
    40 30 10 80 3 single Marital_Status
    Marital_Status married 30 20 15 65 4
    Marital_Status Total 90 82 55 227 5

    I want to display the table in the following way via a select query


    Demographics Demo_label 1 2 3 Total Type_no
    Unknown Marital_Status 20 32 30 82 1
    40 30 10 80 2 simple Marital_Status
    Marital_Status married 30 20 15 65 3
    Marital_Status 90 82 55 227 4-Total


    I would like to summarize the two lines is to say unknown_0 and unknown_null in a line and display.

    Could you please help me to form the select query?

    Thanks in advance

    Hi Ben,

    You can use the qry below to summarize unknown related rows.

    Select DEMOGRAPHICS, decode (substr(DEMO_LABEL,1,7), 'Unknown', 'Unknown', demo_label) DEMO_LABEL,
    Sum (First), Sum (second), Sum (Third), Sum (total), Sum (type_no) of REQ_TABLE
    Group DEMOGRAPHICS, decode (substr (DEMO_LABEL, 1, 7), 'Unknown', 'Unknown', demo_label);

    Thank you.

  • Easy way to extract the line of two-dimensional array?

    Y at - it an easy way to extract a two table row Dimensions? I have two lists of table to a dimension that I consider a pine table, where each pin list is a table of numbers. I want to go through it and to extract a line at a time to send in a vi. Currently, I'm looking to do a bit of a long way, and I was wondering if there was an easier way. The long way:

    GetArrayBounds (Locals.ArrayOfPinsToTestAtOnce, Locals.BogusString, Locals.ArrayBounds), / / enter the quantity of lines and columns Locals.ArrayBounds
    Locals.ElementsPerList = Val (Mid (Locals.ArrayBounds, 1, 1)), //Get number of bowling by list
    Locals.NumberOfLists = Val (Mid (Locals.ArrayBounds, 4, 1)), //Extract number lists
    SetArrayBounds (Locals.OneRow, "[0]", "[" + Str (Locals.ElementsPerList) + "']" ") //Set table defines for a line chart
    < locals.numberofgroups;="" i++="" )="" would="" be="" done="" in="" teststand="" step,="" just="" for="" easy="">
    {
    < locals.elementsperlist;="" j++)="" also="" would="" be="" done="" in="" teststand="">
    Locals.OneRow [j] = ArrayOfPinsToTestAtOnce [j] [i]
    PERFORM STEP HERE (Locals.OneRow)
    }

    Thanks for the tips!

    In all honesty, I just want to do in LabVIEW.  You can try to add to the list in this idea.

  • How to hang a two two-dimensional table

    Hello people,

    I had a problem trying to pass two dimension table as a parameter:

    Spec:
     
    create or replace package test_22012013 as
      type t_record_one is record(
        test1 number(20)
       ,test2 number(20)
       ,test3 number(20)
       ,test4 number(20)
       ,test5 number(20));
    
      type t_array_one is table of t_record_one
        index by varchar2(3);
    
      type t_array_two is table of t_array_one
        index by varchar2(8);
        
      ------------------------------------------------------------------------------
      --Function One
      function f_function_one(i_input_one in test_22012013.t_array_two)
        return number;
        
      ------------------------------------------------------------------------------
      --Function Two
      function f_function_two(i_input_two in test_22012013.t_array_two)
        return number;
    end test_22012013;
    /
    Pack:
    create or replace package body test_22012013 as
      ------------------------------------------------------------------------------
      --Function One
      function f_function_one(i_input_one in test_22012013.t_array_two)
        return number as
      begin
        return 1;
      end f_function_one;
    
      ------------------------------------------------------------------------------
      --Function Two
      function f_function_two(i_input_two in test_22012013.t_array_two)
        return number as
        l_num number(20);   
      begin
        select f_function_one(i_input_one => i_input_two)
          into l_num
          from dual;
      end f_function_two;
    end test_22012013;
    /
    I got error PLS-00382: expression is of the wrong type, PLS-00306: wrong number of types of arguments and PL/SQL: ORA-00904

    Best regards
    Igor

    Igor S. wrote:
    Hello people,

    I had a problem trying to pass two dimension table as a parameter:

    Spec:

    
    create or replace package test_22012013 as
    type t_record_one is record(
    test1 number(20)
    ,test2 number(20)
    ,test3 number(20)
    ,test4 number(20)
    ,test5 number(20));
    
    type t_array_one is table of t_record_one
    index by varchar2(3);
    
    type t_array_two is table of t_array_one
    index by varchar2(8);
    
    ------------------------------------------------------------------------------
    --Function One
    function f_function_one(i_input_one in test_22012013.t_array_two)
    return number;
    
    ------------------------------------------------------------------------------
    --Function Two
    function f_function_two(i_input_two in test_22012013.t_array_two)
    return number;
    end test_22012013;
    /
    

    Pack:

    create or replace package body test_22012013 as
    ------------------------------------------------------------------------------
    --Function One
    function f_function_one(i_input_one in test_22012013.t_array_two)
    return number as
    begin
    return 1;
    end f_function_one;
    
    ------------------------------------------------------------------------------
    --Function Two
    function f_function_two(i_input_two in test_22012013.t_array_two)
    return number as
    l_num number(20);
    begin
    select f_function_one(i_input_one => i_input_two)
    into l_num
    from dual;
    end f_function_two;
    end test_22012013;
    /
    

    I got error PLS-00382: expression is of the wrong type, PLS-00306: wrong number of types of arguments and PL/SQL: ORA-00904

    Best regards
    Igor

    Try

    create or replace package body test_22012013 as
      ------------------------------------------------------------------------------
      --Function One
      function f_function_one(i_input_one in test_22012013.t_array_two)
        return number as
      begin
        return 1;
      end f_function_one;
    
      ------------------------------------------------------------------------------
      --Function Two
      function f_function_two(i_input_two in test_22012013.t_array_two)
        return number as
        l_num number(20);
      begin
    /*    select f_function_one(i_input_two)
          into l_num
          from dual;*/
          l_num:= f_function_one(i_input_two);
          return l_num;
      end f_function_two;
    end test_22012013;
    
  • Pivot - sum with two Tables

    I try to use Pivot by joining with another table, but I am getting an error. I created a few generic test charts and data.
    CREATE TABLE Employee
    (
       empno         NUMBER (3) NOT NULL,                           -- Employee ID
       ename         VARCHAR2 (10 BYTE),                          -- Employee Name
       hireDate      DATE,                                  -- Date Employee Hired
       orig_salary   NUMBER (8, 2),                              -- Orignal Salary
       deptno        NUMBER                              -- Region where employeed
    )
    
    CREATE TABLE departments (deptno   NUMBER, dept_name VARCHAR2 (30))
    SET DEFINE OFF;
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (108, 'Jode', TO_DATE('09/17/1996 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 21000, 30);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (122, 'Alison', TO_DATE('09/17/1996 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 45000, 10);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (123, 'James', TO_DATE('12/12/1978 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 23000, 20);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (104, 'Celia', TO_DATE('12/12/1978 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 53000, 30);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (105, 'Robert', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 31000, 10);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (116, 'Linda', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 43000, 20);
    Insert into EMPLOYEE
       (EMPNO, ENAME, HIREDATE, ORIG_SALARY, DEPTNO)
     Values
       (117, 'David', TO_DATE('01/15/1984 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 78000, 30);
    COMMIT;
    
    SET DEFINE OFF;
    Insert into DEPARTMENTS
       (DEPTNO, DEPT_NAME)
     Values
       (10, 'Maths');
    Insert into DEPARTMENTS
       (DEPTNO, DEPT_NAME)
     Values
       (20, 'Physics');
    Insert into DEPARTMENTS
       (DEPTNO, DEPT_NAME)
     Values
       (30, 'Chemistry');
    COMMIT;
    I'm looking to find the sum of the salaries of all employees by each Department, but organized by date of hire. The output should be something like...
     HIREDATE     Maths    Physics  Chemistry
    
    9/17/1996      45000        0          21000
    1/15/1984      31000     43000   78000
    12/12/1978       0        23000   53000    
    Help with the query is very much appreciated.

    Published by: IamAby on Sep 18, 2012 11:44

    Published by: IamAby on Sep 18, 2012 11:46

    What:

    SQL> select e.hiredate
      2  ,      sum( case when d.dept_name = 'Maths' then orig_salary else 0 end ) maths
      3  ,      sum( case when d.dept_name = 'Physics' then orig_salary else 0 end ) physics
      4  ,      sum( case when d.dept_name = 'Chemistry' then orig_salary else 0 end ) chemistry
      5  from   employee e
      6  ,      departments d
      7  where  d.deptno = e.deptno
      8  group by e.hiredate
      9  order by e.hiredate desc;
    
    HIREDATE                 MATHS    PHYSICS  CHEMISTRY
    ------------------- ---------- ---------- ----------
    17-09-1996 00:00:00      45000          0      21000
    15-01-1984 00:00:00      31000      43000      78000
    12-12-1978 00:00:00          0      23000      53000
    

    Published by: Hoek on September 18, 2012 21:03 added "0 otherwise ' in case '.

  • Save two-dimensional image od for the web

    Hello

    I made the script (with your help ) to export images for the web with dimensions 300 x 300 px. Now, I want my script to resize more than files that I get two files one 300 x 300 and another 66 x 66 px. I'll post my script and you ask hel find me the bug

    And another question. My script exports the file name + jpg, but it also keeps orginal extension if I get IE. FileName.psd.jpg

    can you help me solve this in my script... else is very well...

    Thank you

    Voah

    Edit:

    At the time of meen I managed to solve the problem, so here's the new script

    But I still have one thing I want to do. I have to manually do folder "300 x 300 and '66 x 66' or my script stops." How coud I do this script make sure files? (inputFolder/300 x 300 / and inputFolder/66 x 66 /)

    Save current preferences dialog

    var startDisplayDialogs = app.displayDialogs;

    Save preferences of current unit

    var originalRulerUnits = preferences.rulerUnits;

    preferences.rulerUnits = Units.PIXELS;

    var inputFolder is Folder.selectDialog ("select input file");.

    var outputFolder is Folder.selectDialog ("select output folder");.

    ProcessImages();

    function ProcessImages() {}

    var filesOpened = 0;

    If (inputFolder == null | outputFolder == null)

    {

    If (inputFolder == null) {}

    Alert ("no source folder selected");

    }

    If (outputFolder == null) {}

    Alert ("no output folder selected");

    //      }

    }

    else {}

    List of files of the var = inputFolder.getFiles ();

    for (var i = 0; i < fileList.length; i ++) {}

    If (instanceof file in the list of files [i] & &! fileList [i] .hidden) {}

    Open (fileList [i]);

    ResizeImage();

    filesOpened ++;

    }

    // }

    }

    Return filesOpened;

    }

    function ExportPng (filePrefix, fileSuffix) {}

    Try

    {

    var app.activeDocument = docRef;

    var Nomdoc = app.activeDocument.name.slice (0, -4);

    saveOptions var = new ExportOptionsSaveForWeb();

    saveOptions.quality = 70;

    saveOptions.format = SaveDocumentType.JPEG;

    saveOptions.optimized = true;

    docRef.exportDocument(File(app.activeDocument.path+'/300x300//'+docName+'.jpg'), ExportType.SAVEFORWEB, saveOptions);

    }

    catch (e)

    {

    Alert ("error when you try to save the image.") \r\r"+ e);

    return;

    }

    };

    funkcija export 2

    function ExportPng2 (filePrefix, fileSuffix) {}

    Try

    {

    var app.activeDocument = docRef;

    var Nomdoc = app.activeDocument.name.slice (0, -4);

    saveOptions var = new ExportOptionsSaveForWeb();

    saveOptions.quality = 70;

    saveOptions.format = SaveDocumentType.JPEG;

    saveOptions.optimized = true;

    docRef.exportDocument(File(app.activeDocument.path+'/66x66//'+docName+'.jpg'), ExportType.SAVEFORWEB, saveOptions);

    }

    catch (e)

    {

    Alert ("error when you try to save the image.") \r\r"+ e);

    return;

    }

    };

    ResizeImage() function

    {

    If (app.documents.length > 0) {}

    var app.activeDocument = docRef;

    var n = docRef.pathItems.length;

    If ((n>0) & & (docRef.pathItems [0] .name! = "Work path")) {}

    docRef.pathItems [0] .makeSelection ();

    docRef.selection.invert ();

    docRef.selection.clear ();

    docRef.selection.deselect ();

    }

    };

    function fitImage() {}

    var app.activeDocument = docRef;

    docRef.trim)

    var docWidth = docRef.width.as ("px");

    var docHeight = docRef.height.as ("px");

    If (docWidth / docHeight > 4.8)

    {

    docRef.rotateCanvas (315)

    docRef.trim)

    }

    ElseIf (docHeight / docWidth > 4.8)

    {

    docRef.rotateCanvas (45)

    docRef.trim)

    }

    If (docWidth < docHeight)

    {

    docRef.resizeImage (undefined, UnitValue(270,"px"), 72, ResampleMethod.BICUBIC)

    }

    ElseIf (docWidth > docHeight)

    {

    docRef.resizeImage (UnitValue (270, "px"), undefined, 72, ResampleMethod.BICUBIC)

    }

    Else if (docWidth == docHeight)

    {

    docRef.resizeImage (UnitValue(270,"px"), UnitValue(270,"px"), 72, ResampleMethod.BICUBIC)

    }

    docWidth = docRef.width.as ("px");

    docHeight = docRef.height.as ("px");

    If (docWidth < docHeight)

    {

    docRef.resizeCanvas (UnitValue(300,"px"), UnitValue(300,"px"), AnchorPosition.MIDDLECENTER);

    }

    ElseIf (docWidth > docHeight)

    {

    docRef.resizeCanvas (UnitValue(300,"px"), UnitValue(300,"px"), AnchorPosition.MIDDLECENTER);

    }

    Else if (docWidth == docHeight)

    {

    docRef.resizeCanvas (UnitValue(300,"px"), UnitValue(300,"px"), AnchorPosition.MIDDLECENTER);

    }

    };

    var app.activeDocument = docRef;

    var docRef.activeHistoryState = savedState;

    fitImage();

    app.displayDialogs = DialogModes.NO;

    ExportPng (file ('.jpg ',' '))

    docRef.resizeImage (UnitValue(66,"px"), UnitValue(66,"px"), 72, ResampleMethod.BICUBIC);

    ExportPng2 (file ('.jpg ',' '))

    docRef.close (SaveOptions.DONOTSAVECHANGES);

    docRef = null;

    }

    Reset the application preferences

    app.displayDialogs = startDisplayDialogs;

    preferences.rulerUnits = originalRulerUnits;

    Does that help?

    main();
    function main(){
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    var inputFolder = Folder.selectDialog("Select the input folder");
    if(inputFolder == null) return;
    var fileList = inputFolder.getFiles(/\.(jpg|tif|psd|png)$/i);
    var outputFolder1 = Folder(inputFolder + "/300x300");
    if(!outputFolder1.exists) outputFolder1.create();
    var outputFolder2 = Folder(inputFolder + "/66x66");
    if(!outputFolder2.exists) outputFolder2.create();
    for (var a in fileList){
    open(fileList[a]);
    var Name = decodeURI(activeDocument.name).replace(/\.[^\.]+$/, '');
    app.activeDocument.trim(TrimType.TRANSPARENT);
    FitImage(300,300);
    var saveFile = File(outputFolder1 + "/" + Name + ".jpg");
    SaveForWeb(saveFile,70);
    FitImage(66,66);
    var saveFile = File(outputFolder2 + "/" + Name + ".jpg");
    SaveForWeb(saveFile,70);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    }
    preferences.rulerUnits = originalRulerUnits;
    }
    function FitImage( inWidth, inHeight ) {
     var desc = new ActionDescriptor();
     var unitPixels = charIDToTypeID( '#Pxl' );
     desc.putUnitDouble( charIDToTypeID( 'Wdth' ), unitPixels, inWidth );
     desc.putUnitDouble( charIDToTypeID( 'Hght' ), unitPixels, inHeight );
     var runtimeEventID = stringIDToTypeID( "3caa3434-cb67-11d1-bc43-0060b0a13dc4" );
     executeAction( runtimeEventID, desc, DialogModes.NO );
    }
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality;
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
    }
    
  • Dynamics as the sum of two columns in another

    Hi all
    I'm new with apex, and I had a problem I think its simple but I can't do it :)
    problem is, I have a table with column 3 I need dynamic action on the value of change in two columns to summarize this in a 3rd.
    So I can be able to add 5 rows calculate the columns in row and submit them.
    X Y Z
    1 2 3
    2 2 4
    5 5 10
    Send

    Thank yor occasionally you

    Check this thread column calculated in table form. The same problem is discussed here.

  • Problem of two-dimensional array

    I have problems assigning values to two dimension table. Here is an example:

    _Global.test = new Array (new Array, new Array);

    for (n = 1; n < = 3; n ++) {}

    _Global.test [n] ["txt"] = n;

    trace (_Global.test [n] ["txt"]);

    }


    Here is the trace output:
    1
    undefined
    undefined

    Can someone please tell me what I'm doing wrong?

    If you want to create a 2d array, which is an array with two elements, with each element of array, that you use:

  • How to keep account different values of two two-dimensional array

    Hello

    I need help regarding one of my LabVIEW VI. I have three matrices 2 dimensions, namely Sx, Sy, and P of dimension 4 x 4 of each. I want to do the following calculation:

    P(i,j)=[P(i,j+1)+P(i,j-1)+P(i+1,j)+P(i-1,j)]+1/8*[-3*SX(i,j+1)+SX(i,j-1)+2*Sy(i-1,j)-2*Sy(i+1,j)].

    For now, you can consider all values of Sx and Sy matrices and matrix P for the first time for all the elements as zero.

    I did it in Matlab, but have no idea on how to do this in LabVIEW. Please help me in this regard.

    Thanking you!

    You can go there.

  • Calculation of the sum between two dates

    Hello

    I had a requirement I need to calculate the total call volume between start and end date in the repository. Can someone help me with logic?

    Thank you

    Try this

    BOX WHEN DATE BETWEEN START_DATE AND END_DATE THEN

    END OF COUNT (CALL_VOLUME), 0 OTHERWISE.

    Thank you

    Sasi nanou...

Maybe you are looking for