Icon

20230423 Pikairos JustKNIMEIt Season 2 Challenge 4 Spread Yearly Values Across Months With Loop

Description: Your team created a summary of the total amount spent last year on each project. The data looks like the following:

Year Area Project exp
2022 area A proj A 120
2022 area B proj X 160

The finance department of your company, however, would like to have a more granular overview of the expenditures. In particular, the expenditures for projects in area A should be spread equally across 12 months, while those for projects in area B should be grouped by quarters. In the end, the above table should look like the following:

Year Area Project exp
2022 area A proj A jan 10
2022 area A proj A feb 10
...
2022 area B proj X Q1 40
2022 area B proj X Q2 40

Challenge 04: Spread Yearly Values Across Months Your team created a summary of the total amount spent last year on each project. The data looks like the following:Year Area Project exp2022 area A proj A 1202022 area B proj X 160The finance department of your company, however, would like to have a more granular overview of the expenditures.In particular, the expenditures for projects in area A should be spread equally across 12 months, while those forprojects in area B should be grouped by quarters. In the end, the above table should look like the following:Year Area Project exp2022 area A proj A jan 102022 area A proj A feb 10...2022 area B proj X Q1 402022 area B proj X Q2 40 2022 ProjectsCreate Number of RowsColumnarea A = 12 rowsarea B = 4 rowsGenerateDuplicate RowsBased on theNumber of RowsColumnCalculate:exp/number of rowsLoop ThroughOne Rowat a TimeSeries of RulesAssigning Monthor Quarter Labels,Depending onthe Number of Rowsand the Row NumberCreate RowNumber ColumnEnd loopand concatenateall rowsFilter outunwantedcolumnsRe-sortColumnsViewTable Table Reader Rule Engine One Row to Many Math Formula Chunk Loop Start Rule Engine Math Formula Loop End Column Filter Column Resorter InteractiveTable (local) Challenge 04: Spread Yearly Values Across Months Your team created a summary of the total amount spent last year on each project. The data looks like the following:Year Area Project exp2022 area A proj A 1202022 area B proj X 160The finance department of your company, however, would like to have a more granular overview of the expenditures.In particular, the expenditures for projects in area A should be spread equally across 12 months, while those forprojects in area B should be grouped by quarters. In the end, the above table should look like the following:Year Area Project exp2022 area A proj A jan 102022 area A proj A feb 10...2022 area B proj X Q1 402022 area B proj X Q2 40 2022 ProjectsCreate Number of RowsColumnarea A = 12 rowsarea B = 4 rowsGenerateDuplicate RowsBased on theNumber of RowsColumnCalculate:exp/number of rowsLoop ThroughOne Rowat a TimeSeries of RulesAssigning Monthor Quarter Labels,Depending onthe Number of Rowsand the Row NumberCreate RowNumber ColumnEnd loopand concatenateall rowsFilter outunwantedcolumnsRe-sortColumnsViewTable Table Reader Rule Engine One Row to Many Math Formula Chunk Loop Start Rule Engine Math Formula Loop End Column Filter Column Resorter InteractiveTable (local)

Nodes

Extensions

Links