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 looking to see if there's a better way to do what I'm currently doing, which is effectively making cross tab tables from a single column of data.  My main data table columns are (in a very simplistic format for digestion here):

Date     Amount     TrueFalse1     TrueFalse2     TrueFalse3

 

There are around 70,000 records, each with entries in every field above.  Records tend to be grouped into months and I need to get columns per month on a report. 

To do this, I use CASE statements initially and then summarise the results:

  • JanTotal::Case ( TrueFalse1 = "True" and TrueFalse2 = "False" and Date = "Jan" ; Amount)
  • FebTotal::Case ( TrueFalse1 = "True" and TrueFalse2 = "False" and Date = "Feb" ; Amount)
  • MarTotal::Case ( TrueFalse1 = "True" and TrueFalse2 = "False" and Date = "Mar" ; Amount)
  • sJanTotal
  • sFebTotal
  • sMarTotal

I now have 6 fields just for three months with this logic testing.  I also need to have other variations on TrueFalse1/2/3 per month as well, so the numbers of fields can easily bloat.

In the humble opinion of those with more FM knowledge and experience of me, is this an efficient way to do things?  Is it more efficient to use a 'temp' table and have this reload data each time I need it to?

Any input appreciated, thanks in advance

Filemaker can't easily do a column based summary. It can do a row based summary though.

For that, you need to create a month field calc that calculates the month from the date (ie month ( Date). Then create a summary field total that totals Amount.

Next create a list layout with a subsummary part (sort it by month), that holds the month and the total. Now sort by month.

You can forgo the case statements.

Edited by OlgerDiekstra
add detail

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.