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

Recommended Posts

Posted

Hey Guys,

once again i enlist your help...

I have a field that is exactly the same on 3 records.I have another field on those records that say if the individual record is "opened" or "closed".

How can i set up a calculation so that it will first count how many of that first particular field are the same.... then add a number when all of them are "closed"...

any ideas?

Posted (edited)

A note to all beginners--please use your actual field names, tables and purpose. It's very hard to offer advice when you abstract out what you're trying to do.

In this post, "a field that is exactly the same on 3 records" means nothing. All fields are exactly the same on all records in the same table--it's the contents of the field that change. What does the OP mean? Who knows?

"To set up a calc so that it will first count how many of that first particular field are the same". First count, then what? I assume you mean content is the same. What content? A text value? A calc result? A type ID (one can hope)?

More specifics please.

NOTE: Repeating fields are a specific attribute of a field, in that the field is set to store multiple values in the same record. I believe the OP is misusing the term.

Edited by Guest
Repeating Fields Note
Posted (edited)

:iagree:

I would only add that; if it isn't easy to explain, then attach a copy of your file, or a mockup of it.

Lee

Edited by Guest
Posted

Sorry guys I'm a complete noob!!!

Thanks for replying here is the requested info~

ok...

I have three records

i have a drop-down menu in a layout stating if the record is opened or closed

i have a textbox called "PGNUMBER" otherwise known as Paragraph Number on Table "Page View"

here are some pictures...

each record is separate...

This picture shows you where everything is...

Picture 1

This picture shows you that nothing happens is one of the records "closed status" is changed

Picture 2

This Picture shows that the 2nd does the same

Picture 3

this shows that if all three are closed then 1 is added to the Closed requirement field which is a calculation

Picture 4

Posted

Which is the calculation of: "Closed requirement" ?

Isn't it a summary field: total of something ?

where something is a calc field:

Case( Closure Status = "Closed"; 1 )

Posted

Isn't this exactly like you said above ?

... or do you want that the field "Closed requirements" contains 1 ONLY if all the 3 records have "Closure Status" set to closed ?

Eukanuba.zip

Posted

thanks for that file...

in response to your question i only want 1 instead of 3...

that is close to what i want to achieve but not quite...

I need the closed requirements to plus one only if the same paragraph number's are all closed

check the attached file...

the Db needs to see that

1.) duplicate paragraph numbers exist

2.) If all of the Opened/Closed fields are set to "close" for the duplicate paragraph numbers

then it should +1 to the closed requirement boxes or do a summary of how many unique paragraph numbers are closed...

Thanks So Much...

I feel we're getting close!!!

Keep up the Good Work

Eukanuba_Copy.zip

Posted

I imagine Søren's face reading that the future of United States relies on repeating fields... LOL ! :

Posted

Ha Ha ... and I who thought Mark Leonard were a bit optimistic, might better revise the comprehension a.s.a.p.

http://www.johannhari.com/archive/article.php?id=598

--sd

Posted

I imagine Søren's face reading that the future of United States relies on repeating fields... LOL ! :

BTW: no repeating field is really involved in this topic. :

As bcooney said: the OP is misusing the term

  • Newbies
Posted

Hi

Im new to the forum and did a search on my issue and it took me to this post. Hopefully its similar to the issue above.

I have a database that employees go on to register customers including their name and email. There is also a field called "times registered." What function would I use to count the number of times an email has been registered. So if [email protected] is in the database 5 times, the "times registered" field would have a value of 5. Thanks in advance.

Posted

Hi Phanman! Welcome to FM Forums!!

Create another table occurrence (duplicate) of your table and join them (called a self join).

Join: MainTable::eMailAddress = SelfJoin::eMailAddress.

Create a calculation (result is number) = Count ( SelfJoin::eMailAddress )

UPDATE... You could also use a summary field = count of eMailAddress. To view the proper results, place the self-join version of the calculation on your layout instead. The benefit of using summary instead of Sum() is that summary will change depending upon your found set.

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