Jump to content

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

Recommended Posts

Posted

I have a summary field that keeps a total of another field ... I need it to give me the summary of all records in the database not just the current found set ...

any ideas?

Posted

Define a calculated field that always is always 1.

Then make a relation with this calculated field on the left and right side.

Then define another calculated field with calculation:

Sum(Relation::FieldToSummarise)

This should do the trick.

Regards,

Ernst.

Posted

Andrew,

In the Define Relationships dialog, when you are creating a new relationship, you will be presented with two columns which list fields. A list of fields in the current file is displayed on the left, while a list of fields in the file that you are creating a relationship is displayed on the right. You must then select one field in each column as the match fields on which the relationship will be based.

Ernst is suggesting that you select the same field (ie the calculation field he is proposing) in both columns. wink.gif

Posted

I thought a bit more about this and found that it's better to have the relation between a global number on the left side of the relation and the calculated field on the right side.

Advantage is that the sum of all records then still displays when there are no records found.

See attached sample.

Regards,

Ernst.

summary.fp5.zip

This topic is 7865 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.