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.

Featured Replies

I'm running into a problem reporting sales by month and counting the months with sales. The report has a sub-summary part that totals invoice detail rows using a month(invoice_date) break field. The 'body' is the invoice details, which we actually hide on the report. Some customers purchase only a few times each year and the challenge is to count the number of months (we want to use that count in various calculations, like avg-sales-per-month for that customer). The 'count' function only counts the records in the body (the invoice detail rows). So how the heck do I count the resulting months?

The report breaks each month, then breaks again for a new customer.

Customer A

Jan 200 units

Apr 100 units

Jun 300 units

==============

avg sales = 200 units /month

Customer B

Feb 100 units

May 200 units

==============

avg sales = 150 units /month

etc.

I've seen this discussed on this forum before but I can't find the topic. Any help would be greatly appreciated.

See here, for example:

http://fmforums.com/forum/showtopic.php?tid/196703/post/297056/#297056

  • Author

Thanks! That was the post I was trying to find. Much appreciated.

I seem to have been beaten to reply to this while making this sample file - but I will include it anyway in case it's of some help ...

subsummary.zip

  • Author

efen,

i appreciate the sample file, but your example doesn't work. it counts the number of detail records which only results in the correct count *if* there is only one detail per month.

i'm trying to count the number of months w/ data, not the number of records. if there are sales on jan 1, jan 2, jan 3, jan 4 and no others, i want to see "1" month, not "4".

I'm running into a problem reporting sales by month and counting the months with sales. ... Some customers purchase only a few times each year and the challenge is to count the number of months ...

.

That is how I read your problem

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.