I have a bunch of datasets passing through a counter. The datasets are grouped by area (region) so that each region gets its own count. This works and I get a nice count of datasets per region as they are sorted by date. 1 being the most recent dataset. The problem is. There is another attribute of [Catagory] and I need it so that every time [Catagory] = Update, the counter does something to freeze the count on the next record to go through. So the [Catagory=] Update record gets counted like normal, but the next one to go through after it does not increase in count, as follows:
Dataset 1 - [Catagory] = [], Count = 1
Dataset 2 - [Catagory] = [], Count = 2
Dataset 3 - [Catagory] = [], Count = 3
Dataset 4 - [Catagory] = [Update], Count = 4
Dataset 5 - [Catagory] = [], Count = 4
Dataset 6 - [Catagory] = [], Count = 5
Dataset 7 - [Catagory] = [Update], Count = 6
Dataset 8 - [Catagory] = [], Count = 6
And so on...
My mind is already twisting with the logic I have used in this script and hopefully I have simplified the problem for everyone here and I am sure there is a simple combination of transformers that I have just missed due to my drowning in other intricacies of the existing script.
Thanks for any help,