Moving row down by the condition

Hello, dear users!

I am struggling with moving down rows by specific condition.
image
I have such data, and in the column TransactionsOut the value Bonus Applied should be moved into next row. But value Missed Out Punch should not be moved to the next row
How it should look like.


test.knwf (7.5 KB)

Can you give some advice how to do this?

Hi @Karlygash

Interesting problem. Iā€™m afraid, I have the impression that the workflow you upload is reset and hence without data. Could you please upload it making sure first that is run and the Reset box is not checked when you export it?

Thanks and looking forward to helping :slight_smile:

Best

Ael

4 Likes

oh, sorry
I have unchecked the reset check box test.knwf (19.1 KB) check.xlsx (10.0 KB)

Actually I have only input file in the workflow and sorter

I really appreciate your help! :slightly_smiling_face:

1 Like

Hi @Karlygash

Thanks for the data and no problem at all :wink: !

Please find two possible solutions:

  • The first one is based on a single Java snippet node (which follows the hints by @takbb here).
  • The second one is purely based on KNIME nodes.

20210622 Pikairos Moving row down by the condition.knwf (64.7 KB)

Hope this helps :smiley:

Best

Ael

5 Likes

Hi @aworker, Iā€™m flattered! :wink:

4 Likes

Cool decision! thanks a lot :sparkling_heart:

Thanks a lot @Karlygash for validating the solution :smiley: :+1:!

And thanks to both @Karlygash and @takbb for your kind comments :wink: !

Best wishes

Ael

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.