Hub
Pricing About
WorkflowWorkflow

Looping and using data from previous iteration

takbb profile image
Draft Latest edits on 
Sep 27, 2024 6:21 PM
Drag & drop
Like
Download workflow
Workflow preview
Demonstration of using a Recursive Loop to retain information from previous row when processing each row. The lower input table contains the 'placeholder' data that is to be remembered from the previous row. On each iteration, the data that is sent to port 1 on the recursive loop end represents the data that will ultimately appear on the loop end output.


Ports 2 and 3 of the loop end node have been added as "recursion ports" so...

Data which is sent to Port 2 on the Recursive Loop end will be included in the next iteration on Port 1 of the Recursive Loop Start

Data which is sent to Port 3 on the Recursive Loop end will be included in the next iteration on Port 2 of the Recursive Loop Start.

You will see in the final output that some information has been "lagged" from the previous row, as if a lag column node were present.


@takbb Brian Bates 27 September 2024
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.2.5
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.4

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.0

    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.0

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits