Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Counting missing links (or "failed relationships" ?)

Featured Replies

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

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.

  • Author

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

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

  • Author

OK.

Thanks.

Even simpler than I thought.

And the Yes /No tip is pretty cool too.

I'll try that Monday.

Bobbby

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.