dbTalk Databases Forums  

Valuecount alternative in 5.5 Pro for Windows

comp.databases.filemaker comp.databases.filemaker


Discuss Valuecount alternative in 5.5 Pro for Windows in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
D.
 
Posts: n/a

Default Valuecount alternative in 5.5 Pro for Windows - 11-10-2005 , 08:23 PM






Is there an alternative to using the valuecount to count how many
responses were checked off on a value list? I am using Filemaker pro
5.5 for windows and this function does not seem to be available in that
version.

Thanks,
dan


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Valuecount alternative in 5.5 Pro for Windows - 11-10-2005 , 11:30 PM






In article <1131675826.772580.58180 (AT) g44g2000cwa (DOT) googlegroups.com>, "D."
<dtae (AT) yahoo (DOT) com> wrote:

Quote:
Is there an alternative to using the valuecount to count how many
responses were checked off on a value list? I am using Filemaker pro
5.5 for windows and this function does not seem to be available in that
version.
I'm not sure what ValueCount is or does.

If it counts the number of value list items selected in the current
record, then it's really a simply matter of checking if there are no
value chosen or counting the number of Return characters (¶) in the
field and adding one.
ie.
NumChosenOptions {Calculation, Number Result}
= If (IsEmpty(ValueField),
0,
PatternCount(ValueField, "¶") + 1)


More likely you mean counting the number of records that have each
particular value chosen, then this can be done in a few ways, but one
of the simplest is to have a set of fields that you can Sum via a
Summary field or a Relationship (depending on your needs).
ie.
{Calculation fields, Number results}

ChosenValue1 = PatternCount(ValueField, "Value1")

ChosenValue2 = PatternCount(ValueField, "Value2")

ChosenValue3 = PatternCount(ValueField, "Value3")

etc.

Then the number of records with "Value1" chosen is given by:

Sum(ChosenValue1)


OR
if you're already using a separate table / file for you value list
items, then you can set up a relationship link back to the main table /
file and each count is simply:

Count(MainFile::KeyField)



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #3  
Old   
D.
 
Posts: n/a

Default Re: Valuecount alternative in 5.5 Pro for Windows - 11-11-2005 , 02:53 PM



I should've thought of that. Thanks Helpful Harry.

..d


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.