Thanks! I tried this but it did not work. Instead I brought in another column and did a running count on that grouped by the category column. IE
running-count ( [data item] for [category]) which gave counts within category, and then created a new quer...
running-count ( [data item] for [category]) which gave counts within category, and then created a new quer...