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 & Summarise based on Month Year

Featured Replies

I'm modifying an Expenses DB template that came with my FM12 app (the only app I have) and it does a monthly summary based on Year ( Due Date ) & " " & Month ( Due Date ) The output is Text - which is sorted in the Sub Summary field.

The summary view based on sub-summary sort works for 80% of the year but for some reason it goes Jan - Oct - Nov - Dec - Feb then the rest is correct month order. I'm not sure what the glitch is. Is there a better workaround that sorts by date and year, so all of 2016 in correct month order then all of 2017 in correct month order etc?

The glitch is that it is sorting as text.   

01, 10, 11, 12, 02 is how it would sort as text.  You need it to sort by date.

i would change the sub summary report to sort by date.  You don't have to show the date in the sub-summary part

 

  • Author

Understand, what’s the best way to sort by month year (summarised by month) for the sub-summary to sort and display correctly. I often get muddled with this. 

1.  Create a  date field, auto-enter calc (uncheck "Do not replace..."), using your field names, call it zzDateMonthYear:

Due Date - Day (Due Date ) + 1  //Make sure it's a date field.

2.  Make this your field (zzDateMonthYear) for the sub-summary report  (Sub-summary when sorted by), and just put your Year ( Due Date ) & " " & Month ( Due Date ) calculation field in that section.  Make sure your calculation is of type 'Number'.

3.  Sort by the zzDateMonthYear month field.

On 11/28/2017 at 7:11 AM, Steve Martino said:

1.  Create a  date field, auto-enter calc (uncheck "Do not replace..."), using your field names, call it zzDateMonthYear:

 

Hi Steve,

There would be no reason to make this stored data unless the User needs the ability to change that date.  Making it a stored calculation is better option. :-)

Edited by LaRetta

  • Author

Thanks for the solution. It worked once I spent an hour working out what it did and that I needed to refresh the existing entries Due Date field! I don't use FMP often enough it seems.

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.