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.

A running total, but not with a summary field?

Featured Replies

I'm trying to put together a calculation/graphing tool for a friend of mine, he has several fields that he needs a running total generated for.  Easy, right?  Just use a Summary field and click Running Total.  Except...  on some of those fields from which we are calculating the running total,  they have no data in them.  But the running total keeps going.  So what it looks like is something like this

image.png.d748b13e2b5d9e3fce68493ab1d5237d.png

Where the field on the left is the number, the field on the right is the running total.  What he wants is that running total (summary) field to be empty for the same records that have no data in them for the other field.  But there's additional records in his data set for his other fields.  Is there any way to do a running total calculation that is not a summary field?  Or am I going to have to break out all these different chunks of data into different tables?  I thought of that at the beginning, but it makes things infernally complicated for doing his later calculations and I haven't figured out how to get the running total to appear in  a portal properly.

Thanks for any thoughts you might have on this...

Can't you just use 'Hide' and hide the summary field when there is nothing in the other field?

  • Author

That works for the display of the columns, but not for graphing.  What he gets for the graph, because there's an entry in the field, the same number for the rest of the rows, is a "flatline" across the remainder of the graph.

Technically, you could define a calculation field along the lines of:

If ( Amount  ; sRunningTotal )

Whether this will fit your purpose is hard to say, because I don"t understand your purpose. You say;

1 hour ago, TysonB said:

 What he gets for the graph ... is a "flatline" across the remainder of the graph.

What does he want to get - and why? In my understanding, a flat line is the correct representation of a running total when there are no new amounts.

 

  • Author

What he wants, when there's no new amounts in the AC_KTR field (ie, there's no data in that field), for there to be no new amounts in the ACWP summary field (no data to be graphed).  So that the graph just stops.  What he's trying to do is graph four different running totals of four different data sets, each consisting of a monthly cost and a monthly running total.  One of them is a predicted set (what he expects to see, I didn't show that data), the second is the  predictions from his contractors,  the third is the actual set (the two columns I showed) and the fourth would be a revised prediction.  The actual amounts and running totals have the potential to end before the predicted set of records end, and the revised predictions would continue from where the actuals left off.  Here's the full sample data set he gave me (out of Excel), that I've imported into FileMaker
image.png.68b3c170151d30b4241e8881411ecd20.png
 

Would it be easier to do in Excel?  Yes....  But he has a whole raft of other analysis he wants to do that he wants to have in FileMaker, where he is currently tracking the progress of 50-some different projects (budgets, correspondence, contacts, expenses and funding, you name it, we're tracking it), so having this in there would make it pretty seamless.

6 minutes ago, TysonB said:

So that the graph just stops. 

Well, then I believe my suggestion will work (much to my surprise, I should add).

 

  • Author
52 minutes ago, comment said:

Well, then I believe my suggestion will work (much to my surprise, I should add).

 

You are correct, sir!  Thanks very much!  Simple and elegant!  I will need to remember this one  for other purposes!

 

2 minutes ago, TysonB said:

 I will need to remember this one  for other purposes!

As shall I!

Come to think of it, you don't need the calculation field.  You can perform the same calculation within the chart itself.

 

  • Author

True.  However, if I put the calculation field into his data table, then he gets a really good visual representation of when his actual data stops.  It neatens things up a treat in that list view.

That could be achieved by hiding the summary field conditionally. True, having the calculation field has the advantage of placing all the required logic in one place. But I also like to eliminate fields as much as possible.

 

Edited by comment

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.