Hi everyone
I've been introduced into Alteryx in the last couple of weeks, and I love it! Previously worked with macros in Excel (by no means an expert but enough to be sufficient) but primarily by using formulae to achieve what I wanted. I'm getting to grips with the basics of Alteryx but do struggle with Regex expression and I think this is what I need to achieve this
I have one scenario which I'd appreciate some input on.
Basically I have a file that has fields with various dates in but the one I am interested in is the one with the latest date e.g.
Outstanding Options at 01-Mar-2018
Outstanding Options at 28-Feb-2019
There might be other fields with 28-Feb-2019 within it but I only really need to worry about the one with Outstanding Options within it.
What I want to do is identify the second column and rename it to something like No. of Shares irrespective of when the file is generated.
I have a feeling the dynamic rename with some form of contains and regex formula would do it, but not sure how to enact it...some guidance would be very much appreciated.
I thought about
if [field] contains [Outstanding Shares] then Datetimeparse(Substring([field],23,11),"%d-%b-%y")
would get be to be able to extract the date but not then figure out how to only rename the one with the latest date, or at least only to rename that field.
Thank you in advance.
Cass