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.

Creating Numerous Calculations Between Child Records

Featured Replies

I have two tables
Parent Table - "Company" 

and Child Table = "Data"

each Company has several related "Data" records individualized by a "YEAR" field.

Each Year, we import new Data for that year.

I need to do some computations between the annual data  records for each Company. For example if current year is 2015, average X from the last 3 years(2015, 2014, 2013). I need to do several calculations like this.

Bonus, is there a way to automatically update these calculations when the new data comes in for 2016, so then the average would automatically become 2016, 2015, 2014?

I'm looking for a maintainable solution and I feel like it's a combination of table relationships and some nice calculations.

Thanks

  • Author

Hey Kris,

I don't think Sub Summary Reports will work here. Also, I am not using list views for this data. I am looking directly at the company record...Unless there's a technique I'm missing?

 

Each Year, we import new Data for that year.

​Your description is not quite clear. How many data records does a company have per year?

 

In any case, you could define a cLast3Years calculation field in the Companies table =

Year ( Get ( CurrentDate ) ) - Get ( CalculationRepetitionNumber ) + 1

Make the result type a Number, and set the number of repetitions to 3. Then define a relationship between Companies and a new occurrence of the Data table as:

Companies::CompanyID = Data 2::CompanyID
AND
Companies::cLast3Years = Data 2::Year

Now you can use a formula such as:

Average ( Data 2::Value )

to get the average value of the company's data for the last three years.

Edited by comment

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.