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.

Sort based on month then separated by year

Featured Replies

I have a table that first sorts all records by month, Jan, Feb, Mar etc.

Within those months i have multiple records of different years, mainly 2014 and 2013.

I'd like to separate the years within the month so for example

 

January

2014 - Year Separator

1/5/2014

1/10/2014

1/15/2014

2013 - Year Separator 

1/5/2013

1/10/2013

1/15/2013.

 

February

 

etc etc

 

Any advice?

Do you already have fields for month and for year?

  • Author

Everything currently revolves around my field (effective date)

Well, first you'll need the two fields to sort by, so define:

 

 

cYear (result is Number) =

Year ( effective date )

cMonth (result is Number) =

Month ( effective date )

Sort your records by cMonth and by cYear. Use a layout with two leading sub-summary parts, one for each of the two calculation fields.

 

 

---

 

A variation in case you want to show labels with month names: make cMonth =

MonthName ( effective date )

(result needs to be Text). Define a custom value list listing the 12 month names, and use it when sorting by cMonth.

 

Sort your records by cMonth and by cYear. Use a layout with two leading sub-summary parts, one for each of the two calculation fields.

 

 

I believe to get the results above in post #1, the order might be important to mention.  The first leading part would be cYear and seconding leading part would be cMonth.  Then be sure to sort descending on cYear, ascending on cMonth and ascending on EffectiveDate.

I believe to get the results above in post #1, the order might be important to mention.  The first leading part would be cYear and seconding leading part would be cMonth.  Then be sure to sort descending on cYear, ascending on cMonth and ascending on EffectiveDate.

 

It seems to me that the results in post #1 are sorted (and grouped) by month first, then by year. It looks like they want to compare  monthly figures between the years.

Oh yes, I misinterpreted.  :-)

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.