Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reduced Document Name (Loop and reduce)

Hi All,

I am trying to create a reduce and loop task on publisher where I create a qvw for each store that we have.  The task itself works fine but the formatting of the document is incorrect.

In the Reduced Document Name I have entered the following:

%SourceDocumentName%%DocumentField,Store No%

And the qvw's are created successfully naming is incorrrect e.g. 'ENDVtest14' instead of 'ENDVtest00014'.

My question is how do I format the Store No so that it pads out with preceding zeroes?

Thanks,

Brian

1 Solution

Accepted Solutions
Gysbert_Wassenaar

I think you have to create a new field in the script of the qlikview document for that purpose: Text(Repeat('0',5-len([Store No]))&[Store No]) as PaddedStoreNo


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

I think you have to create a new field in the script of the qlikview document for that purpose: Text(Repeat('0',5-len([Store No]))&[Store No]) as PaddedStoreNo


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks gwassenaar‌ worked a treat!