community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Datestamp to Ouput File name

I have few monthly tasks where the data is refereshed. My Input file is from the Oracle dba and the output file is on my local drive. I would like the output file to be overwritten with datestamp as a prefix or suffix to the filename when I run this monthly module. Ideally I would like the datestamp to be MAX([DATE]) but Today's date would also solve my purpose.
 
Alteryx Partner
Try this.

After your input, insert a formula tool with Date String and put DateTimeNow() . On your output tool, Check the Take File/Table Name from Field and choose Append Suffix to File/Table Name. For the field containing file name, select the field where you put ur DateTimeNow() and make sure the Keep Field in Output is checked.



Thank you so much Amy
Meteor
hello

can you data stanp a xls output, the same way

many thanks

DC
Alteryx Certified Partner
Hi Denny,

Yes, you can. You may just need to experiment with that "Today_Date" field as to whether it changes the field or table name... you may even need to set the entire string in that field.

Kane
Alteryx Partner

If I don't want to include this date column in my output file but yet want to display the output file name with timestamp, how can this be achieved?

Alteryx Certified Partner
Alteryx Certified Partner

You can UNCHECK the "Keep Field in Output" box (above).  That will remove the date column from the data in your file.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Alteryx Partner

Thanks much. Got to see after I posted the question.

Atom

The instructions listed in this thread work fine for some files (such as CSV). However, Excel will not add the date/time to the filename. Rather, it will name the Sheet.

 

I found these instructions:

 

https://community.alteryx.com/t5/tkb/articleprintpage/tkb-id/knowledgebase/article-id/347

 

It takes a few more steps but this worked fine for me.

Alteryx Certified Partner
Alteryx Certified Partner

@jwpetrov,

 

I would have gone for 1 of 2 easy options:

 

  1. Prepend the date
  2. Calculate the full filename (including sheet name) as a field putting the date where I need it and replace the output name with the field

At least they are easy in my world.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Labels