Newbies mrc Posted February 1, 2002 Newbies Posted February 1, 2002 Hi I have a db setup with several value lists. When doing a report I would like to be able to show a count of the value lists choices; value list has faculty, staff, secretarial. Want to be able to show how many faculty, how many staff, how many secretarial. Any ideas? Thanks, mrc
LuckyMe Posted February 1, 2002 Posted February 1, 2002 There may be other way to answer your quesiton, but this is mine: ValueList = ValueListItems( "Your DB", "List1") where: Your DB is the DB that the valuelist is defined List1: value list name Both need to be inside "" Count = PatternCount(ValueList, "
bobsmith Posted February 1, 2002 Posted February 1, 2002 This can be done with calculated field if all value list items are the same number of words. For example if all items are one word, such as last name" use this: WordCount(ValueListItems("Your DB.fp5","Your Value List")) If they are two you would just have to say:WordCount(ValueListItems("test.fp5","New Value List"))/2. If they are all different it would be a little more complicated.
bobsmith Posted February 1, 2002 Posted February 1, 2002 I like Luckys better, I didn't see it until I posted mine.
Newbies mrc Posted February 1, 2002 Author Newbies Posted February 1, 2002 Thanks for the suggestions, I have put in ValueListItems( "FSHN Support", "type"PatternCount ( "faculty" , +1 ) ) but get the error "an operator is expected here - highlighting the nt( after Count
Thom Posted February 1, 2002 Posted February 1, 2002 If I understand your scenario, you have a field called 'type'. The values in 'type' come from a value list with 3 values. Some records have "faculty", some have "staff", and some have "secretarial". For each type you want to know how many records there are. Correct? Create a Summary field called 'typeCount' with a count of 'type'. Create a new layout that's a columnar list/report. Select Report with grouped data. Under Specify Fields, choose 'type' and 'typeCount'. Under Organize Records by Category choose 'type'. Leave Sort Records with 'type' selected. Sort the found set by 'type', then view the new layout in Preview mode. There are other ways to do this that work in Browse mode, but the fields become very slow to display when you have many records.
Recommended Posts
This topic is 8332 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