How to calculate a total based on the expense category?

If i am keeping a ledger for each month in a seperate table, with expense categories like gas, groceries, work expenses etc... Am i able to, in another table, run a total that automatically updates everytime i choose that specific category. So at end of month i can see total I spent on each category?

tlanghauser,
I would create a 14 column table headed 1) Category, 2-13) the twelve months (Jan-Dec), and 3) Total. Then, each row would contain one of the categories. Be careful to spell these categories exactly as in the monthly tables.
The basic formula for each cell is: =SUMIF(Jan :: Category,$A2,Jan :: Cost)
(Note comma between $A2 and Jan)
and, of course, the Total is: =SUM(B2:D2)
This approach not only give your totals to-date, but an analysis of expenses by month.
pw

Similar Messages

  • Problem in displaying totals based on the Unit of measurement.

    Hi,
    I have Problem in displaying totals based on the Unit of measurement.
    I want to display the total in the output of the alv based on the unit of measurement. for example i have three fields in the output namely
    Matnr           Quantity      UOM
    51                10              EA
    61                10              KG
    71                10              KG
    In the total i should get
                    10         EA
                    20         KG
    Can anyone tell me how to do this?
    The basic req is the exclude the qty with unit EA(each) in the totals.
    Thanks,
    Amit

    H i,
    you can use the collect statement
    to get the proper result
    loop at itab.  ( all the records)
    move all the fields from itab to another
    collect itab1.
    write: itab1-fields, itab1-fields.
    endloop.
    this will solve your problem
    reward points if helpful,
    thanks & regards,
    venkatesh

  • How to show/hide total based on selected column in column selector

    Hello,
    Is there a way to show/hide the total based on what column is selected in the column selector? Or alternatively to hide the total based on the column selected? I'm using OBIEE 10g.
    Basically, I have a pivot table with a handful of row variables and one measure. Then I allow the user to select the column variable. The default is to have nothing, which I have achieved using the hidden/dummy column trick (Re: How to add new columns by using Multiselect However, if my pivot table is set to have a total, I now get 2 columns that are the same. When the user selects any other choice (e.g. gender), I would want to see Male, Female and the total. Something like this:
    Default:
    Count
    East 10
    West 20
    Total 30
    Gender:
    Male Female Total
    Count Count Count
    East 6 4 10
    West 14 6 20
    Total 20 10 30
    Any thoughts?
    Thanks!

    I recommend using view selector instead of column selector

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How to invalidate a session based on the session id

    How to invalidate a session based on the session id

    You have to write your own support for this.
    It used to be in the API, but was deprecated as a security hole.
    The best way to do it is implement a session listener (javax.servlet.http.HttpSessionListener) which notifies you when sessions are created/destroyed.
    You can then keep a map of sessions in your own code, indexed by session Id, and access any/all of them to invalidate as you choose.

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • Urgent : how to calculate sub total and grand total in smart forms

    Hi Friens..how to calculate sub total and grand total in smart forms..How to print them in smart forms...Also kindly explain how to handle events in smart forms..Thanks in advance

    Re: Subtotal with Table Node in smartforms

  • How can I show Totals in at the footer?

    Hi,
    I want to create a List (Report) with a Number column say (Amount), and there are certain number of transactions on the page. How can I show Total Amount at the bottom of report?
    Thnx in advance.

    BalusC, thnx for ur help. This means there is no other way that v we can add some number columns using jsp. In anyways we will have to populate totals using backing beans.
    Thank u very much :)

  • How do I get totally rid of the update to iOS 7.1.2 on 23MB for my iPhone 5?

    How do I get totally rid of the update to iOS 7.1.2 on 23MB for my iPhone 5?
    Do I need improvement of iBeacon connectivity and stability?
    Do I need a bug fix for data transfers for some 3rd party accessories, including bar code scanners?
    Do I need to correct and issue with data protection class of Mail attachments?

    You can't "get rid" of update notifications without doing the update. But then again if you wait for a while there will be iOS 8 available.

  • How to handle vendor discounts based on the qty / value procured.

    Hello
           How to handle vendor discounts based on the qty / value procured.
    a.       Scenario: you have entered into a contract with vendor that you will buy goods worth Rs 10000/- and if you buy goods worth more than 100000 the vendor says he will give a discount of Rs 5000/- @ the end of the year.  
    i)                    How to handle this sceneriou2019s with SAu2019s
    ii)                   What does STD SAP offer.
    Regards
    Sapman man

    Hi,
    For the discucount condition type, you have to maintain scales.
    Take Condition type -  Discount Value ( RB00)
    Discount Value ( RB00) - Means Fixed discount. For this condition type, you have to maintain Scale basis as Value scale 'B' in the condition type customization.
    Transcation : M/06
    Select your condition type RB00 and click on the details icon.
    In the Scales block, you have to maintain and save.Calculation type = Fixed amount
    Scale basis = Value scale 'B'
    For this condition type, you have to maintain scales in the inforecord.
    Transcation : ME12
    Select this condition type, click on the Scales icon. There you have to maintain like
    From : 10,0000            Rate: 5000.
    It means, if the document value is reached 10,0000 then discount is 5000rs. If the value islessthen the 10,0000 then no discount.
    Regards
    KRK

  • Calculating Grand Total based on the section totals

    Hi,
    I have a webi report with a section. Outside the section block I have a grand total block. I have a section on Shop Names. At the total level I calculate calls per hour average. So at the end of each sections the total would look like
    Shop 1
    Shop 1 Calls : 61
    Shop 2
    Shop 2 Calls : 45
    I need to calculate call per hour at the grand total ...which should average the totals in the section
    Grand Total : 61+45 = 106/2=53. I needed guidance as to how based on the section totals I can write a formula to calculate averages of the values present in the section. Both are different blocks ( Section and Grand Total)
    I cannot write a direct formula as it will give me error caculation beacuase of the nature of data in the report.
    Please let me kow on this.
    Thank You,

    Hi BOCP-BOE ,
    Thank you very much for the quick response.
    I tried with          
    =Sum([V_Calls_Per_Hour_Average]) ForAll ([V_Calls_Per_Hour_Average]) In Report
    =Sum([V_Calls_Per_Hour_Average]) ForEach ([V_Calls_Per_Hour_Average]) In Report
    But this gives me error
    I calculate calls per hour as a subtotal for each shop. ( There is a section on shop so for each shop under the section we will have calls per hour total)
    The formula to calculate calls per hour is little complex
    =If(Count([Date_Appeared];Distinct)=1;(Sum([Number Of Total Calls])/Average([Hours_Worked/60));(Sum( [Number Of Total Calls])/(Sum([Hours_Worked]/60) ForEach([Date_Appeared]) Where([Date_Appeared]<>Previous([Date_Appeared];Row)))))
    My think that the formula to calculate calls per hour has very little to do with summing the values for calls per hour. Please note that I have a V_Calls_Per_Hour_Average that holds that calculation.
    Please let me know on this.
    Thank You

  • How to Calculate Sales Analysis based on Item

    Hi All,
         I have a problem in calculating the Total Sales,GrosProfit%, TotalOpen,Paid for generating the SalesAnalysisReport based on Items.
    Please tell me how the above fields are calculated(Please post the formulae if u can).
    Thanks & Regards
    Guru.

    Hi.
    From what I know, the Total Sales and Gross Profit are taken from the Marketing Document. You can click the Gross Profit button to check and confirm.
    It will take the Base Price Origin as specified in the Document Setting as the default Cost to calculate Gross Profit. But you can always overwrite it in the Marketing Document.
    In SBO 2004, you need to run the Item Revaluation to ensure correct Last Evaluation Price for Items with Moving Average costing method. In SBO 2005, you have the option of using the Item Cost. There is no need to run Item Revaluation.
    Total Open should be the outstanding while the Total Paid is the amount paid and reconciled.

  • How to calculate a column bases on the result of another column?

    Hello folks, i need some help with this senario.
    I don't know to explain this in a simple way, but i'll give it a go.
    I display a report in ApplicationExpress like this
    Each row displays a product where the user are going to make a forecast for 18 months ahead.
    [productname] [Stock] [sales] [PMonth] [NewstockMonth] [salesmonth1]      [ProductionMonth1]     [NewstockMonth1] ....
    [product1]______[10]____[5]____[0]_________[5]__________[10]_________[10]______________[5]
    [product2]______[2 ]____[0]____[0]_________[2]__________[5]__________[10]______________[ 7]
    [product3]______[30]____[20]___[0]_________[10]_________[5]_________[10]______________[15]
    Stock and sales are results of a function i have in my select.
    productionmonth is a text field where the user can edit the production and is saved in the table.
    So when the user has entered some inputs in the textboxes, and pressed the submit buttom, the newstockmonth columns
    should be calculated from the result i get from the previous month.
    newstockmonth = (stock-sales)+productionMonth
    newstockmonth1 =(newstockmonth-salesmonth1)+productionmonth1
    At this point my submit process has update in a for loop for each row. But i don't quite know how i can calculate every newstockmonth columns.

    Hi Klaus,
    your condition only works if the Shop is in the query. If I understood it correctly you have one query with
    Country   Shop   Total Sales
    and one with
    Country   Number of Shops   Total Sales
    and you don't want to restrict the second Total Sales but the Total Sales from the first query.
    Best regards
       Dirk

  • How to calculate net price based on customized formula

    Hi  all expert,
    I have a requirement in a rental process:
    The price of a rental is defined as daily rate (e.g. 100/day) and monthly rate (e.g. 2500/month).
    when I create a rental contract, I'd like SAP to calculate net price based on contract duration with both rate and use the lower one.
    e.g. rental 5 days. use daily rate = 500; monthly rate = 2500; So use 500.
    e.g. rental >=26 days. use daily rate >= 2600; monthly rate = 2500; So use monthly rate 2500.
    I was think to use price condition scales to set:
    1 - 25 days: 100/day
    >=26 days: 2500/month
    But the problem is there are 30day a month and 31 days a month. When the contract has to calculate partial month, daily rate has to be calculated as monthly rate/actual days in the month.
    How to handle it?
    Thank you in advance!    

    There might be more than one method to resolve the requirement.
    You can develop a routine in t.code VOFM and add it in the column  AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
    The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
    Regards,

  • How to render web items based on the authorisation profile of the user

    Hello,
    Is there any way to render web items based on the authorisation profile of the user. The only way i can think of is:
    - Write ABAP to look up into the security mapping tables.
    - Convert the ABAP report into RFC-Enabled FM. The selection variables will be part of the import/export parameters of FM and table can be used to display the result.
    - Create HTML template using WAD, write Java Script to call the FM and map the import/export parameter. Display the result in Table.
    But i don't know How to use the Java Script to call Function Module (FM) and get back the authorization through parameter.
    Is anyone know about it or is there any other method to do it? I can't find any solution and it is very critical for me.
    Any help is highly appreciated.
    Rajat

    Hi Rajat,
    Do you mean that you want certain users to be able to use only certain web items? I think you can use the libraries for that and assign them to roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/0f813b420ce60ee10000000a114084/content.htm
    Hope this helps...

Maybe you are looking for

  • DSO - Key Field doubt?

    Hi All, I want to know the functionality of the Key Field in the DSO. I know based on the Key Fields(Primary Key) data is pulled to DSO, but please explain me the below scenario E.g I have 3 records in the Extractor( Generic) and i am pulling data to

  • Has anyone been able to get a refund from American Express?

    I understand their Best Value Guarantee has been discontinued as of Oct 2006. Is there another service they offer that would help me get $200 back?

  • Expense Report in Payables using web adi ??

    I am new to Finance modules. Need a help to know that can we use web adi to load expense report in payables? If yes, how? Please share your views and any document if possible.

  • Hot Backup Cloning

    Hi Hussein and Fadi, Do you have any experience on doin Hot Backup Cloning of Oracle Apps 11.5.10.2. Can you please share your experience

  • Problem getting session vars to stay defined

    I am frustrated please help. I have used earlier versions of CF but cf 8 is very new to me. I want to set session variables with in the application.cfc, I thought I had it correct for session management to be initiated, as session variables can be de