Hello everyone, I am new to alteryx.
I have two excel sheets. Here is an example,
Sheet 1
| Medicine | Phase | Unique ID | Subsequent ID | Disease | Patient Group | Line of Therapy |
| a | 1 | 172 | 1 | Lung Cancer in adults, children or elderly | Adults | 1st |
| a | 1 | 172 | 1 | Lung Cancer in adults, children or elderly | Adults | 1st |
| a | 1 | 172 | 2 | Lung Cancer in adults, children or elderly | Children | 1st |
| a | 1 | 172 | 2 | Lung Cancer in adults, children or elderly | Children | 1st |
| a | 1 | 172 | 3 | Lung Cancer in adults, children or elderly | Elderly | 1st |
| a | 1 | 172 | 3 | Lung Cancer in adults, children or elderly | Elderly | 1st |
| c | 1 | 45 | 1 | Tuberculosis in adults | Adults | 1st |
| c | 1 | 45 | 1 | Tuberculosis in adults | Adults | 1st |
Sheet 2
| Medicine | Phase | Unique ID | Subsequent ID | Disease | Age Group | Line of Therapy |
| b | 2 | | | Lung Cancer in adults, children or elderly | - | - |
| b | 2 | | | Lung Cancer in adults, children or elderly | - | - |
| d | 2 | | | Tuberculosis in adults | - | - |
What I need to do is in the sheet 2 if the disease matches with that in sheet 1, then the columns of Unique Id, Subsequent Id, patient group and line of therapy should be filled as per the data in sheet 1.
Also, if the disease matches and there is a Subsequent Id greater than 1 in the sheet 1 then for that disease in sheet 2, records should be created as per the subsequent Id of sheet 1 with all the columns.
Can anyone help me to tackle this?