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.

Repeating calc to sum categories

Featured Replies

Here is the general situation.

There are two tables Project and Charges. Each cost is associated to a project by ProjectID. Each charge also has a account code ( range is from 000, 100, ... 900).

Now I have to sum up by each code for each project. IOW, I need to know the total charge amounts for each one.

The easy way of doing this would be to create a global calc for each account code and then I can get a sum for each one or I can create an intemediary table with 10 records; one for each code, set a global field with the ProjectID and sum it up that way.

All that being said, I wanted to make my life difficult and thought that perhaps this can be done with a repeating calc. I can create a calc that gives me the account codes easily enough:

Right ( Get ( CalculationRepetitionNumber ) * 100; 3 )

But perhaps there is a way to individually sum up the charges for the project by each account code as well.

At this point, my mind is elsewhere and I need a second opinion to see if I am just chasing my tail.

Hi John,

these two examples are very close to what you describe:

http://fmforums.com/forum/showpost.php?post/165564/

http://www.fmforums.com/forum/showpost.php?post/182999/

There's also a detailed tutorial on Mikhail Edoshin's blog:

http://edoshin.skeletonkey.com/2006/12/crosstab_report.html#more

  • Author

Thank you Michael. I will look into these and see what I can extract. Although I have read Mikhail's Cross tab report previously, somehow I wasnt thinking about it. :o

  • Author

I looked at Mikhail's blog again and it did not help as much as much as your "Counting Sheep" example. :o

http://fmforums.com/forum/showpost.php?post/165564/

Here is a modified version of your file with my changes.

sumByCategory_Modified.zip

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.