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.

Date range dilemma

Featured Replies

The company year is split up into periods on a 4/4/5 week basis starting in October. I want to be able to automatically perform a search to show all the records from the last period and also show at the top of the report the date ranges and the year/period that the report relates to. The year would be 2002 for the 2001-2002 year, 2003 for the 2002-2003 year etc...

Not really sure where to start with this one. Hope somebody can help

Regards

Nick

quote:

Originally posted by nelliott:

The company year is split up into periods on a 4/4/5 week basis starting in October. I want to be able to automatically perform a search to show all the records from the last period and also show at the top of the report the date ranges and the year/period that the report relates to. The year would be 2002 for the 2001-2002 year, 2003 for the 2002-2003 year etc...

Not really sure where to start with this one. Hope somebody can help

Regards

Nick

First give me some more input:

When is the first week for ex, if dayWeek of 10-01-someyear is sunday?

Dj

Try this

code:


Case

(date <= If(Month(date) < 10, Date(-2, 92, Year(date)), Date(10, 92, Year(date))),"period1",

date <= If(Month(date) < 10, Date(-2, 183, Year(date)), Date(10, 183, Year(date))),"period2",

date <= If(Month(date) < 10, Date(-2, 274, Year(date)), Date(10, 274, Year(date))),"period3",

"perod4")

currentCompanyYear=Year(date)+ (Month(date) >= 10)

HTH

Dj

Have a look at www.onegasoft.com.

There's a document on "Smart Ranges" that addresses this problem - but we're talking SERIOUS FileMaker.

If you can work out how to cook an elephant whole then you'll probably understand it.

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.