Monthly and YTD Revenues
Comparing restaurant revenues month by month for 2022 and 2023, as monthly revenues and as YTD revenues.
YTD = Year To Date means the sum of revenues up to the current month.
Transactions from 2022 are saved in an Excel file, while transactions from 2023 are saved in a Google spreadsheet (which we made public for this example). So, we use an Excel Reader node to read data from 2022 and Google Sheets nodes to access the data for 2023. To access the Google spreadsheet, you are supposed to provide authentication for your Google account. Do not worry, authentication happens and remains at Google. Nothing will be stored with the KNIME workflow. After accessing the data:
- we extract parts of the date&time objects for each invoice,
- we perform a monthly aggregation with the Pivot node
- we calculate the YTD values with the metanode "YTD"
- We then concatenate/join the values for 2022 and 2023 and
- We visualize them in bar chart (monthly) and line plot (YTD)
Notice that we could have performed all aggregations within the bar chart node. However, for large amounts of data the loading (and refreshing if in a data app) of the views might take long time, since at each refreshing all totals must be recalculated. So we opted for pre-calculated values before visualization.
Read more on the topic Monthly and YTD Rvenue Aggregations on the KNIME Blog: https://www.knime.com/blog/how-to-calculate-year-to-date-aggregation
Workflow
Monthly and YTD Revenues
External resources
Used extensions & nodes
Created with KNIME Analytics Platform version 5.2.5
Legal
By using or downloading the workflow, you agree to our terms and conditions.