Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Formula to extract date from a file name

Analytics_Pooja
アステロイド

Hi Everyone

 

I am looking for a formula to extract date from a file name 'communication.clientreporting.statements.bds.sr.20190118_095020.xml'

 

For all the files the date will always be at this location. 

 

Best

Pooja 

3件の返信3
atcodedog05
22 - Nova
22 - Nova

Hi @Analytics_Pooja 

 

You can use a formula like this

 

REGEX_Replace([Filename], ".*(2\d{7}).*", "$1")

 

Workflow:

atcodedog05_0-1630348505632.png

 

Hope this helps : )

 

Analytics_Pooja
アステロイド

Thank you @atcodedog05 . This works.

 

Best

Pooja 

Kamran1991
ボリード

If your file name is consistent, you can use this workflow to derive the date

ラベル
トップのソリューション投稿者