Newbies JammerHammer Posted December 12, 2006 Newbies Posted December 12, 2006 I'm trying to create a conditional sum but I'm having difficulty with the calculation. I have an Administration layout that gives a company overview by a variety of calculation fields. I have work orders recurring by month for multiple route men. Each month has a different grand total value due to the following conditions: number of tickets, number of call backs and number of one timers. I want to sum the total ticket value of the current month, omit the call backs and one timers and return the result to a portal field. I know I can write a script to sort the records omitting the conditionals to return a value, but I'd rather use a calculation so that my other calculations are not skewed by the sort. Your input would be much appreciated. Thanks
Conner Posted December 12, 2006 Posted December 12, 2006 I have a way to do this, but it is not fun. There are two steps: 1. Create a calculation field that says: if ( isblank (Tickets) ; "" ; "1") This is assuming you have separate fields for tickets, call backs and one timers. If that is not the case and you use a dropdown for these Types, just use "if ( type = "tickets" ; "1" ; "" ) where "type" is the name of the field with the dropdown. 2. Then create at summary field that counts the calculation field above. Repeat the steps above for call backs and one timers Then, put the summary fields in the footer. I hide the calculation fields behind the field they are calculating. I hope that helps.
Ender Posted December 13, 2006 Posted December 13, 2006 1. Create a calculation field that says: if ( isblank (Tickets) ; "" ; "1") Hmm, "isblank" eh? Is that in the Santa Monica version of FileMaker? Assuming you mean isempty, you could simplify that to: not isempty(Tickets)
RT Posted December 13, 2006 Posted December 13, 2006 I am in Malibu a few miles away and it is not in my version :woohoo:
Recommended Posts
This topic is 6617 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