# Grand summary question

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

## Recommended Posts

Hi all,

I'm summarizing line items of sales records. Items are charged in more than one currency, so I'm sorting/breaking the report by currency. I don't use a body part, only summaries, so that, for example, 85 sales of product xyz are shown on a single line per currency. The next line might show 34 sales of the same item in another currency. This works fine so far.

In the trailing grand summary, I'd like to show the total like so:

Total sales, US\$: 2346.50

Total sales, EUR: 3562.52

This doesn't work the way my parts are set up, since I can only have the number field calculated once and FM just adds up all the numbers regardless of the currency. Can this still be done somehow?

Stefan

##### Share on other sites

I don't understand your question. What do the totals represent?

If I am guessing (!) correctly, your report is broken first by product, then by currency? If so, I would suggest you produce the grand totals as text in a global field, using the FastSummaries method.

Alternatively, if you have a fixed list of currencies, you could use a repeating calculation field to split the amounts by currency, and a summary field to total the repetitions individually.

Edited by comment

##### Share on other sites

The totals should represent the total sales, but broken down by currency. This is what I had envisioned in the report:

[Summary (by currency and product)]

product    qty    currency   price     total

ABC        3        USD         5            15 <- these are already summarized by product ID from several line items

YDH       1       USD          10           10

ABC       2        EUR          8            16

[Trailing grand summary]

Total USD: 25

Total EUR: 16

Instead, the trailing grand summary currently shows:

Total: 41

I will find out about FastSummaries, don't know what that is. The calculation field method would probably work, too. How about a calculation field that would summarize all line items with the same currency based on a relationship. I think that would require one field per currency. Not as straight forward as a summary field. I don't expect more than 3 currencies.

Thanks,

Stefan

Edited by stefangs

##### Share on other sites
2 hours ago, stefangs said:

How about a calculation field that would summarize all line items with the same currency based on a relationship.

I don't think that's a good idea. Your report should work with whatever happens to be the found set. Relationships ignore found sets. If you wanted to omit certain products from your report, the totals fetched via a relationship would be incorrect.

Here's a demo showing the repeating calculation field method. Note that this will always show the totals for all currencies in the value list.

Edited by comment

##### Share on other sites

Thanks so much for the template you sent me. It will take me a bit to absorb it, but I'm sure it will do. My idea above didn't sound that appealing to me, either!

Stefan

##### Share on other sites

Comment, your template works perfectly. I must admit, however, that I just sort of copied the code. Can you tell me why you are referencing the file name in the cLabelsR field? It looks like the purpose of this field is to figure out how many currencies are used.

Thanks much,

Stefan

##### Share on other sites
2 hours ago, stefangs said:

It looks like the purpose of this field is to figure out how many currencies are used.

The purpose of the field is to take the "Currencies" value list and put each value into its own repetition.

2 hours ago, stefangs said:

Can you tell me why you are referencing the file name

Because that's one of the parameters of the ValueListItems() function.

##### Share on other sites

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

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×

• ### Similar Content

• By ericire
I have a calculated multivalued that displays linked images.
I checked "keep the proportions" and reduce the image.
On screen in preview mode everything is ok ...
... but in print the picture is cropped
what can I do?
• By stefangs
Hi all,
I've recently added FM10 to my MacBook Pro that runs on Mavericks. When trying to format a date field, I get the box in the attached screen shot. The date field on the layout looks accordingly, so it's not just a dialog box display problem. Any idea what's going on here?
Thanks,
Stefan

• By Tumma K
Hello, All!

I am an aspiring developer for Filemaker. The company I work with is stuck in the past working off of Filemaker Pro 4.1

I was given the task of bringing us up to Filemaker Pro/Server 13. So far my conversion prototypes are successful but we recently had a layout issue that can only be fixed in versions 3-6 (as the file is an .fp3) I work off of a macbook while our network is all Windows 7. In order for me to repair the layouts without tampering our active database, I decided the best option is to repair a copy of our solutions off the network. Unfortunately, when I go to download the trial version of Filemaker Pro 6 off of the respected website, the file is corrupt! I've tried multiple times, with different extraction apps and in different directories.

My question is;

Does anyone know a place where I could obtain version 6 (or better yet, 4.0) for an OSX computer? I've looked everywhere!

Tumma K.

• I'm hoping my question can have a happy ending. In the mid-90's, I purchased Filemaker 3. When Filemaker 5.5 Pro was released, I bought the update CD, which requires the user to either have FM 3 installed or to have the installation CD for FM 3. I've used it all these years, most recently with Windows XP Pro, and it has worked just fine. The databases I began with were long ago converted to FM Pro 5.5 databases.

I'm still using FM Pro 5.5 on a laptop with WinXP Pro, but in 2013, I purchased a PC with Windows 8. I haven't been able to install FM 3 on it, therefore can't install FM Pro 5.5. I am retired and rarely use Filemaker, but I have a few Filemaker databases I'd like to add to my Win 8 machine. I don't feel it's worth upgrading FM for the sake of using a couple of databases.

Has anyone else run into this situation and/or have a (possible) solution? Is there perhaps any other software that can read FM 5.5 databases? Thanks in advance for your help.

• By bmill
I am using a custom filemaker solution for medical office billing written with fp5 running on a mac with snow leopard. In addition, I have a patient management db (which I wrote) that is linked through pt. ID number to the billing program allowing transfer of some demographic information (name, DOB, etc).

Other than being limited by hardware restrictions, the billing program serves our needs for now and upgrading to fp12 will take some time (and money).  In the meantime, I am upgrading my pt. management program to fp13 and would like to move new patient demographic information from the billing program ( fp5 running on snow leopard through Parallels) and the new pt management program ( fp13 running on OS X 10.9) on the same mac.

Ideally, demographic information would be entered once into fp5 and then a scipt would make the data available for fp13.

Any ideas on how to make this work?
• ### Who Viewed the Topic

3 members have viewed this topic:
melmitts707  kurucay2000  Richard Carlton
×
×
• Create New...