Icon

1. Preparing Data for a Report

<p><strong>Preparing Data for a Report</strong></p><p>In this workflow we prepare data to be displayed in a report.</p><p>Starting from the accounting of a list of projects, on one branch we calculate the money in budget for each year for each one of the project and on the other branch we calculate the money actually spent for each project each year.</p><p>We then report the <em>money allocated</em>, the <em>money spent</em> and the <em>money remaining</em> for each project each year.</p>

URL: KNIME Beginner's Luck (Book Homepage) https://www.knime.com/knimepress/beginners-luck

Workflow: Preparing Data for a Report


In this workflow we prepare data to be displayed in a report.

Starting from the accounting of a list of projects, on one branch we calculate the money in budget for each year for each one of the project and on the other branch we calculate the money actually spent for each project each year.

We then report the money allocated, the money spent and the money remaining for each project each year.

Calculating money spent for each project each year

Calculating money in budget for each project each year

Reading data

Money by project & year

Unpivot

Calculating remaining money for each year

Money assigned to project each year
Pivot
GroupBy
Money used byproject each year
Pivot
Calculate remain 2009
Java Snippet (simple)
Set project names as RowIDs
RowID
used money ratio w. resp. 2007
Math Formula (Multi Column)
Calculate remain 2007
Java Snippet
Constant Value Column (deprecated)
Renaming "<year>+Sum(...)" into just "used <year>"
Column Renamer
Renaming "<year>+Sum(...)" into just "assigned <year>"
Column Renamer
Set project names as RowIDs
RowID
Projects.txt
CSV Reader
Unpivot
Inner joinon RowIDs
Joiner
Ascendingby RowID
Sorter
Calculate remain 2009
Java Snippet
Calculate remain 2008
Java Snippet
Calculate remainingmoney for each year
Expression
Ascendingby RowID
Sorter

Nodes

Extensions

Links