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