![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am wondering how to do the calculation in FM6.0 for one database, how to count the unique field numbe. for example in one database, there is only field called textField, and there are 10 records, 5 records with textField = "w" 2 records with textField = "x" 3 records with textField = "y" how to get the calculation result of 3 Thanks for any tips/ |
#3
| |||
| |||
|
|
In article <1174054865.841847.195... (AT) n59g2000hsh (DOT) googlegroups.com>, "Yoyo" <xiangd... (AT) gmail (DOT) com> wrote: Hi, I am wondering how to do the calculation in FM6.0 for one database, how to count the unique field numbe. for example in one database, there is only field called textField, and there are 10 records, 5 records with textField = "w" 2 records with textField = "x" 3 records with textField = "y" how to get the calculation result of 3 Thanks for any tips/ It depends on what you want to do iwht the number. If all you want is for it to appear on a printed report, then a Summary field is the easiest way. eg. TextFieldCount Summary Count of textField then create a layout something like: [textField] Body ------------ Count of [textField] = [TextFieldCount] Sub-summary by textField (Trailing) ------------ Total records = [TextFieldCount] Grand Summary Trailing ------------ Where [] denotes the fields themselves. Sort the records by textField and then Preview / print this layout. The records MUST be sorted for the Sub-summary part to work properly. For the example records above you should get a report that looks like: w w w w w Count of w = 5 x x Count of w = 2 y y y Count of y = 3 Total records = 10 If you want to, you can remove the Body part of the Layout and you won't get all the record details printed, just the summary lines. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#4
| |||
| |||
|
|
Hi, Thanks for replying this message, but this is not what I want. what we need is that in 10 records, 5 records with textField = "w" 2 records with textField = "x" 3 records with textField = "y" How to set up the calculation fields or scripts to get the result of 3 which is the number of unique recrods of w, x, y. |
![]() |
| Thread Tools | |
| Display Modes | |
| |