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

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

Recommended Posts

  • Newbies
Posted

Hello,

Here is my scenario. I have two tables. One with dog houses, each record has information about the doghouse, etc. Second I have a table with each individual dog, each dog is linked to a doghouse by a housing ID. Each dog also has a status of "Active" or "Otherwise." What I want is each doghouse to have a count of how many "Active" dogs are linked to it. I can then do searches and calculations based on that.

Is there a way to have a doghouse record value that is a calculation, or will I need to write up a script that is run every time I want a report. 

As a side note I have some 6,000 doghouses and close to 60,000 dogs registered. The faster it works the better.

 

Thanks in advance!

Posted

You can have a calculation field in the DogHouses table =

ValueCount ( FilterValues ( List ( Dogs::Status ) ; "Active" ) )

However, such calculation will be unstored, so if you plan to "do searches and calculations based on that", you might be unhappy with the speed. If this is for a report, it might be preferable to turn this task over to the script that produces the report.

 

  • Thanks 1

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