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 by current year vs all others

Featured Replies

I have a date field and I'm currently sorting all of my records by year is 2016 then 2015 then 2014 then etc etc.

I would like to sort this by current year i.e. 2016) then all other records 2015, 2014, 2013 together.

What is the best way to accomplish this?

 

Thanks

 

Your question is not clear. What exactly does "together" mean in the context of sorting? Why would sorting by date, descending, not accomplish the task?

  • Author

my table is currently sorted with: year (get(currentdate)) so every section breaks down my accounts by year (2016, then 2015 then 2014) So I'm trying to have 2 sections in my table, the top section is all current year accounts, the next section is all other accounts 2015-2000 all lumped together (not in sections)

15 minutes ago, wattmhite said:

I'm trying to have 2 sections in my table, the top section is all current year accounts, the next section is all other accounts

If you're talking about sections, then you're talking about more than just sorting. To enable such grouping, define an unstored calculation field (result is Number) =

Year ( YourDateField ) = Year ( Get ( CurrentDate ) ) 

then sort and group by this field.

 

14 minutes ago, wattmhite said:

my table is currently sorted with: year (get(currentdate)) so every section breaks down my accounts by year (2016, then 2015 then 2014)

No, that's not possible: Year ( Get ( CurrentDate ) ) returns the same value for every record, so sorting by it is meaningless.

 

 

You could view your records through a portal that you filter.

You could have a popup menu (chooser) that you set for current year/all previous years. Then on the portal you can filter based on your choice, and show either where:

Year ( YourDateField ) = Year ( Get ( CurrentDate ) ) 

or

Year ( YourDateField ) > Year ( Get ( CurrentDate ) ) 

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.