Glorifindal Posted August 25, 2010 Posted August 25, 2010 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
comment Posted August 25, 2010 Posted August 25, 2010 This part is not clear: The ER is as given above - i.e. there are 2 join tables between Owner and Items
Glorifindal Posted August 25, 2010 Author Posted August 25, 2010 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
comment Posted August 25, 2010 Posted August 25, 2010 Maybe... Is there a table of item types - where Apples, Carrots and Dried Fruit would be unique records?
Glorifindal Posted August 25, 2010 Author Posted August 25, 2010 Actually no - item is part of the line item table
bruceR Posted August 25, 2010 Posted August 25, 2010 Are you really still stuck in FileMaker 8 or are you using something more recent?
comment Posted August 26, 2010 Posted August 26, 2010 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
Glorifindal Posted August 26, 2010 Author Posted August 26, 2010 (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 August 26, 2010 by Guest
Lee Smith Posted August 26, 2010 Posted August 26, 2010 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
Glorifindal Posted August 26, 2010 Author Posted August 26, 2010 Thank you very much - works fine I would also prefer a custom function - but this will do for the moment kindest Regards Glorifindal
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now