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 4603 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi there Forum

I have set up a database to administer our product sales commission programme. Staff at clinics across the country sell items to clients and complete a line by line record of each individual sale they make which accumulates them 10% commission of the individual product wholesale price.

I am using the 2 databases below to enable a field to have a running balance of the commission earned in Programme Lines as below:

Clinic Personnel (containing <PERSONNEL ID> and <COMMISSION BALANCE>

Programme Lines (containing <COMMISSION> and <PERSONNEL ID>

The calculation I have used for the field displaying the total sum of commission is:

If ( Clinic Personnel::ID = Programme Lines::Personnel ID ; Sum ( Programme Lines::Commission ) )

This is not returning a value of anything - can anybody see where I am going wrong?

Many thanks in advance for any assistance you can provide.

Best regards

Tim

Posted

If the Programme Lines table is related to Clinic Personnel by Personnel ID (on both sides) then there is no need for the If() conditional, just use the Sum() to total up the related commissions through the relationship.

The relationship is doing all the work of working out which commissions to include.

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