Indexing items in sublist

I’m a little stumped here when dealing with a series of sublists. Essentially, I want to “number” each unique item in each sublist. The image below shows an example of what I have:

What I’d like to end up with, based on the image above is:
0 List
1
2
2
3
3
4
4
1 List
1
2
3…

I’ve figured out a way to do it for a single list, however, with sublists, I continually run into issues… Any help would be appreciated.

Here’s a quick graph I drew up of one option.

EDIT: List.CountOccurences is from Clockwork by the way.

You could also try a dictionary but I’m guessing you always want your Revisions numbered sequentially, not specific to the Revision.

4 Likes

Thanks @Nick_Boyts - The List.Cycle with altered levels was the step that I’m missing.