Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Table A and B are related. In Table B, I would like to see a count of records related from Table A, based on  criteria in an unstored calculation field, such as TableA::Status ("Sold", "Available", etc.). In other words, in Table B I would see a count of sold records (related from Table A), available records (related from Table A), etc.

 

Available: 6

Sold: 5

Total: 11

 

The Total is easy: for example Count (TableA::Record ID) However, I can't build a relationship based on an unstored calculation, such as TableA::Status - so what do I do??

 

If anyhow possible, I would like to avoid calculation fields in Table A, because there's a lot of records. If I have to add a couple of calculation fields in Table B, that's ok.

 

Posted

A combination of List, FilterValues, and ValueCount should do the trick.

Posted
A combination of List, FilterValues, and ValueCount should do the trick.

 

 

Thank you! Sometimes I feel so confined in my own mind... lol

 

 

If anybody else has a similar challenge, here's the solution Fitch suggested (or my interpretation of it) to compare the number of "Available" records with the total number of records related:

 

TableB::Availability [ValueCount (FilterValues (List (TableA::Status); "Available")) & " / " & Count (TableA::RecordID)]  Result must be Number

 

The result looks like this:  3 / 5

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