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.

Featured Replies

I have two files related via a unique ref field in each giving a simple oneto many relationship. The first file has a layout with a portal showing related records from the "many" file - again very simple!.

The files deal with departments (main file) and sales of particular products by that department. Also there will only ever be a maximum of six different products sold altogether across all the departments.

My problem is that I simply need to show the sales of each product for each department. My plan is to create six new calculated fields to store these values. The problem I have is how to total the sales of each product from within the portal. Something similar to the Excel "Sumif" function would be nice.

Any help or suggestions or perhaps a differnt direction to go ASAP would really be appreciated.

Thanks

John

SumIf about sums it up ...except that you need to put the if part into the related file, and the sum into the main file. smile.gif

What I suggest you do is to create six separate 'flag' fields in your related field which reference the product field, with formulae along the lines of:

Case(Product = "FirstProduct", 1)

Then in your main file, the six corresponding fields will use the sum function along the lines of:

Sum(RelatedFile::ProductOneFlag)

These latter six fields will be unstored, and will pick up the respective sub-totals of a particular product sold by a particular department in the main file.

  • Author

Just a quick reply to say thanks a million. I just got your reply and tried it and it works like a charm. Simple when you know how. Thanks again

John

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.