Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6413 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

This topic is 6413 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.