<?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: Need to restrict last 6 months data from full load qvd in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478030#M100435</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229534"&gt;@Raju_6952&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The first step would be formatting your field. You mentioned it is of the timestamp type, so it would be helpful to have a sample of the format. I'll suggest some options, and you can adjust them according to your data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Date(Floor(Date(FieldTimestamp, 'YYYY-MM-DD hh:mm:ssZ')),'YYYY-MM-DD')&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Date(Floor(Date#(FieldTimestamp, 'YYYY-MM-DD hh:mm:ssZ')),'YYYY-MM-DD')&lt;BR /&gt;&lt;BR /&gt;or only&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;date(floor(FieldTimestamp))&lt;/P&gt;
&lt;P&gt;So it would be something like&lt;BR /&gt;&lt;BR /&gt;let&amp;nbsp;vDate =&amp;nbsp;MonthStart(Today(1),-6)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * FROM [....] ( qvd) &amp;nbsp;where date(floor(FieldTimestamp))&amp;gt;=’$( vDate)’;&lt;/P&gt;
&lt;P&gt;As a suggestion, you might consider converting it to &lt;STRONG&gt;num()&lt;/STRONG&gt; to make it a bit more performant.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;num(MonthStart(Today(1),-6))&lt;/P&gt;
&lt;P&gt;num(date(floor(FieldTimestamp)))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Matheus&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 13:31:40 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2024-08-26T13:31:40Z</dc:date>
    <item>
      <title>Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2477979#M100427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have huge data in full load qvd and my requiement is to load only last 6 months of data from max of Start_TimeStamp field in qlik sense.&lt;/P&gt;
&lt;P&gt;any suggestions would be highly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Raju&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 10:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2477979#M100427</guid>
      <dc:creator>Raju_6952</dc:creator>
      <dc:date>2024-08-26T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2477985#M100428</link>
      <description>&lt;P&gt;table2:&lt;BR /&gt;load Max(month(date)) as max&lt;BR /&gt;Resident table1;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;let vmax=Peek('max');&lt;BR /&gt;&lt;BR /&gt;drop table table2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;t3:&lt;BR /&gt;load * Resident table1&lt;BR /&gt;where Month(date)&amp;gt;=$(vmax)-6;&lt;BR /&gt;drop table table1;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 10:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2477985#M100428</guid>
      <dc:creator>Padma123</dc:creator>
      <dc:date>2024-08-26T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478013#M100430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/306389"&gt;@Padma123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When using variable condition its not restricting any data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Raju&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 11:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478013#M100430</guid>
      <dc:creator>Raju_6952</dc:creator>
      <dc:date>2024-08-26T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478028#M100434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TABLE1:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;NUM, Start_TimeStamp &lt;BR /&gt;1, 02/08/2024&lt;BR /&gt;2, 25/08/2024&lt;BR /&gt;3, 05/04/2024&lt;BR /&gt;4, 02/05/2023&lt;BR /&gt;5, 31/07/2024&lt;BR /&gt;6, 29/01/2022&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TABLE2:&lt;/P&gt;
&lt;P&gt;LOAD date(max(Start_TimeStamp)) AS DATE&lt;BR /&gt;resident TABLE1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let vmax=Peek('DATE');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;drop table TABLE2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TABLE3:&lt;BR /&gt;load * Resident TABLE1&lt;BR /&gt;where Start_TimeStamp &amp;gt;=addmonths('$(vmax)',-6);&lt;BR /&gt;drop table TABLE1;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 13:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478028#M100434</guid>
      <dc:creator>nina2</dc:creator>
      <dc:date>2024-08-26T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478030#M100435</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229534"&gt;@Raju_6952&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The first step would be formatting your field. You mentioned it is of the timestamp type, so it would be helpful to have a sample of the format. I'll suggest some options, and you can adjust them according to your data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Date(Floor(Date(FieldTimestamp, 'YYYY-MM-DD hh:mm:ssZ')),'YYYY-MM-DD')&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Date(Floor(Date#(FieldTimestamp, 'YYYY-MM-DD hh:mm:ssZ')),'YYYY-MM-DD')&lt;BR /&gt;&lt;BR /&gt;or only&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;date(floor(FieldTimestamp))&lt;/P&gt;
&lt;P&gt;So it would be something like&lt;BR /&gt;&lt;BR /&gt;let&amp;nbsp;vDate =&amp;nbsp;MonthStart(Today(1),-6)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * FROM [....] ( qvd) &amp;nbsp;where date(floor(FieldTimestamp))&amp;gt;=’$( vDate)’;&lt;/P&gt;
&lt;P&gt;As a suggestion, you might consider converting it to &lt;STRONG&gt;num()&lt;/STRONG&gt; to make it a bit more performant.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;num(MonthStart(Today(1),-6))&lt;/P&gt;
&lt;P&gt;num(date(floor(FieldTimestamp)))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Matheus&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 13:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478030#M100435</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-08-26T13:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to restrict last 6 months data from full load qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478034#M100438</link>
      <description>&lt;P&gt;In regard to your statement of having huge data is your requirement to late for a sensible data-handling.&lt;/P&gt;
&lt;P&gt;This means the appropriate steps should be done in beforehand, for example by:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;storing the max. timestamp within a table/variable at the time the qvd is created&lt;/LI&gt;
&lt;LI&gt;flagging the data with 0/1 flags and/or creating YYYYMM periods&lt;/LI&gt;
&lt;LI&gt;slicing the qvd into YYYYMM files&lt;/LI&gt;
&lt;LI&gt;replacing the timestamp with a date and a time field&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The aim of such measurements is to be able to load the data like:&lt;/P&gt;
&lt;P&gt;t: load * from qvd where exists(Field);&lt;/P&gt;
&lt;P&gt;whereby the appropriate exists-data are loaded within a dummy-table directly in beforehand.&lt;/P&gt;
&lt;P&gt;Another approach would be to load sliced qvd's with a filelist() loop and within the loop is another if-loop which queries the period from the file-name.&lt;/P&gt;
&lt;P&gt;Of course the other here suggested methods will be working from a technically point of view but fetching the max. timestamp with an aggregation load and using this information within a following load in a normal where-clause which compares the condition on a record-level will take a lot of time by huge data-sets.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 14:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-restrict-last-6-months-data-from-full-load-qvd/m-p/2478034#M100438</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-08-26T14:05:26Z</dc:date>
    </item>
  </channel>
</rss>

