I’m currenty trying to create a workflow to display our reporting figures. The data input table consists of the YTD Values of different KPIs for the different Business Units and Regions. Each KPI is in a different column as well as the indicator for the Business Unit and for the region are in separate columns. Now I would also need the values on a MTD level to be created. I therefore need a loop which looks for the value of the previous month for the same Business Unit and Region and substracts this from this month. This needs to be done for every month and every KPI.
can share example of your input file and expected output? Dummy data is fine as well. It would help as solution for these kind of tasks highly depend on data format
no that’s not correct. The Gross profit for Februar for Germany and BU 06-01 would be calculated by substracting the YTD value of November (282388) by the YTD value of October (191842). This has to be done for every KPI but also take into account the respective Business Unit and the respective Region.
Hope this helps with the understanding… thanks!
maybe the following workflow will help you with your problem.
The Lag columns node is used to get the value from the previous months:
GroupLoop is used to only calculate the lag on your defined Business Unit/Region
*Sort Node is used to ensure that the rows are in correct order for the lag node
Upper part you will have to manually configure for every KPI you want to transform
Lower part will loop through all KPIs selected (but is overly complicated - thought it would be easier)