Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7056 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.