Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Return String in list of directories

nsarayar
7 - Meteor

Hi

 

Could someone tell me how I can extract and return the FY and Q information for each file in a directory. So i need to return "FY19 Q2", "FY19 Q3", etc

 

Thanks

image.png

3 REPLIES 3
cmcclellan
13 - Pulsar

I'd use a REGEX tool configured like this:

 

2019-06-06 22_32_19-Alteryx Designer x64 - New Workflow5_.png

 

 

The Regular Expression itself is just 

 

FY\d\d Q\d

 

meaning FY then 2 numbers, a space then Q and another number.

 

The tool will create a new column with the details that you require from the filename.

sumitiiest
8 - Asteroid

Hi @nsarayar ,

 

Please find attached the Alteryx workflow which will extract the year and quarter portion from the directory.

I have used below formula to calculate this

Findstring.PNG

 

 

Cheers,

Sumit

nsarayar
7 - Meteor
Thank you both for your help and suggested solutions
Labels