rivet Posted January 15, 2012 Posted January 15, 2012 Unfamiliar with creating custom functions, I would like to return the value list with a count beside each item Let ( [ thelist = List ( diet::restriction ) ; vlist = ValueListItems ( Get ( FileName ) ; "diet_restriction" ) ] ; PatternCount ( thelist ; GetValue ( vlist ; 1 ) ) ) Inital List No Pork Vegetarian Vegan Return List No Pork 3 Vegetarian 2 Vegan 8
Vaughan Posted January 15, 2012 Posted January 15, 2012 Try this, I wrote it some time ago: http://www.briandunning.com/cf/1027
comment Posted January 15, 2012 Posted January 15, 2012 thelist = List ( diet::restriction ) ; Why not summarize the diet table by restriction, using a summary field?
rivet Posted January 15, 2012 Author Posted January 15, 2012 Thanks Vaughan, that did the trick. Comment I wanted the function to set a field.
Recommended Posts
This topic is 4706 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