Icon

JKISeason2-10_​tark

JKISeason2-10
https://www.knime.com/just-knime-it

Challenge 10: Calculating YTD and MTD for Restaurant Yummy
Level : Easy

Description: Restaurant Yummy records its sales values on a daily basis. The data contains two columns: Date and Sales. Year-to-Date (YTD) Sales and Month-to-Date (MTD) Sales are important metrics to track the revenue of the business. But what exactly are YTD and MTD values? The YTD value allows you to calculate the metric (e.g., sum of sales) for the current year, while the MTD value denotes a metric value for the current month. You are asked to build a KNIME Workflow that takes this data as input and adds YTD and MTD values across each record.

split the dateinto Y, M and DNode 31Node 32Pivot monthremove"+Sales"Pattern BasedAggregation(Columns withonly numericcolumn names)Unpivot MTDNode 50Sum(mm) -> mmPivot yearNode 58Pattern BasedAggregation(Columns withonly numericcolumn names)Unpivot YTDNode 62Node 63Sum(yyyy) -> yyyyNode 65remove"+Sales"Node 67Node 68Cell Splitter Column Rename Excel Reader Pivoting Column Rename(Regex) Moving Aggregation Unpivoting Sorter String Manipulation Pivoting Joiner Moving Aggregation Unpivoting Sorter Column Rename String Manipulation Joiner Column Rename(Regex) Column Rename Column Resorter split the dateinto Y, M and DNode 31Node 32Pivot monthremove"+Sales"Pattern BasedAggregation(Columns withonly numericcolumn names)Unpivot MTDNode 50Sum(mm) -> mmPivot yearNode 58Pattern BasedAggregation(Columns withonly numericcolumn names)Unpivot YTDNode 62Node 63Sum(yyyy) -> yyyyNode 65remove"+Sales"Node 67Node 68Cell Splitter Column Rename Excel Reader Pivoting Column Rename(Regex) Moving Aggregation Unpivoting Sorter String Manipulation Pivoting Joiner Moving Aggregation Unpivoting Sorter Column Rename String Manipulation Joiner Column Rename(Regex) Column Rename Column Resorter

Nodes

Extensions

Links