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.

Help with weekly averages

Featured Replies

I have a database in FMP7 that I enter a company's daily stock numbers. Example High, Low, Open, Volume etc.

On another layout I have a portal that shows each days results for a company.

Next to the portal I'd like to show the weekly average in a field for High, Low, Open etc. based on a range of dates that I type in like 02/03/2005...02/08/2005.

I'd appreciate any help

Hi valnoren

Can we clarify what exactly you want.

Each week (5 days Monday to Friday?), at the end of the week you calculate various averages for HLOV. Alongside your existing portal for these values you would like another portal showing the weekly averages that lie between two given dates. In your example there is a 5 month range so there will be 21-22 weeks (actual number irrelevant here) so your portal will show 21-22 numbers for these averages. Is that correct?

Slim:

Across the pond, 02/03/2005...02/08/2005 is a week. Well, six days anyway.

Valnoren:

In the Companies table, define 2 global date fields, gStartDate and gEndDate.

Define another relationship to daily quotes:

Company::CompanyID = Quotes 2::CompanyID

AND

Company::gStartDate <= Quotes 2::Date

AND

Company::gEndDate >= Quotes 2::Date

In the Companies table, define a calculation field (result is number) =

Average ( Quotes 2::High )

Define more averaging fields as needed.

:blush: Who's idea was it to have different date formats? Answers please on a postcard but not to me.

  • Author

Thanks a ton I will give that a try.

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.