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.

help with monday of week X

Featured Replies

Please throw a fried brain a bone!

Background:

I have a summary field reporting total hours in a given week. I'd like the report to show the week number for the summarized records, plus the date of the monday the week started on "week beginning" would be the head of this date column.

Fields:

dDate: date field for each record

cDateWeekNumber = WeekOfYearFiscal(dDate;2)

cMondayofDateWeek = dDate-(DayOfWeek(dDate)-1)+1

Report:

subsummary on cDateWeekNumber(trailing)

The Problem:

sometimes, not always, the report will repeat a date in the "week beginning" column across two different week numbers - perplexing!

week beginning week

8.03 32

8.10 33

8.24 34

8.24 35

8.31 36

In this particular case, there *are* records from the week of 8.17, but as you can see - they don't come up in the subsummary.

Any thoughts about this perplexing case?

Thanks!

Your cMondayofDateWeek calculation is incorrect - when dDate is a Sunday, it returns the following Monday - while WeekOfYearFiscal() still returns the preceding week.

Try instead:

date - DayOfWeek ( date - 1 ) + 1

BTW, you should group by this field, because WeekOfYearFiscal() will not sort correctly across years.

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.