I have a dataset with four columns: Customer ID [CID], Date, Time, Action Code
A new row is added to the data for every action recorded and there may be multiple actions per customer contact. I need to extract all the data for contacts made by telephone (action code 'call'). The problem is the 'call' action code might be at any point during the contact, i.e. first, last, fourth row of data for that contact.
How can I use the multirow formula tool (or any other within Alteryx Designer) to extract the data I need: Where action code = call, get all records where CID = the CID for the call row and date = the date of the call row. If it's possible, I'd also like time to be +/- 10 minutes of the call row time (see table below where the bottom row happened hours before the others so would be excluded).
| Customer ID | Date | Time | Action |
| 12345 | 30/09/2019 | 16:40:32.123 | A1 |
| 12345 | 30/09/2019 | 16:41:12.256 | Call |
| 12345 | 30/09/2019 | 16:42:59.556 | A2 |
| 12345 | 30/09/2019 | 08:12:46.258 | A3 |