Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7369 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

hello,

i would like to find people who have voted in the last 3 elections. i have 4 fields named with a date. in that field is either n (did not vote), p (voted at polls) or a (voted absentee). how would i find folks who vote either absentee or at polls in 3 of 4 of these dates?

tnx for your help

Posted

Why don't you update your profile so we know how best to answer your question. The link is on the Left under your handle in blue, "profile"

Is this data already in a FileMaker file.

Lee cool.gif

Posted

Sounds like a design problem. There should only be ONE date field; and a vote type.

Posted

Add a calculation field for the number of voters in the last three elections, voteNumber =

Let ( [ X2 = If ( f2 <> "N", 1, 0 ) ;

X3 = If ( f3 <> "N", 1, 0 ) ; X4 = If ( f4 <> "N", 1, 0 )] ;

X2 + X3 + X4

)

where the fi are the last three of your fields.

Posted

Or more simply, not PatternCount( f2 & f3 & f4; "n" )

Perform a find for 1 in this field.

Posted

Well,

Just one other idea with 7.

I'd assume one day you'd need to see those who voted on 2 of 4, or for all of them...

The Let( ) would let you use this parameter too, but you can also do it with a relationship.

Create a relation with a new Table Occurrence, using :

- a global field

matching a calc

n_voteAttendance = PatternCount(f1&f2&f3&f4;"n")

and set this relationship option with the ">" sign.

Now, you can view the result in a portal, and dynamically switch from one result to the other.

I'd agree with Bruce that your design isn't the best here though.

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