Hi,
I have A requirement like below.
Input:
| Stock | Buy/Sell | Stock Date | Start Date | End Date | Price |
| Amazon | Buy | 12/31/2023 | 11/29/2023 | 3/1/2024 | 10 |
| Apple | Buy | 12/31/2023 | 12/27/2023 | 5/1/2024 | 20 |
| GE | Buy | 12/31/2023 | 12/27/2023 | 5/1/2024 | 30 |
| Microsoft | Buy | 12/31/2023 | 11/24/2023 | 5/1/2024 | 40 |
| Applied Materials | Buy | 12/31/2023 | 11/24/2023 | 5/1/2024 | 50 |
Output:
Date Column output : The Column after Price needs to be derived from Stock Date and the other columns needs to be created for upcoming months for next 4 years.
Value output: the values for the new date columns needs to be created by comparing the column header date with start date and end date and price
"if start date<column header date and end date >column header date then Price else 0 end"
. Is this possible to achieve in Alteryx
| Stock | Buy/Sell | Stock Date | Start Date | End Date | Price | 12/31/2023 | 1/31/2024 | 2/29/2024 | 3/31/2024 | 4/30/2024 | 5/31/2024 | 6/30/2024 |
| Amazon | Buy | 12/31/2023 | 11/29/2023 | 3/1/2024 | 10 | | | | | | | |
| Apple | Buy | 12/31/2023 | 12/27/2023 | 5/1/2024 | 20 | | | | | | | |
| GE | Buy | 12/31/2023 | 12/27/2023 | 5/1/2024 | 30 | | | | | | | |
| Microsoft | Buy | 12/31/2023 | 11/24/2023 | 5/1/2024 | 40 | | | | | | | |
| Applied Materials | Buy | 12/31/2023 | 11/24/2023 | 5/1/2024 | 50 | | | | | | | |