SoCalMacDude Posted October 13, 2006 Posted October 13, 2006 In FM 8.5, I can't figure out how to show the number of portal records found. I just want a count of the related records!
dharlow Posted October 14, 2006 Posted October 14, 2006 Create a calc field with Count (related_field) Daniel
Søren Dyhr Posted October 14, 2006 Posted October 14, 2006 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
SoCalMacDude Posted October 14, 2006 Author Posted October 14, 2006 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!
Ender Posted October 14, 2006 Posted October 14, 2006 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.
Søren Dyhr Posted October 14, 2006 Posted October 14, 2006 Indeed it seems pretty weird to bloat a solution with redundance, may we hear some kind of defence for this disposition??? --sd
SoCalMacDude Posted October 15, 2006 Author Posted October 15, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now