Alteryx Designer Desktop Discussions

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

Check file format

dkma
8 - Asteroid

How to find the file format of a file given in input tool. 

 

If the file format is excel (xls*)- then perform a separate operation

if the file format is CSV - then perform another opertaion. 

 

 

But the data in both files are almost same

3 REPLIES 3
drew9
9 - Comet

Hi @dkma ,

 

What is your use case? Off the top of my head, you can output the full path of the file and then search for a string (.csv, .xlsx, etc.) within the filename in your formula or filter tool.

 

drew9_0-1634240963383.png

 

Garabujo7
Alteryx
Alteryx

Hello @dkma , you may try this:

 

Garabujo7_0-1634239057707.png

 

 

And then select the extension you'd like to use:

 

Garabujo7_1-1634241429970.png

 

You may filter .xlsx or csv and use it accordingly.

 

Gabriel

SubratDas5
10 - Fireball

You can use the directory tool to read all files in the directory irrespective of the file type , then use the dynamic input tool(s) to read the data from .csv separately and the .xls* separately and act further. 

Labels