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

Counting missing links (or "failed relationships" ?)


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

Recommended Posts

Posted

Hi,

I'd just like to check with you that what I'm doing is OK.

I'm trying to count

"joins / relationships / links"

that don't happen.

Example B) products that haven't sold =

no product ID in the sales table.

I've pasted an explanation pic here at

It's pretty straightforward.

My way of counting the "missing links" seems to be too good to be true.

Is it ?

TIA

Bobbby

Posted

The basic calculation is this:

Count ( sales::product id )

This returns the number of times a product has been sold. Everything else can be derived from that, except 'No Sale Count' which is a concept that I don't get (you want to count the number of times something has NOT happened?).

The If() construct is not required, because aggregating over a relationship automatically takes into account only related records.

Posted

I have to find out which Products don't appear in Sales.

The No Sale Count is to flag the Products that have not (yet) sold.

That's the one I have to get right.

Here's an example of a product with no sale.

The No Sale field lights up as "1".

Thanks for the info on the "If".

Bobbby

Posted

The products that don't appear in Sales are those for which the above calculation returns zero (or empty - depending on whether the calculation is defined to 'evaluate if all referenced fields are empty'). I believe this one field can be used for ALL your needs - see attached.

CountSales.fp7.zip

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