Alteryx Designer Desktop Discussions

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

File naming

Sifiso
8 - Asteroid

Hi all

 

I need to generate reports monthly from my workflow. how can I set a logic for my report to have a filename based on the the month?

example FY22_P01 for the first month, FY22_P02 for the second month, etc.

 

3 REPLIES 3
Luke_C
17 - Castor

Hi @Sifiso 

 

A formula like this should get the year and month to populate based on today's date. This assumes that your fiscal year and periods run Jan to December. You should append your file extension and configure your output tool accordingly. 

 

'FY'+datetimeformat(datetimetoday(),'%y')+'_P'+datetimeformat(datetimetoday(),'%m')

 

Luke_C_0-1650374546904.png

 

messi007
15 - Aurora
15 - Aurora

@Sifiso,

 

Please see below :

 

messi007_0-1650374479653.png

Use the path created on the output

 

messi007_1-1650374524402.png

 

 

Attached the workflow

Regards

80a9e9a6-0f11-40ef-8741-57b275158342.png

fmvizcaino
17 - Castor
17 - Castor

Hey @Sifiso ,

 

I would suggest you taking a look at this guide. https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-to-Dynamically-rename-output-fi...

 

https://www.youtube.com/watch?v=PwjQxJINQOU

 

You need to create a formula with your filename, so I would use the datetime functions to get the year and month from a date column. 

 

Best,

Fernando Vizcaino

Labels