I’m relatively new to KNIME and have a question about the following problem: I want to generate a sequence/number when a new group of data starts, which I can recognize by an empty line/cell.
A simplified example in below image. The first column represents my dataset. The second column represents what I want KNIME to generate. So KNIME should continue with an incremental number when a blank cell/row is reached and apply it to the next group of data.
I’m also open to other suggestions! But this was my initial idea.
An easier solution is possible with just a Java snippet node based on Java programming.
Hints on how to solve it using Java can be found in the recent post Java snippets have long memories!... by @Takbb.
@ipazin lol. I always miss using the Moving Aggregation node. I had built the workflow before you guys posted, but I’m on a slow computer, so opening paint, or saving the workflow is quite slow, and by the time I was ready to post, you guys had already replied. I figured, I’d still share it, just in case
I’ve borrowed @aworker’s Table Creator and the above snippet is included along with “yet another” workflow. Great to be able to showcase a variety of methods which demonstrate “fun uses” for different nodes.
Haha ha @takbb, never disapointed with you lol ! And really glad you contributed with the Java Snippet solution and an alternative pure KNIME solution as well. All crystal clear as usual !