Skip 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.

Count one value based on another value - Q2...

Featured Replies

Hello.

Another question;

I do have, in my db, a single table.

I have the fields:

"ID"

"Productnumber"

"Location"

"In_Stock"

"Total_In_Stock"

My question is;

I have several productnumbers, both with and without letters/ numbers, but they are not unique.

Each Productnumber is given a location.

Each Productnumber with Location is given a number in stock, from 0 to 2000.

Each location is not unique to that productnumber.

But, I might have the same productnumber several times, but with different locations, and different number in stock.

I need the field "Total_In_Stock" to count the total number in stock for each Productnumber.

I.E. I have:

PO# "920-580" on Location "H1" with 2 in stock, and on location "291504" with 7 in stock.

The "Total_In_Stock" would be 9.

PO# "MayOS" is located only on Location "VM2" with 4 in stock.

The "Total_In_Stock" would be 4.

You get my drift?

Regards

Christian

Watch this:

--sd

  • Author

Hello.

Thank you for that informative video.

But...

I might be a bit sleepy, but as far as I understood, this only works when creating layouts for previewing, and not in standard browse mode...

If there is something I've missed, please explain.

Christian

It's becasue the video originates from ver. 8.5 or 9 where the new feature Dynamic reporting still was unknown to the masses:

http://fmdl.filemaker.com/MISC/fmp10/dynamic_reports_640x400.mov

--sd

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.