shoil Posted December 30, 2003 Posted December 30, 2003 My portal lists all accounts owned by a specific customer. I want to create a field that will total the number of the ACTIVE accounts (elimiating the CLOSED ones). The result I'm looking for is a number of ACTIVE accounts that I can use for billing.
John Caballero Posted December 30, 2003 Posted December 30, 2003 In your related file create a calculation looks at whatever criteria are required for an account to be active and returns a value of 1 if those criteria are met. For simplicity's sake, let's assume your only criterion is a status field that has "Active" or "Inactive", your calculation, cFlag, would look like: (fieldname="Active") If the above condition is true, the calculation will return a 1, if not, a 0. In your main file, create a calculation that looks through the relationship back to the related file and sums all the records whose cFlag equals 1. That calculation looks like: Sum(relationship::cFlag)
shoil Posted December 30, 2003 Author Posted December 30, 2003 Thanks, John. I'll take a stab at implementing this later today. ~Shoil
Recommended Posts
This topic is 7635 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