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.

SORT & SUBTOTAL BY MONTH

Featured Replies

I have records with a date stamp that I would like to sort and subtotal by month. can anyone tell me how to do that?

Thank you

Create a calculation field cMonth (result is date) =

DateStamp - Day ( DateStamp ) + 1

Sort and subtotal by this field.

Note:

When you put the field on the layout, format it to display only the month and the year (in Format -> Date... ).

You'll need a separate field to hold the month number and another layout with a SubSummary part on it.

1. Calculation: MONTH_NUMBER = Month ( date_stamp_field )

2. Summary field: GENERAL_SUMMARY (Total of amount_field)

3. Layout: MUST incorporate a "Sub summary when sorted by...MONTH_NUMBER)

4. Place the GENERAL_SUMMARY in the SubSummary section

5. Place the amount_field in the BODY section (just to confirm it's all ok)

Then Find and sort your records by MONTH_NUMBER

I prefer to calculate a DATE that is common to all records of the same month, because:

a) it separates records of August 2005 from those of August 2004, etc.;

: it sorts correctly;

c) can be easily formatted to display in any way you like.

Your suggestion using Month() does (:, but not (a) and ©.

  • Author

Sorry to be so lame but I don't understand what goes into the formula... my timestamp is a field called Order date. when I create the calculation cMonth, what exactly is the calculation? Your patience is appreciated.

The formula:

Order date - Day ( Order date ) + 1

This returns the date of the first day of month of Order date (e.g. for all orders of this month, the result will be Aug 1, 2005). Make sure the result is set to Date.

I think it might be a timestamp field?

Wait - did you say timestamp?

If your Order date field is of type timestamp, you will need to extract the date first. Here's the formula:

Let (

dt = GetAsDate ( Order date )

;

dt - Day ( dt ) + 1

)

The result is Date again.

  • Author

Got it. Thanks!

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.