Simon-UK Posted July 28, 2005 Posted July 28, 2005 I'm trying to do a conditonal sum which i then want to use in further calculations. I want to get a value of "donations" in a given year. Its probably straight forward but.... Total = Sum of "donations" when "donation year"= "target year" What do i use instead of when? Thanks Simon
PeterHW Posted July 28, 2005 Posted July 28, 2005 Hi Simon, you can either use a selfjoin or a summary. I've included a small sample file showing both. The selfjoin uses a relationship based on gYear<=>DonationYear. gYear is a global where you can enter the year you wish to see the total of, which will then be calculated in YearTotal. The summary approach is done with the field Total. Note that your records will have to be sorted for the correct number to appear and that you need to be in Preview. If you need the value of the summary field for other calculations, use the GetSummary() function in your calculations. Your records will still need to be sorted though. HTH, Peter
Simon-UK Posted July 29, 2005 Author Posted July 29, 2005 Peter, Thank you! Could you post your example file again as i'm getting a "parse error". Simon
PeterHW Posted July 29, 2005 Posted July 29, 2005 Hm, seems I need to zip the file first (although .fp7 is listed as a valid file type ) Here goes, Peter test.zip
Simon-UK Posted July 29, 2005 Author Posted July 29, 2005 Peter, Thank you - opened fine and solved the problem. cheers Simon
Recommended Posts
This topic is 7056 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