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.

Self-Join Portal?

Featured Replies

Hello!

I'm getting into FM and can't manage to solve a simple (at least in Access and Excel it was) task.

I've got a table:

ID_Transaction

Some other fields...

Profit_or_Loss (calculated 1 or 0)

I need to calculate the Sum() and Count() of Profit_or_Loss in this table to find a proft/loss ratio.

As I understood, it should be possible to make with a self-join relation and portal of the same table. But I can't place such portal on layout. All fields and options in portal's dialog box are locked.

Could somebody help me, please?

Sergey

Why not use summary fields?

  • Author

Thanks for the reply.

Results of Sum() and Count () in the table just calculate one field. For example, Profit_or_Loss fields in the table where calculations added contains 1 or 0. The result of Sum() in every field is 1 or 0. The result of Count() -- 1 in every field. That's why I've thought about adding that Sum and Count in separate related table. I think I'm doing smth wrong. :(

Please help the novice (me).

Sum() and Count () are aggregate functions. Summary fields are something else:

http://www.filemaker.com/11help/html/create_db.8.16.html#1029235

  • Author

Thank you VERY MUCH

Missed that.

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.