Newbies beagle Posted March 16, 2008 Newbies Posted March 16, 2008 I have set up a table that contains catergory Value Month In browse mode I would like to have a subtotal calculation that sub totals all "value" for a given month, without subtotalling for all months. Could someone pelase give me the calculation or do i need to set up more tables?
Fenton Posted March 16, 2008 Posted March 16, 2008 There are several ways. It depends how/when you want to see this. If printed, then a Summary field (Total of Value) in a Subsummary part, viewable in Preview mode, after a Sort by Month. If viewed in Browse mode, anywhere and always valid, then create a Sum() calculation based on a self-relationship on the Month. Be aware that a "month" must also include the year to be unique. A good way to do this, that works well for sorting, is a calculation, result Number (or Text), = Year ( date ) & Right ( "0" & Month ( date ); 2) The padding is needed. Create a self-relationship on the above calculation. Then create a calculation, = Sum ( self_month relationship::Value )
CobaltSky Posted March 17, 2008 Posted March 17, 2008 Another option, if your record sets will not be too large, is to use custom functions to break out the sub-summary totals for the found set in Browse mode. FWIW, an example of this is at http://www.nightwing.com.au/FileMaker/demos8/demo803.html
Newbies beagle Posted March 17, 2008 Author Newbies Posted March 17, 2008 thank you Fenton..it took a while for me to figure it out but i got there. Your solution worked perfectly.
Søren Dyhr Posted March 17, 2008 Posted March 17, 2008 Just be aware of the scaling issues raised by Ray! --sd
Recommended Posts
This topic is 6155 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