Below is my data (all records, limited columns for privacy) from a text input.

I need to create buckets ('t') for the qty in each layer. I want to do these buckets in increments of 500. So layer 10 should only have 1 bucket, with value of 55.49. Layer 9 would have 3 buckets: a 500 bucket, a 1000 bucket, and a 1334.52 bucket.
I can't figure out the generate rows tool to achieve this:


It shows the error message: "The Value did not change after the Loop Expression" and this is my output:

If I filter for a specific layer (1 row flowing into the generate rows tool), it does appear to work - but won't replicate for the entire data set, for example filtering for layer 1:

Just for context, our goal here is to use the generate rows tool to model LIFO inventory accounting.