Sum of all according to popup category

Another question here:
I'm trying to create a pie chart to visualize our home expenses.
As you can see, the "category" column is a popup column. How do I total the expenses in the "account" column according to the assigned category on the left?

select B2, copy,
select column B then paste
the second argument looks at the text in the same row column A.
Type the category names  (exactly like they are in the data table on the left) in column A
Here is a description of the sumif() function:
The SUMIF function returns the sum of acollection of numbers, including only numbers that satisfy a specified condition.
SUMIF(test-values, condition, sum-values)
test-values: The collection containing the values to be tested. test-values can contain any value.
condition: An expression that results in a boolean value of TRUE or FALSE. Acondition can contain anything as long as the result from comparing it to a value in test-values can be expressed as TRUE or FALSE.
sum-values: An optional collection containing the values to be summed.
sum-values can contain number values,date/time values, or duration values. It should have the same dimensions astest-values.

Similar Messages

  • Report - to show sum of all the fields in a table

    Hi,
    I have a requirement that for a particular materil ex: SALT i should show the sum of  qunatity i.e TMENGE , LMENGE, MMENGE.
    for a particular material  there is a condition on bais of  which the values will be divided.
    IF IT_PROD2-BWART  = '103','104','
    IT_PROD2-MENE GOES TO TMENGE,
    SIMILARLY FOR  201','202','261','262',
    IT_PORD2-MENGE GOES TO LMENGE
    FOR IT-PROD2-BWART = 551','562'
    IT_PROD2-MENGE GOES TO MMENGE.
    So i should insert sum of all the qunatiy lmege, tmenge, mmenge into it_prod3 and display it.
    i should disply only single reocrd for a particular material.
    but i am getting all the reocrods for mutiple dates i.e for date 2007.05.01 i am getting 10 records for SALT and for date 2007.05.02 again different records whre single date is repeating and materil is repating and so on   i want only single material and all the values should be sum.
    below is my code.
    SELECT werks_i AS werks
             SUM( menge_i ) AS menge
             matnr_i AS matnr
             budat  bwart_i AS bwart
             FROM  wb2_v_mkpf_mseg2
             INTO CORRESPONDING FIELDS OF TABLE it_prod2
             WHERE budat IN s_budat
             AND matnr_i IN ('PULPIMPORT','PULPLOCAL','SULPHUR','ZINC',
    'ZINCOXIDE','CHARCOAL','SALT','LIGNITE','STEAMCOALLCV','STEAMCOALHCV',
    'LDO','FURNACEOIL')
             AND bwart_i IN ('103','104','201','202','261','262','551',
    '552')
             GROUP BY werks_i menge_i matnr_i budat  bwart_i.
    SORT it_prod2 BY budat matnr.
      date1 = s_budat-low.
      date2 = s_budat-high.
      WHILE date1 LE date2.
        it_totstk1-month1 = date1.
        date1 = date1 + 1.
        APPEND it_totstk1.
      ENDWHILE.
    sort it_prod2 by matnr budat.
    LOOP AT it_totstk1.
        LOOP AT it_prod2. " WHERE budat EQ it_totstk1-month1.
          tdat = it_prod2-budat.
       if ( it_prod2-matnr = 'PULPIMPORT' OR it_prod2-matnr = 'PULPLOCAL') .
    elseif ( it_prod2-matnr ='STEAMCOALLCV' OR it_prod2-matnr =
    'STEAMCOALHCV' ).
            tmatnr = 'STEAM COAL HCV'.
          else. tmatnr = it_prod2-matnr.
          endif.
          IF it_prod2-bwart EQ '103'.
            tmenge = tmenge + it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '104'.
            tmenge = tmenge - it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '201'.
            Lmenge = Lmenge + it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '202'.
            Lmenge = Lmenge - it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '261'.
            Lmenge = Lmenge + it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '262'.
            Lmenge = Lmenge - it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '551'.
            Mmenge = Mmenge + it_prod2-menge.
          ELSEIF it_prod2-bwart EQ '552'.
            Mmenge = Mmenge - it_prod2-menge.
          ENDIF.
       ENDLOOP.
        it_prod3-budat = tdat.
        it_prod3-matnr = tmatnr.
        it_prod3-tmenge = tmenge.
        it_prod3-lmenge = lmenge.
        it_prod3-mmenge = mmenge.
        APPEND it_prod3.
        CLEAR : tmenge,tdat,tmatnr,lmenge, mmenge.
      ENDLOOP.
    <b>points will be rewarded</b>
    Thanks & Regards,
    Sunil kumar.

    data: sumf type i.
    select sum( kbetr ) from  konv into sumf where kinak <> 'A' group by konv.
    write: sumf.
    Message was edited by:
            Ramu

  • How do i display all artists in artists category?

    i just got my ipod video, and i noticed that when i transfer music from itunes, only the artists for which i copied full albums show up in the "artists" section, while other artists for which i only have one song (but other album info, including album name) do not show up unless i enter "all" in the artists category. in that case, only the album names appear.

    the only thing i can think of causing this problem, is if "compilations" is on. otherwise, i've never heard of this problem. you can turn this off in itunes when you open ipod preferences.

  • Sum of all line items and display at the bottom of the page

    Hi ABAPers,
    I am displaying line items in the main window based on PO number ....and I've a coloumn Total amount.
    My requirement is after the line items , the  grand total which is the sum of all line items has to be displayed.
    Is this possible. If so, can anybosy help me in that.
    thanks in advance

    Hi ,
    It is possible.
    For that u have to do  following
    take one variable of same type on which you want to calculate total  ... declare in global variable
    double click in the table  goto the calculation tab in that give the variable on which u want to calculate total
    print in the total in the  footer of the table ..
    Hope you resolve your problem
    Let me know any concerns......

  • Numbers formula for "sum of all cells above this row"

    Is there a way, using the cell formulas in Numbers, to say "sum of all the cells above this row"?  I'm trying to make a ledger of sorts, and I want to have a column that is "how much you've spent so far" for each entry, which is the sum of all the "Price" cells for that row and above.
    Is this possible?  Thank you in advance for your help!

    Hi Alexander,
    You could start with a table like this:
    To get started,
    Cell D2 =C2
    Then to continue,
    Formula in D3 (and Fill Down)
    =D2+C3
    Row 10 is waiting for you to fill in details... .
    Regards,
    Ian.

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

  • Sum of all order amts

    I want to be able to find the sum of all order amts from an itab that I read. The total needs to be 12 digits left filled with zero and decimal dropped
    data: totalorderamt(12) type n value 0.
    in the loop should it be
    totalorderamt = totalorderamt + totalorderamt ?
    is there a sum function that i can use ?

    Hi,
    You can use SUM function within loop.
    LOOP AT ITAB.
       AT LAST.
         SUM.
       ENDAT.
    ENDLOOP.
    TOTALORDAMT = ITAB-ORDAMT.
    Regards,
    Ferry Lianto

  • New vprs condition for posting COPA according to item category

    Hi
         My client has a requirement of  posting in COPA according to item category, for example ,i have two items in the billing one is with normal item ctegory (TAN) and other is (TANN),They want the postings should be different for both the item categories in COPA so that they can show  the free items  VPRS  cost should be booked in other expenses(TANN).
    I tried by adding  another condition type  like ZPRS and made a routine but system is working  in the order and at the time of billing system is not working
    Provide the suitable solution
    Regards

    Hi!! Sriram Kiran,
    I would rather suggest a different method.
    Please make the following changes.
    1) In the detail screen of your item category TANN, in the section of 'Business Data' for the field Pricing the value entered should be 'B'.
    2) Next insert condition type R100 in your pricing procedure and insert the requirement for the condition type R100 as 55.
    this way pricing is applied to the product with category TANN but is with 100% discount and the cost VPRS is transferred for COPA.
    According to me no need to create a new condition type for cost of the free item.
    Hope this helps.
    Regards,
    PATHIK
    Hi!
    Pl note it as 09371095087
    Message was edited by:
            Pathik Pandya

  • I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly app

    I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly appreciated.

    Here's something I threw together rq. The script is in the change event for the checkbox in the table. (Of course, you'll have to modify it to suit the names of your fields.)
    var rows = xfa.resolveNodes("tblAmounts.Row1[*]");
    var subtotal=0;
    for (i=0; i<rows.length; i++) if (rows.item(i).cbAdd.rawValue == 1) subtotal = subtotal + rows.item(i).nfAmount.rawValue;
    nfSubtotal.rawVlaue=subtotal;

  • I'm still getting all these annoying popups windows, although I followed every solution suggested(safari extentions,block the pop ups) it's really disturbing please help :(

    I'm still getting all these annoying popups windows, although I followed every solution suggested(safari extensions,block the pop ups) it's really disturbing please help

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Message Mapping - Sum of all Element1.Field1 where Element1.Field2 = X

    Hi!
    Has everyone an idee of how to do the following message mapping ?
    My input message is :
    E1EDP01
       E1EDP26
          QUALF = 001
          BETRG = 5
       E1EDP26
          QUALF = 003
          BETRG = 3
       E1EDP26
          QUALF = 002
          BETRG = 5
       E1EDP26
          QUALF = 003
          BETRG = 3
    I want to get the sum of all E1EDP26.BETRG where E1EDP26.QUALF = "003".  There can be more than one E1EDP26 with field QUALF = "003".  So expected result is 6.
    Thanks in advance,
    Laurence

    Input structure :
    INVOIC02 1.1
         IDOC 1.1
              E1EDP01 0..999999
                   E1EDP26 0..20
                        QUALF 0..1
                        BETRG 0.11
    Output structure :
    root 1..1
         GoodsDeclaration 1..1
              Invoice 0..1
                   ExchangeRate 0..1
                        exchangeRate 0..1
                        currrency 1..1
                        exchangeDate 0..1
                   invoiceAmount 0..1
    The target field root/GoodsDeclaration/Invoice/invoiceAmount must be mapped with the sum of fields BETRG belonging to nodes E1EDP26 with field QUALF = "003".
    Sample :
    <INVOIC02>
         <IDOC>
              <E1EDP01>
                   <E1EDP26>
                        <QUALF>001</QUALF>
                        <BETRG>5</BETRG>
                   </E1EDP26>
                   <E1EDP26>
                        <QUALF>003</QUALF>
                        <BETRG>1</BETRG>
                   </E1EDP26>
                   <E1EDP26>
                        <QUALF>002</QUALF>
                        <BETRG>5</BETRG>
                   </E1EDP26>
                   <E1EDP26>
                        <QUALF>003</QUALF>
                        <BETRG>2</BETRG>
                   </E1EDP26>
              </E1EDP01>
         </IDOC>
    </INVOIC02>
    In this case, target field root/GoodsDeclaration/Invoice/invoiceAmount must have the value 3 :
    <root>
         <GoodsDeclaration>
              <Invoice>
                   <ExchangeRate>
                        <exchangeRate/>
                        <currrency/>
                        <exchangeDate/>
                   </ExchangeRate>
                   <invoiceAmount>3<invoiceAmount>
              </Invoice>
         </GoodsDeclaration>
    </root>
    Laurence

  • Sum of all values in a list

    Hi,
    I am having a list which has item and corresponding price.I wanted to do sum of all the prices in the list object.how can i do that?
    Thanks in advance
    rk

    I am having a list which has item and corresponding
    price.I wanted to do sum of all the prices in the
    list object.how can i do that?and what have you tried so far?....
    In case you haven't figured out yet, here we try to nudge you to do as much for yourself as possible... even to figure out the solution on your own. To do so will make the solution your own forever.

  • Totals column that is the sum of all the data columns

    In a Report, I have several data columns, and then I want a totals column that is the sum of all the data columns. So for every row, the totals column will show the total of the data columns. How do I do this?
    Thanks, Wayne

    One way, create CF_total:
    function CF_totalFormula return Number is
    n number;
    begin
    select sum(coll) + sum(nvl(col2, 0)) + sum(col3)..... into n
    from tbl;
    return n;
    exception
         when others then
         return null;
    end;
    Another way, if you have SUMCOL1, SUMCOL2, ....:
    function CF_totalFormula return Number is
    begin
    return :SUMCOL1 + SUMCOL2 +.....;
    end

  • Sum of All Years in Year Dimension

    I am trying to get the sum for an account of all years in the Year dimension. The cube is from a EPMA Planning 11.1.1.3 app. There are no Aggregation properties for the individual year members in the Year dimension. Any ideas on how to get the sum of all years?

    Hi kskinner,
    You can use @SUMRANGE function to get the summation of all the values of the specified member across the specified range.
    You can refer the below link for the syntax and example of SUMRANGE function.
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/html_esb_techref/funcs/sumrange.htm
    NOTE - @SUMRANGE function does not accept a cross-dimensional parameter as a member name.
    Hope this helps.
    Greetings,
    SST.....

  • I deleted one of the email accounts from my i5 because I don't like all the password popups since upgradingto ios 7.2, and now ALL calendar entries are gone!  I need them!!!  Can anyone help?

    I deleted one of the email accounts from my i5 because I don't like all the password popups since upgradingto ios 7.2, and now ALL calendar entries are gone!  I need them!!!  Can anyone help?

    Well you need to add the email account back to get the calendar entries. Transfer them to another email provider.  Then delete the account you don't want.

Maybe you are looking for

  • Problem with clustering of oracle application server 10.1.3.1

    Hi I have clustered two instances of oracle application server 10.1.3.1 running on solaris. Instance 1 <notification-server interface="ipv4"> <port local="6100" remote="6200" request="6003"/> <ssl enabled="true" wallet-file="$ORACLE_HOME/opmn/conf/ss

  • SQLJ runtime exception in 9.2.0.4

    Hi, I work on a software using oracle, java and SQLJ technology. Since we pass from oracle 8.1.6 to Oracle 9.2.0.4 we have some sqlj runtime exception. These exceptions are randoms, amazing as the same request with SQL*plus is working, and occurrs ra

  • Using search help icon for a button

    Hi Experts, For a Webdynpro layout I have created a button and I want to assign an icon/image similar to the search help image(two squares type). Is there any way to assign the webdynpro search help icon to a button? I was searching in ImageSource un

  • Mmap() fails in code ported from Linux

    I'm having trouble with an application that was ported from Linux to OS X. An out of memory error is generated by mmap() when large (> 1GB) files are put into memory by mmap(). The mmap() call looks like this: buffer = (char*)mmap(0, (int)size, PROT_

  • ABAP FRESHER WANT TO KNOW WHAT ARE ALL THE MANDT FUNCTION MODULES

    WHAT ARE THE FUNCTION MODULES WANT TO KNOW AS A ABAP FRESHER, AND WHAT THINGS WANT TO LEARN THAT FUNCTION MODULES  PLEASE GIVE ME SOME BRIEF PROCEDURE. Moderator message: I suggest you read the Rules of Engagement of this forum first. Edited by: kish