Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Creator III
Creator III

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