Jump to content

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

Recommended Posts

Posted

Could anybody help?

I'm looking to chart the total sales of my business month by month, I have a subsummary report that shows 12 monthly totals, but when I use GetSummary on the sum field (to paste to the chart) it only gets the first months total, how do you get Filemaker to read the next Subsummary part?

Posted

Thanks for that.

The reporting side of things is covered, it's taking the sub-summary totals from the report and putting then in a chart which is the problem.

I am using GetSummary but this only takes the first subSummary value, I was looking for a method to 'grab' subsequent sub-totals.

Posted

Are you trying to do this with CDML?

If so, you would need to use Javascript. Some examples for summaries exist on this forum. If you can't find them, I can have a look through some of my old CDML files.

All the best.

Garry

Posted (edited)

SubSummary works normaly. Look attachment. Can you describe how you get values from table for chart? May be here is problem? I did charts for years and month on FM and it worked normaly.

SubSummary.zip

Edited by Guest
Posted

The only way I've found to do this is with Javascript. Here is an example:

Location | Total

[FMP-Record]

if (curr_loc == "[FMP-Field:locations::location_name]")

{

loc_total += [FMP-Field:qty];

tot_qty += [FMP-Field:qty]; }

else

{

if (curr_loc != "") { document.write(curr_loc + " | " + loc_total + "

"); };

curr_loc = "[FMP-Field:locations::location_name]";

loc_total = [FMP-Field:qty];

tot_qty += [FMP-Field:qty];

} ;

[/FMP-Record]

document.write(curr_loc + " | " + loc_total + "

");

document.write("Total Quantity: " + tot_qty);

This script summarizes quanities sold for each city.

Good Luck.

Garry

This topic is 7077 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.