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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Week() as '01' for January

Hi experts

I have a loop in my script. The result for January is 1. But I need 01 for January, 02 for February and so on.

let vLoadDate = weekname(vLoadDate,1 ,'YYYY/MM'); loop

 

Any ideas how to fix this?

Thanks, Tom

Labels (4)
1 Solution

Accepted Solutions
Bhuvi
Partner - Contributor III
Partner - Contributor III

Try this,

let vLoadDate = weekname(vLoadDate,1 ,'MM'); loop

View solution in original post

1 Reply
Bhuvi
Partner - Contributor III
Partner - Contributor III

Try this,

let vLoadDate = weekname(vLoadDate,1 ,'MM'); loop