Jump to content
Salesforce and other SMB Solutions are coming soon. ×

SubSummary Report


GordonGiroux

Recommended Posts

Hello, I am currently banging my head against the wall. I've searched and read the posts on sub summary's but no help.

 

What I am trying to do is given a number of records that each have a category designation and come up with a list of the category's with the number of records in each category.

 

For example:

Dog

Cat

Cat

Frog

Dog

Dog

 

Returns:

Cat 2

Dog 3

Frog 1

 

So that these can be used in a graph chart. I can get the sub summary to work but not in a usable format. Seems simple, probably is but it evades me.

Link to comment
Share on other sites

I can get the sub summary to work but not in a usable format. Seems simple, probably is but it evades me.

 

Hi Gordon,

 

By "get the sub summary to work but not in a usable format", I will take it to mean that you have produced the totals but the totals are not data that you can export or manipulate for use in your graph.

 

If this assumption is correct, here are some ideas.

 

First it is important to understand that summary totals and sub summary totals are data that does not really exist in your file, the *existence* of the totals is a temporary situation based on a grouping [found set] of records and a sort order. In other words, nothing is stored, so there is nothing for you to grab for your graph.

 

But there are ways to grab the totals in a more usable form.

 

Here's one:

You can export the sub summary data by sorting the set on the sort field, choosing to export the summary field(s) summarization. You can export in a variety of formats, Excel and FileMaker being good ones for use with your graph.

 

To export the summary data,

Sort the records

File menu > Export Records

 

Notice the Group By section, click the check box for the sort field.

Move the fields, including the summary field to the Field export order list. When the summary field moves over, notice there are two items, one is the field, the second will be in italics and will will list by the sortField that you choose. You can remove the standard field unless you want one record export per record in the group. Without the standard field, your export will include only as many records as you had sub totals.

 

A second method involves using the Get(Summary) function.

 

Create a calculation using this function. The first parameter is the summary field, the second will be the break field or the field you sort by.

 

The result will display on each record as long as the layout is sorted by the break field.

 

Which method you choose depends upon what you ultimately want to do with the summary data once captured.

 

HTH,

 

Michele

Link to comment
Share on other sites

Greetings Gordon,

 

If the chart is internally generated (like from a plugin or webviewer object), you'll probably need the data in a single text string.

 

For this, you can have a script traverse the sorted records and assemble the string. An algorithm for this is described in detail here:

 

http://www.filemakertoday.com/com/showpost.php?p=42530&postcount=6

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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



×
×
  • Create New...

Important Information

Terms of Use