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

Recommended Posts

Posted

Hi there,

I have been trying different methods to achieve the following - and none are correct as far as FMP 11 goes. Perhaps someone can help me ?

I need to be able to tell which values in a relationship have the highest count.

Parent record = Owner

Child record = Shop

Child record = Category

Child record = Items

If in the related items the carrots have sold the most, I need the Parent Owner to know this.

Example data:

Apples

Apples

Carrots

Carrots

Carrots

Carrots

Carrots

Carrots

Dried Fruit

Dried Fruit

The value I want to see is Carrots. The parent record has to be able to know this.

The ER is as given above - i.e. there are 2 join tables between Owner and Items

Any help greatly appreciated.

Many thanks in advance

Glorifindal

Posted

Sorry -

The items table is a great great grandchild of the Owner table - not just a child

Owner - shop - category - Item

Two other tables between Owner and Item

Hope that is clearer

Posted

Are you really still stuck in FileMaker 8 or are you using something more recent?

Posted

I'd probably do this with a custom function, but here's another way using the so-called Ugo method. I've only done grandchildren, but it's the same thing for any generation.

Of course, this won't work if a store clerk misspells "Carrots"; that's something that doesn't seem right with the system you describe.

MostFrequentGrandchildU.zip

Posted (edited)

Hi guys,

sorry, I fell asleep (up in Scotland)

@BruceR - actually, FMP 11 - need to update - sorry

@Comment - nice one - I'll have a look and get back.

Many thanks

Glorifindal

Edited by Guest
Posted

FMP 11 - need to update - sorry

Please take care of this right away.

Go to the Menu above, Click on "MY PROFILE" >> "Control Panel" >> "FileMaker Questions"

TIA

Lee

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