<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Conditional Weekly Load QlikSense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663622#M49891</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know there are many ways to do this,&lt;BR /&gt;but I propose you a gymnastics solution (because I love this game &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;)&lt;/P&gt;&lt;P&gt;if I load the initial data ( I added a field to see what I loaded )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 699px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26518i78D10F653C075A27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get the result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 686px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26519iC7DC9FEAA5058427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are two elements in the filenames the year and the week.&lt;BR /&gt;so I use those two elements to create a date.&lt;BR /&gt;and then before loading the qvd file I check if the created date (which is in the qvd file name) is higher than your reference date which is week 48 of 2019&lt;/P&gt;&lt;P&gt;so the scrip is :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;let week48=MakeWeekDate(2019,48);
for each File in filelist ('.\test2\*.qvd')
       let vmatch = MakeWeekDate(num(TextBetween('$(File)','Data_','_Week')),num(TextBetween('$(File)','_Week','.qvd'))) ;
       if '$(vmatch)'&amp;gt;'$(week48)' then
       
			Data:
			
			LOAD *
			
			FROM
			$(File)
			(qvd);
		end if
next File&lt;/LI-CODE&gt;&lt;P&gt;and the result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captu2re.JPG" style="width: 704px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26520iE3548A6D0E610948/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captu2re.JPG" alt="Captu2re.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 10:32:40 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-01-08T10:32:40Z</dc:date>
    <item>
      <title>Conditional Weekly Load QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663595#M49886</link>
      <description>&lt;P&gt;I have below qvd files in my source folder.&lt;/P&gt;&lt;P&gt;I want to load files from&amp;nbsp; 2019 Week 48 on wards. Please help me to form the scripting&lt;/P&gt;&lt;P&gt;Data_2019_Week45.qvd&lt;BR /&gt;Data_2019_Week46.qvd&lt;BR /&gt;Data_2019_Week47.qvd&lt;BR /&gt;Data_2019_Week48.qvd&lt;BR /&gt;Data_2019_Week49.qvd&lt;BR /&gt;Data_2019_Week50.qvd&lt;BR /&gt;Data_2019_Week51.qvd&lt;BR /&gt;Data_2019_Week52.qvd&lt;BR /&gt;Data_2020_Week1.qvd&lt;BR /&gt;Data_2020_Week2.qvd&lt;BR /&gt;Data_2020_Week3.qvd&lt;BR /&gt;Data_2020_Week4.qvd&lt;BR /&gt;So on…..&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 09:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663595#M49886</guid>
      <dc:creator>Ron1</dc:creator>
      <dc:date>2020-01-08T09:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Weekly Load QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663622#M49891</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know there are many ways to do this,&lt;BR /&gt;but I propose you a gymnastics solution (because I love this game &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;)&lt;/P&gt;&lt;P&gt;if I load the initial data ( I added a field to see what I loaded )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 699px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26518i78D10F653C075A27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get the result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 686px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26519iC7DC9FEAA5058427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are two elements in the filenames the year and the week.&lt;BR /&gt;so I use those two elements to create a date.&lt;BR /&gt;and then before loading the qvd file I check if the created date (which is in the qvd file name) is higher than your reference date which is week 48 of 2019&lt;/P&gt;&lt;P&gt;so the scrip is :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;let week48=MakeWeekDate(2019,48);
for each File in filelist ('.\test2\*.qvd')
       let vmatch = MakeWeekDate(num(TextBetween('$(File)','Data_','_Week')),num(TextBetween('$(File)','_Week','.qvd'))) ;
       if '$(vmatch)'&amp;gt;'$(week48)' then
       
			Data:
			
			LOAD *
			
			FROM
			$(File)
			(qvd);
		end if
next File&lt;/LI-CODE&gt;&lt;P&gt;and the result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captu2re.JPG" style="width: 704px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26520iE3548A6D0E610948/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captu2re.JPG" alt="Captu2re.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 10:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663622#M49891</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-08T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Weekly Load QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663668#M49897</link>
      <description>&lt;P&gt;It works like a charm. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 12:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Weekly-Load-QlikSense/m-p/1663668#M49897</guid>
      <dc:creator>Ron1</dc:creator>
      <dc:date>2020-01-08T12:15:30Z</dc:date>
    </item>
  </channel>
</rss>

