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

Quick!! Portal Found Count???


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

Recommended Posts

Posted

Stuff Count from the aggregate functions into a calc'field, not to be confused with the Summary function. But you need to count on the foreign ID in case empty fields otherwise might exists. ValueCount(List( the same field will produce similar results ...but the important issue here is that the calc'field needs to be unstored - perhaps is the new option faster?:)

--sd

Posted

Thanks, guys!

I ended up creating a calc field in the related table that = 1, then SUM that field.

(That was before I got any replies!)

Works like a charm!

Posted

I ended up creating a calc field in the related table that = 1, then SUM that field.

I'd recommend you switch to dharlow's solution. count() is more efficient than sum() for this, and doesn't require a separate calc to count in the child table.

Posted

Indeed it seems pretty weird to bloat a solution with redundance, may we hear some kind of defence for this disposition???

--sd

Posted

Agreed, guys!

My defense is found in the first word . . . "Quick!"

You see, I was at a customer, and could not figure out how to do it - so after searching FM help, this forum and coming up empty, I posted, hoping for a quick response - I figured it was such a simple thing that anyone perusing this portal forum would know it and drop me a hint!

I know, a high expectation to get an answer so soon after posting, but worth a try!

As you can see, the first response was 10 hours later - I was sleeping then, 50 miles away from the database! So, that is my only defense for the slopy, inefficient, redundancy, and I will use dharlow's "Create a calc field with Count (related_field)" when I get in front of that database again.

If only that answer came 9 hours earlier :)-)) !!

Thanks for your concern, everyone!

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