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.

A Year to date sum field

Featured Replies

Hello all,

I currently have a software db with all the software my company has. I have added price db and set up a relationship between them both. Inside the software db I created a portal for the price db to show up. I need some year to date field that has the total cost of what I spend/spent for the year for each idividual piece of software. What type of calc can I use for this? I have been struggling with this for a while and it's been a bit hard since I'm new to FM.

Thanks,

Jay

There are several ways you could do this. I would suggest a concatenated key relationship that would filter your portal (run a search on "concatenated key" and "filtered portal" on this forum, there are lots of posts about this).

In a nutshell, you would create a stored text calc field (c_YTDKey) in your Software db that would be

SoftwareName & " - " & YTDYear

where YTDYear is a global text field with value list of all years you would need to look up.

In your Price DB, you would create a complimentary calc field (c_YTDKey) that would be:

SoftwareName &" - "&Year

where Year is a field that stores the year the purchase was made.

Create a relationship between these two from Software to Price DB. Put a portal based on this relationship on your Software Layout, and put the YTDYear above it. When you select the year from the value list, the portal should only display costs associated with that software from Price DB that shares the same Software name and Year.

another field could be placed at the bottom of the portal (c_YTDSum) which would be :

Sum(YourNewRelationship::Price)

which would give you the total.

Make sense?

-Raz

  • Author

Thanks, I will try this, and let you know how it goes.

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.