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

Recommended Posts

Posted

Hey,

This might be an easy one. I need a calcultaion to count items in a portal. But here is the tricky part... I do not want to count duplicates. The field I want to count is in a portal and it is a pull down menu.

Is there a easy way to count items in a field without count all the duplicates.

Example:

Company Name

ABC Plumbing

XYZ Bolts

ABC Plumbing

the count would only be 2

Thank you,

Joseph

Posted

Create a value list of the related field, starting from the parent table, and an unstored calculation of ValueCount( Get(FileName); "yourValueList" ).

Posted (edited)

I have done both of those things... is there any thing else I am not doing... all that is displayed is the number 1 even when there are more than one listing in the portal.

I used this:

PatternCount ( ValueListItems ( Get ( FileName); "Related_LE_Main" ) & "¶";"¶" )

Where Related_LE_Main is a value List custom Define from the table

Joseph

Edited by Guest
Posted

"is a value List custom Define from the table"

Custom? A Custom value list won't count your related.

"Is there anything like a relationship i should have or anything like that?"

Yes. The value list must be based upon values from field, all values and point to your other table occurrence of Related_LE_Main - the same relationship your portal is based upon. :wink2:

Posted

Did that too... But I still see a number 1? Is there anything like a relationship i should have or anything like that?

Create a sample file, zip it and post it here so someone can show you by example.

Posted

OK Guys thank you for all of the help... It works now... I had my name wrong in the value list that was in the equation... Wow that does get hard when you have so many items. Thank you again.

Joseph

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