Hub
Pricing About
ComponentComponent

Stack Table Columns as Rows

takbb profile image
Version2Latest, created on 
Apr 15, 2024 5:56 PM
Drag & drop
Like
Use or download
Chosen (usually "repeated") Columns from a table are stacked so that new rows are created for each. The values of other (non-stacked) columns are repeated. e.g The following table: |Name|Date |Product 1|Price 1|Product 2|Price 2| |A |2023-01-01| X | 10 | Y | 20 | could be stacked to form: |Name|Date |Product|Price| | A |2023-01-01| X | 10 | | A |2023-01-01| Y | 20 | Updated 12 Jul 2023 - enable optional return of original column name, with ability to specify column name and perform regex to return modified values based on original column name @takbb Brian Bates 19 June 2023

Component details

Input ports
  1. Type: Table
    Data Table
    Data to be stacked
Output ports
  1. Type: Table
    Stacked Table
    Stacked Data Table

Used extensions & nodes

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

    KNIME AG, Zurich, Switzerland

    Version 5.2.2

    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
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.2

    knime
  • Go to item
    NodePit Power NodesUnknown extension

    This is an unpublished or unknown extension.

    Philipp Katz, Daniel Esser; nodepit.com

    Version 1.4.0

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, 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