Jump to content
The site is updated on a beta version. Maintenance tasks are running so search and index may not function at this time. ×

Recommended Posts

Hi Guys, 

I have two tables: 

- Companies (with Company Data)

- Transactions (with Transaction Data)

The Company ID (serial number) is liked to Transaction via a Foreign Key. So all good. 

I have a layout on the Companies Table, where I then have a Portal that lists transactions relating to that company only. Again, so far so good. 

Now, in the Transactions Table there is a number calculation/number, the Field is called Percentage Increase. 

What I want to do is in the Company Layout view have a field which is a Summary of the Percentage Increases. So if there are 5 records, the average would be over 5. 

In the Transactions Table I have made a Summary 'average of' this field. 

What I hoped would happen is by adding this field, it would give me my average in the Company Layout. 

Suffice to say it hasn't!

I guess I've done something wrong, or maybe even put the calculation in the wrong Table? 

Can anyone help :)

Thanks!

Neil 

  

 

 

Link to post
Share on other sites
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

2 hours ago, Neil Scrivener said:

in the Transactions Table there is a number calculation/number, the Field is called Percentage Increase. 

How exactly is this Percentage Increase field defined?

 

2 hours ago, Neil Scrivener said:

What I hoped would happen is by adding this field, it would give me my average in the Company Layout. 

Could we have a worked out example? For example, transaction records (of the same parent):

Value Change
100  
105 5.0%
115.5 10%

Average change: 7.5%

Is that what you would expect?

 

2 hours ago, Neil Scrivener said:

Suffice to say it hasn't!

No, it does not suffice. It would be much more helpful to know exactly how it failed - e.g. the result was wrong, there was no result, there was an error, or ... ?

 

Link to post
Share on other sites

Hi, 

The Percentage Increase Field is a Calculation Field. The Calculation is NumberCurrent/NumberPrevious -1. 

The field is operating fine.  

Correct on your table above, this is the answer it should give. 

When inserting the Field into my Company Layout view, it shows nothing. No figure, absolutely nothing. 

Does that help at all?  

Link to post
Share on other sites

Haha, the wonders of the internet. 

I've knocked up the attached Demo File. 

In my actual DB, the Portal in Companies lists the transactions - not sure why it's not working in this? 

But you can see in the Companies Layout (hopefully) what I'm trying to get, in the Average Increase/Decrease Field? 

Thanks!

N

Demo File.fmp12

Link to post
Share on other sites
13 minutes ago, Neil Scrivener said:

In my actual DB, the Portal in Companies lists the transactions - not sure why it's not working in this? 

Because you are populating the CompanyIDFK field with the company's name, instead of the company's ID. Thus none of the transactions are related to any company. Once you fix that, the records become related, the portal shows them and the summary field displays the correct value.

 

Demo File+.fmp12

Link to post
Share on other sites
Posted (edited)

Thank you for this, adjusted in my Demo Database and all working good. 

So, having performed the equivalent calculation in my actual database, I am getting the following information: 

Company A

Percentage Difference - Year 1 25.81%
Percentage Difference - Year 1 21.37%
Percentage Difference - Year 1 17.45%
Percentage Difference - Year 1 4.49%

Average Difference: 2,616,075.00%

So this seems to be taking an average of the entire table of data, and not 'filtering' it by the Company record that I'm in. 

Any views what could be wrong? 

Thanks!

UPDATE I've added the field to Transaction Data layout and getting a figure of 23,215,055.28%!

Now I'm really puzzled?!

UPDATE to the UPDATE, Ive changed the calculation to a "Total Of" instead of Average of, and it's giving me 69.11% - which is the above percentages added......so something is working!

Update to the update to the update: have now switched it back to Average Of, and by some magic it's working. Possibly I bug, not sure?!

Edited by Neil Scrivener
Link to post
Share on other sites

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.

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.

  • Similar Content

    • By GAltanis
      Dear users,
      I have three tables for three relevant layouts. Each one has separate table and tables are related with only one field.
      The scope is to show on the 2nd and 3rd layout the records that related with the 1st one. Here are some screen shots with what I need to do. Actually, I need to have on the seconf layout ("Orders from suppliers") the related records from the first one ("Suppliers list")
      Thank you thank you
      Giorgos

       

    • By epatrick
      I find it odd that FileMaker is so intuitive yet hides access to the file name of the data source during importing. It looks like the only way I have found based on posts on the forum is to import the Data Source file as a reference into a container field. That is an extra step that shouldn't have to be done since FileMaker sees the Source file name during multiple points in the import process. Here are three dialogs where it's seen during import. There has to be a way to use the input file name with some kind of Get Function.  Please help!

    • By 34South
      I previously used ODBC Manager (32 bit)  to great success importing data directly from Filemaker Server to JMP. I recently upgraded to Catalina (MacOS 10.15.5) and knew that one of the casualties would be this ODBC utility. I downloaded the 64 bit ODBC manager from Actual Technologies and successfully installed it but get the following message when trying to open an FM database from within the ODBC interface in JMP:
      dlopen(/Library/ODBC/FileMaker ODBC.bundle/Contents/MacOS/fmodbc.so, 6): image not found
      I have navigated to Actual Technologies' web site believing I should download an ODBC driver but this comes at a hefty price tag, especially when converted to my local currency. Given the increasing costs of maintenance contracts and SSL certificates I had hoped to avoid further expenditure. Do I really need this and is there an alternative?
    • By droid
      I've been saving various files - mostly pdfs - in FM container fields, for years. A script triggered by clicking in the field allowed the field to be exported for viewing.
      Recently I upgraded to FM18, and now when I click in the field, I'm told "container fields cannot be exported"!
      Is there a new way that I should be doing this? Thanks.
    • By ggt667
      I can ping my PDF document server from Terminal, I can connect to the PDF document server from all browsers apart from Safari, my default web browser is FireFox, I also tried to change to Chromium and Opera as the default web browser. WebViewer has the same symptoms as Safari, server not found.
      $ ping -nc 1 document PING document (10.0.0.7): 56 data bytes 64 bytes from 10.0.0.7: icmp_seq=0 ttl=64 time=0.002 ms --- document ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.002/0.002/0.002/0.000 ms FileMaker says ’Couldnot connect to the server.’
       
      The issues is easily solved by creating a new MacOS X user, and log in to that user, however I would rather like to fix the current user not having to migrate all other application settings. Is there some dns cache specific to Web Viewer and Safari?
  • Who Viewed the Topic


×
×
  • Create New...

Important Information

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