Hub
Pricing About
WorkflowWorkflow

Calcualate the Difference between Two Consecutive Rows

Workflow SnippetColumn ExpressionsLag ColumnMath Formula
knime profile image
Draft Latest edits on 
Jun 8, 2022 6:11 AM
Drag & drop
Like
Download workflow
Workflow preview
The Math Formula node allows you to perform row-wise calculations, like calculating the difference between the values in column A and B in all rows, and some column-wise calculations, like calculating the column mean. But what about calculations between values in the same column? This workflow snippet shows you two ways of subtracting the values of two consecutive rows in the same column.
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

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

    KNIME AG, Zurich, Switzerland

    Version 4.6.1

    knime profile image
    knime
  • Go to item
    KNIME ExpressionsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

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

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime profile image
    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