Icon

04 Transform using Expression and Cell Splitter nodes (Math formulas)

<p><strong>Transform using Expression and Cell Splitter nodes</strong></p><p>This workflow demonstrates the usage of <strong>Expression </strong>and <strong>Cell Splitter</strong> nodes for data transformation.</p><p>If you want to give your acquired knowledge a test run, take a look at the Just KNIME It challenges. (Just KNIME It Link provided in External resources section of this workflow)</p>

URL: KNIME Self Paced Course https://www.knime.com/knime-self-paced-courses
URL: KNIME Cheat Sheet : Building a KNIME Workflow for Beginners https://www.knime.com/sites/default/files/2021-07/CheatSheet_Beginner_A3.pdf
URL: Just KNIME It Challenges https://www.knime.com/just-knime-it

Math formula: Convert "Sales" to thousands

Step 1: Click on the "Expression" node and access the configuration window.

Step 2: In the "Expression 1 " section, enter the below given equation: $["Sales"]/1000

This will create a new column with sales value divided by 1000. Click on "Append Column" and name it "Sales (in thousands)".

Step 3: Select "Apply and Execute" to execute the node and append the new column to the output table.

Split "Month" column into its number and name

Step 1: Click on the "Cell Splitter" node to open the dialog box.

Step 2:In the "Column to split" section, select the "Month" column. In the "Settings" section, select the delimiter as "-".

Step 3:Select "Apply and Execute" to execute the node and append the two new columns to the output table.

Note: When the "Remove input column" option is enabled, the selected input column will not be part of the output table.

Transform using Expression and Cell Splitter nodes


This workflow demonstrates the usage of Expression and Cell Splitter nodes for data transformation.

Workflow complete!

Keep the momentum going by exploring Just KNIME It!on the Hub to challenge yourself and see how these nodes can be integrated into more complex workflows and use cases.

Split the Month column into Month Number and Month Name
Cell Splitter
Sales data for differentproducts and markets
Table Creator
Visualizeoutput table
Table View
Convert "Sales"to thousands
Expression
Rename the newly created columns
Column Renamer

Nodes

Extensions

Links