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.

Getting multivariable sums

Featured Replies

I recently upgraded my FileMaker from 8.5 to 11, and am hoping that I can simplify a few of the kludgier solutions I have. Considering that FMP is so powerful, it is strange that I can’t find a way to do what I need to be able to do more directly. More than likely, I can’t do it because I’m overlooking something obvious.

Let me outline the situation.

I am selling things. The core issue is that a single sales record contains the following data:

Order No.

A single item No.

Quantity sold

Type of sale (cash, credit, giveaway, for example)

Date of sale

etc.

A CustomerOrder contains various information, displaying ItemNo and Qty from the SalesRecord. When a CustomerOrder is created, it writes OrderNo, SaleType, SaleDate etc into the SalesRecord. Individual SalesRecords are displayed as line items in a portal in the CustomerOrder.

All that is fairly straightforward, and no particular need to change anything (but it can be changed if it helps resolve the following problem).

Using the SalesRecord database, I want to be able to see various statistics on sales. I would like to see a sheet listing ItemNo and sales for each month of the year, for example. I need quantities broken down by ItemNo, SaleDate and SaleType.

At present I am getting all these statistics through hardcoding, which means I have to hardcode a new set of calculation and display pages for every new item.

So, is there a programmatic way to handle this?

I want to be able to see a page showing ItemNo down the left side, and sale quantities for each month of the year in columns across the page. When I create a new ItemNo, FMP automatically takes care of calculating and displaying the statistics.

I think that’s enough information, but if I’ve forgotten something let me know and I’ll try to explain it in simplified form. The complete FMP system is obviously enormously more complicated, but I think this is all the pertinent parts.

Thank you for your time.

SubSummary reports is what comes to mind.. Or reporting in general . THe only issue is all tables must be related properly.

"I want to be able to see a page showing ItemNo down the left side, and sale quantities for each month of the year in columns across the page."

That is a cross-tab report, and is doable, but is an advanced technique in FM.

FM thinks vertically. As imoree suggests, you should be able to create a sub-summary report that'll give you your stats.

Sub summary:

http://help.filemaker.com/app/answers/detail/a_id/6198/~/simple-example-of-a-subsummary-report

Cross-tab:

http://edoshin.typepad.com/bits_and_pieces/2006/12/crosstab_report-1.html

http://ist.mit.edu/sites/default/files/migration/usergroups/filemaker/fmug/pres/crosstab.pdf

I'd also suggest:

http://fmforums.com/forum/topic/71836-getting-more-out-of-filtered-portals-in-version-11/

  • 1 month later...

i have something similar...

product (id and name)

sold (product id, year, amount in currency, quantity)

my "crosstab" doesn't work. any hint why?

Produkte Statistik v 0.91.fp7.zip

See:

http://fmforums.com/forum/topic/60368-fm-bug-with-valuelistitems-function/page__view__findpost__p__285448

thank you. that was something i corrected.

but still: it doesn't work as it should...

probably a tiny thing, but which ?

Produkte Statistik 0.92.zip

that was something i corrected.

I don't see that you did. Remove the period from the file's name, then look at the Produkt layout (I haven't examined the other layouts).

sorry about this - to use it i crop the name and remove the version number...

i clean up everything once more and report with a "clean" version. only trouble now (but i can - and will - live with that) is that there is no year stated if there was no sale of the first product that year.

great thanx to comment for helping me (us ?) on this issue

Produkte Statistik.zip

Edited by Ralph Schwegler

only trouble now (but i can - and will - live with that) is that there is no year stated if there was no sale of the first product that year.

This could be solved by using another method to display the labels, for example a repeating calculation field =

GetValue ( ValueListItems ( ... ) ; Get ( CalculationRepetitionNumber ) )

  • 2 weeks later...

This could be solved by using another method to display the labels, for example a repeating calculation field =

GetValue ( ValueListItems ( ... ) ; Get ( CalculationRepetitionNumber ) )

i'm sorry, i cannot understand how to make that. could you give me some more help on this please?

Like this?

well... did you forget something or did i miss it?

Neither - the forum became unresponsive just as I posted, and the attachment (which was there) wasn't showing until I edited the message

great, i fetched it and will analyse that l8ter.

thank you very much

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.