Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi,

I'm having a problem trying to create calculated field.

I want to do a sum and average of the salaries, but all I get are empty fields.

Here is a simple database definition.

Table: Employees

Fields: pkEmployeeID, WageHour

Table: Weeks

Fields: pkWeekID, NumberOfHours, fkEmployeeID

Relation: pkEmployeeID - fkEmployeeID

How do I sum the total number of hours in a calculated field in the table employees?

I tried Sum(Weeks::NumberOfHours), but all I get is an empty field.

Any help would be great.

Thanx

Posted

Must be an indexing problem with your foreignkey, otherwise should if be working, an alternative approach is to make Summary fields in the related, and pull them into the main tables layout. But if indexing or linking issues continues to exists are both techniques worthless.

Sometimes are type mismatch with the keyfields getting apparent jiffy-logical results, until you think further of the typecast taking place.

--sd

Posted

I can't see any problem with your current logic, it should work fine?

It's not something daft like the field width on the layout is not wide enough to display the result?

Posted

Could it be that the values need to be refreshed like calculated field?

Another problem in the same order, why there are some fields that cannot be choose when I want to create a summary field? I have a billTotal field and I want to create a summary field, but I can't select it...

Thanx

Posted

I admit I'm struggling with this one...

There are limited things I can think of:

1 You are trying to (Sum) a text field

2 You are trying to (Summary) fields that are not native to the current table.

3 You are trying to sum records that the relationship contradicts.. although appears not

Make absolutely sure that the opportunities for errors, that Soren explains [above], are not your reality?!

Posted

Perhaps you should tell us what type WageHour and NumberOfHour is, we more or less assumed that WageHour was the name of the summing field?

This is how I would do... more or less:

--sd

BZhummingbee.zip

Posted (edited)

All the fields are number types. I just found that there is a summary type field, can it help?

In the file you gave you use calculation, should I use this type?

Edited by Guest
Posted

Yes I mentioned it in my first post, however exists some artifacts ... the field is now reluctant to freshen. But I have made the alterations to to the tables, so you can see for your self. Note that the field freshens if you place the cursor in it.

Measures exists to remedy this, but at what cost, when Sum( is handy??

--sd

BZColibree.zip

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