Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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!