Qlik Community

Ask a Question

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Announcements
LINKEDIN LIVE: Democratizing data to enhance customer-centricity. JULY 29TH REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Labiqa
Contributor II
Contributor II

NPrinting Dynamic Output Folder Name

Hi, 

Is it possible to set up the output folders dynamically? We run Nprinting reports on a monthly basis and have them named dynamically but we have a request from the business to save the reports by creating folders by month. For example, all February 2021 reports would in their own folder and all March 2021 reports will be in a separate folder. I tried to find a way to do this but was only able to find this functionality in much older versions of NPrinting. 

Thank you,

Labiqa

Labels (2)
1 Solution

Accepted Solutions
Lech_Miszkiewicz

@Labiqa 

When creating folder destination you can use variable in it. Remamber that in order for variable to return value its definition needs to start with "=" sign... for example:

=Date(MonthStart(Today()),'YYYYMM')

That will result in creating value 202103 which can be part of the folder path.

...or alternatively you can precalculate value of the  variable in Qlik load script

Details also available on https://help.qlik.com

https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/AdministeringQVNprinting/Folder...

variables expansion:

https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/Troubleshooting/Variables-dont-...

1.png

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

2 Replies
Lech_Miszkiewicz

@Labiqa 

When creating folder destination you can use variable in it. Remamber that in order for variable to return value its definition needs to start with "=" sign... for example:

=Date(MonthStart(Today()),'YYYYMM')

That will result in creating value 202103 which can be part of the folder path.

...or alternatively you can precalculate value of the  variable in Qlik load script

Details also available on https://help.qlik.com

https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/AdministeringQVNprinting/Folder...

variables expansion:

https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/Troubleshooting/Variables-dont-...

1.png

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

Labiqa
Contributor II
Contributor II
Author

Awesome, thank you!