raitis Posted January 20, 2014 Posted January 20, 2014 Dear fmforum, i would like to create a field in my INVOICES table which sums the subtotal values of the whole month. i would like to see the income for each month. maybe there is a option to add a drop down menu so i can choose the specific month. i have a field called month which looks like this: 01/13, 02/13, 03/13 etc. for each month. i add the corresponding month to each invoice. e.g. for january 2013 i add 01/13 to the field called month. where do i start?
iking42 Posted January 20, 2014 Posted January 20, 2014 It sounds like a sub-summary field would do the trick for you. If sort your records by month, a summary field in a sub-summary area will provide a total for only the records in the sort groups. I would experiment with a few layouts using this approach and a button to invoke the desired sort. Knucklehead
comment Posted January 20, 2014 Posted January 20, 2014 maybe there is a option to add a drop down menu so i can choose the specific month. Do you want to choose the specific month? Or do you prefer each invoice to show the sum of all invoices in the same month?
raitis Posted January 20, 2014 Author Posted January 20, 2014 i got it. thanks!! It sounds like a sub-summary field would do the trick for you. If sort your records by month, a summary field in a sub-summary area will provide a total for only the records in the sort groups. I would experiment with a few layouts using this approach and a button to invoke the desired sort. Knucklehead it would be nice if i wouldn't have to leave the invoice layout and could choose the specific month of which i need the total. Do you want to choose the specific month? Or do you prefer each invoice to show the sum of all invoices in the same month?
comment Posted January 20, 2014 Posted January 20, 2014 If you define a global text field gMonth, and a self-join relationship (using another occurrence of the Invoices table) as: Invoices::gMonth = Invoices 2::Month you can then use a calculation field = Sum ( Invoices 2::Subtotal ) to show the total for the selected month. For convenience, attach a value list (using values from field Invoices::Month) to the gMonth field.
Lee Smith Posted January 20, 2014 Posted January 20, 2014 Hi Raitis, I moved your topic from "FileMaker Pro 12" to "Calculation Engine (Define Fields)”, because the General Topic areas are for discussion of the New Tools, Functions and Features that were introduced in that version of FIleMaker, and not meant for asking How-To questions.
raitis Posted January 20, 2014 Author Posted January 20, 2014 ok thanks. i didn't knew. Hi Raitis, I moved your topic from "FileMaker Pro 12" to "Calculation Engine (Define Fields)”, because the General Topic areas are for discussion of the New Tools, Functions and Features that were introduced in that version of FIleMaker, and not meant for asking How-To questions.
Recommended Posts
This topic is 4227 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now