Newbies Phylum Posted May 16, 2015 Newbies Posted May 16, 2015 (edited) I'm a novice trying to create a summary report of clusters of various (n) true/false as well as max/min runs of true/false in the dataset. I can do the job in Excel but would really appreciate any help to automate this solution in FM. Edited May 16, 2015 by Phylum
comment Posted May 16, 2015 Posted May 16, 2015 (edited) Could you explain in more detail the type of data you track and how you need to report on it? Perhaps my own ignorance is at fault, but I have no idea what either "a summary report of clusters of various (n) true/false" or "max/min runs of true/false" means. If it means what I suspect it does, then Filemaker may not be the best choice for this task. Edited May 16, 2015 by comment
Newbies Phylum Posted May 17, 2015 Author Newbies Posted May 17, 2015 Thanks your reply. The data is Boolean (true or false). I'm trying to extract two pieces of (summary) data, for example: - how many times "true" occurs, say 3 times (pick any number), in successive records, and - the maximum times that "true" occurs in successive records in the whole dataset
Rick Whitelaw Posted May 17, 2015 Posted May 17, 2015 "Successive"? What do you mean? Consecutive? Likely not. Are you saying you want to find the number of occurrences in the found set and the number of occurrences in all records?
Newbies Phylum Posted May 17, 2015 Author Newbies Posted May 17, 2015 (edited) Yes, my bad, consecutive. The number of times 'true' occurs consecutively (say 3 times) in the whole record set as well as the highest number of consecutive "true's" in the whole set. ConsecutiveTrue.rtf Edited May 17, 2015 by Phylum
comment Posted May 17, 2015 Posted May 17, 2015 (edited) The data is Boolean (true or false). I'm trying to extract two pieces of (summary) data, for example: - how many times "true" occurs, say 3 times (pick any number), in successive records, and - the maximum times that "true" occurs in successive records in the whole dataset Yes, that's what I was afraid of. The problem with this request is twofold: Filemaker does not consider your records to be in any particular order, until you sort (or unsort) them; Filemaker is very good at reporting on your data; it is much less effective when you ask it to report on what's in-between your data. In order to find out the length of a "run", you will need a script to loop through the records (after finding and sorting the records you wish to include in this report), and write down the count every time a "run" ends. Only then you will be able to summarize these numbers. If your data is static (i.e. it's collected and will not change anymore), then you can run this script once and have it write the "run" lengths either into the records themselves, or by creating records in another table. Otherwise, you'll have to do this every time you want to produce a report (and in such case it would be preferable to use another table and leave the original records untouched). Edited May 17, 2015 by comment
Newbies Phylum Posted May 17, 2015 Author Newbies Posted May 17, 2015 I've used GetNthRecord to catch small clusters however it was obvious it would become unwieldy and outliers would eventually be missed. Thanks for your advice.
Recommended Posts
This topic is 3814 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