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.

Total for a certain date range

Featured Replies

Hi I have a layout for my Invoices and I wish to create a box which provides a total for 1 month or that current year, it would be great if that was easily modifiable with a user entered date. I suppose the natural progression to this is a chart of the totals - as there are different sets of Invoices to total.

Anyone any ideas if this is possible ?

Hope so

Hi,

What you have in mind can be done fairly simply by first creating a calculated flag field which captures the total if the date falls within the same month or year as your specified date (eg a date you have placed in a global field).

Then if you add a summary field which is defined to return the total of the calc field, it will return the month or year total for you dynamically.

An example of such a calc would be:

Case(

gSummaryScope = "Month" and Date(Month(InvoiceDate); 1; Year(InvoiceDate)) = Date(Month(gSummaryReferenceDate); 1; Year(gSummaryReferenceDate)); Total;

gSummaryScope = "Year" and Year(InvoiceDate) = Year(gSummaryReferenceDate); Total)

Where the gSummaryReferenceDate is a global date field into which you enter a reference date for the report and the gSummaryScope field is a global text field with a value list from which to select 'Year' or 'Month'. The result of the summary could then be presented graphically (eg using a calculated bar-graph technique) if desired.

However if you want to produce a report that summarises months or years in a graph format, a straightforward summary field (no intermediate calc), a bar calc and a sub-summary report layout might be a better solution. wink.gif

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.