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.
SOLVED

Remove file type from file name

dmccandless
8 - Asteroid

This formula enables you to parse out the file type, assuming it's a .txt, .xlsx, dot something.

 

left([FileName], length([FileName]) - FindString(ReverseString(trim([FileName])), '.')-1)
// this formula drops the file extension (in theory), dropping the final period and any text after (for example .txt) in the file path

1 REPLY 1
LordNeilLord
15 - Aurora

Here's a pro tip for you....

 

FileGetFileName() - Just gets the filename (can be used with fullPath)

FileGetExt() - Gets the file Extension

FileGetDir() - Gets just the directory

 

Magic!

Labels
Top Solution Authors