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.

Create a report which shows data from multiple date ranges

Featured Replies

Greetings

I am working on a Debtors report. I need to create a report which finds all invoices which are 30-, 60-, 90- and 120 plus days old and show these in a final report.

I am able to work out the date function (i.e. 30/60/90 etc) but how do I go about getting the data?

Would I write a script which performs multiple finds and posts the data into a layout after each find based on the number of days past?

Would I use a sub-summary report and if so, how would one summarise on different supposed date ranges?

I guess I just need assistance in the thought process and the design of this script.

Any help will be greatly appreciated!

Mucho gracias!

You basically need to find all invoices that are at least 30 days late and then sort them into groups by how late they are. Sorting is simple and then you need a field in “Invoice”, say, “How late”, with a formula like:

Let( days late = Get( Current Date ) - Due On;

  Case( 

    days late ≥ 120,

      "120 days or more";

    days late ≥ 90,

      "90 days";

    days late ≥ 60,

      "60 days";

    days late ≥ 30,

      "30 days" ) )

Make sure this field is unstored so it will recalculate for every report. Sort by this field using a custom value list to ensure correct sort order, make a report with “Subsummary when sorted by How Late” part, place the “How Late” field there, place invoice fields in the body part and you're done.

Edited by Guest
Used better field names.

  • Author

Just popped in to see if I had a reply to my post! On my way to gym... tis 6am here in Jo'burg, South Africa!

Thank you for the response. Will look at it in more detail upon my return!

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.