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

Calculate percentage based on Summary fields


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

Recommended Posts

Posted

Properly applied,

TrashPct = GetSummary(sTrashWt, Customer_ID) / GetSummary(sReceiveWt, Customer_ID)

is correct. The correct answer will only appear when this field is placed in the subsummary part by Customer_ID AND the records are sorted by Customer_ID AND in Preview Mode or on the printed report.

-bd

Posted

Thanks for your reply. Unfortunately, I am already doing what you suggested and that is why I'm baffled. This calculation is in the 5th (and last) subsummary part of the report and is the only one that is not coming out correctly.

Thanks, Mike

Posted

Well, don't I feel foolish. I double checked the sort routine and I was not sorting correctly on Customer_ID. Thanks for keeping me straight!

Mike

Posted

You must have a sort for each nested subsummary part. The fields in the sort must appear in the same order as the "by" fields in the subsummary parts. It's there, keep looking.

-bd

Posted

Thanks LiveOak. I got this working early this morning and improved upon it. smile.gif On to the next challenge...

Thanks again, Mike

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