Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 13 Sep 2007 at 1:19pm
Yeah, this a bit of a pain. You have to do the counting manually. Create a formula which splits the string apart and then loop the array and count how many times each element appears. In fact, you're going to have to create a new array that tracks these counts. Put this in a shared variable. After that, you can have a formula that just returns one element from the array. You could also create a function which is passed the element number and it returns the count and text for each element. Anyway, this is going to take a bit of coding and some expertise to pull off. But I don't see any other way.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
Joined: 13 Sep 2007
Location: United States
Online Status: Offline
Posts: 16
Posted: 18 Sep 2007 at 3:39pm
Thanks for the input. Both your suggestions work with the exception that some of the data sets have more then one entry, such as WH1,AM1.
Both your suggestions work well for grouping data sets with only one variable, but with two variables both need to be counted seperately. Essientially I need to pull variables such as these apart and count them indepedently. And that is where I get stuck.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum