I have a folder with the years 2020, 2021, 2022 and they're sorted by week inside (Week 1 to 53). When I run this script it seems like it's loading only the year 2021 out of these three years and I don't get why. I've been using qlik for only a week now and would really apreciate any kind of help.
Regards Jdd.
Let deb=0; Let fin=Year(Today(1))-2020;
FOR Each dir in DirList('lib://Accès/Commandes/Années/*')
Let Ann=Year(Today(1))-deb; Let vCount=0;
For Each vDir in DirList('lib://Accès/Commandes/Années/$(Ann)/*') LET vCount = $(vCount)+1; Next vDir;
Let Sem=vCount;
Do while (Sem>=53-vCount+1)
[TAB Semaine$(Sem)]: LOAD *
FROM [lib://Commandes/Années/$(Ann)/Semaine$(Sem)/*.xlsx] (ooxml, embedded labels, header is 3 lines, table is Etat);