Icon

JKISeason2-10_​sryu_​ver2

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.

Year& Month& dayDataData was added manually.Sum(Sales)(-1)Day = 1Month = 1missing = 0Calculate YTD and MTDrename& column filterExtract Date&TimeFields Excel Reader Moving Aggregation Lag Column Joiner Row Filter Row Filter Joiner Missing Value Math Formula(Multi Column) Table Manipulator Year& Month& dayDataData was added manually.Sum(Sales)(-1)Day = 1Month = 1missing = 0Calculate YTD and MTDrename& column filterExtract Date&TimeFields Excel Reader Moving Aggregation Lag Column Joiner Row Filter Row Filter Joiner Missing Value Math Formula(Multi Column) Table Manipulator

Nodes

Extensions

Links