Hi all,
I am new to the Alteryx and searching for help to solve the following problem.
The sample data looks like:
| item | date | Qty | Sum_Qty_21_days |
| A | 27/11/2019 | 5 | 12 |
| B | 22/11/2019 | 3 | 4 |
| D | 29/10/2019 | 2 | 3 |
| E | 10/11/2019 | 1 | 1 |
| F | 25/11/2019 | 2 | 7 |
| C | 25/11/2019 | 1 | 7 |
The column Sum_Qty_21_days should contains the sum of Qty of last 21 days. e.g. Sum_Qty_21_days field for date 27/11 have value 12 because of sum of column Qty for dates 27/11, 22/11, 10/11 and 25/11 (for both item F and C). Similarly, Sum_Qty_21_days field for date 22/11 have value 4 because of sum of column Qty for dates 22/11 and10/11.
Note: Same date can have multiple rows, sum should consider multiple dates too.
First priority is to perform this with In-database tools only, if not possible, solution with other tools are welcome too.
Thanks in advance.