Hi
I am a new to alteryx.
I have data set like below
| Region | Source | Name | Start Date | end date | year | month | Quarter | Type | Auto/Manual |
| NA | abc | xyz | 03/02/2023 | 03/03/2023 | 2023 | 3 | 1 | a | auto |
| UK | abc | abc | 11/09/2023 | 11/24/2023 | 2023 | 11 | 4 | b | auto |
| Ire | abc | cve | 12/04/2022 | 12/30/2022 | 2022 | 12 | 4 | c | manual |
| SA | abc | wer | 01/02/2024 | 01/14/2024 | 2024 | 1 | 1 | r | manual |
| NA | abc | wfvds | 08/20/2024 | 08/20/2024 | 2024 | 8 | 3 | a | auto |
| Ire | abc | xyx | 09/12/2023 | 10/02/2023 | 2023 | 10 | 4 | c | auto |
| UK | abc | abc | 01/23/2025 | 01/31/2025 | 2025 | 1 | 1 | x | manual |
| UK | abc | xyz | 02/03/2025 | 02/07/2025 | 2025 | 2 | 1 | a | auto |
So in alteryx I need to create a pivot table using the above table-
Filters
Columns
Rows
value
- Avg of date diff start & close date
- avg total of Current year - previous year
I am not being able to find out "Current year - previous year". It has to be dynamic. If we are in 2026, current year should be 2026 & previous should be 2025 and in column "Current year - previous year" should only show avg total of 2026-avg total of 2025
If someone help me would be very helpful.
Thanks in advanced