<?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: Load Limited data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436701#M817058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; Qvd gen and&amp;nbsp; Main application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I write this code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvd_Gen:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;/P&gt;&lt;P&gt;.....;&lt;/P&gt;&lt;P&gt;sql select &lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;weeknumber,&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....from&amp;nbsp;&amp;nbsp; dbo.sample;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2017 05:20:14 GMT</pubDate>
    <dc:creator>soniasweety</dc:creator>
    <dc:date>2017-09-06T05:20:14Z</dc:date>
    <item>
      <title>Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436692#M817049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have a&amp;nbsp; data last 30 weeks data ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but Its one table in database ,so I want to load only&amp;nbsp; last two weeks data into qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I&amp;nbsp; restrict the data?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have week number as column in db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weekNumber&lt;/P&gt;&lt;P&gt;33&lt;/P&gt;&lt;P&gt;32&lt;/P&gt;&lt;P&gt;31&lt;/P&gt;&lt;P&gt;30&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436692#M817049</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436693#M817050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any time stamp or date field along with weekNumber?&lt;/P&gt;&lt;P&gt;How is the weekNumber related to date or timestamp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Table from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(weekNumber,3&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt; as ThirdMaxNum&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let v&lt;SPAN style="font-size: 13.3333px;"&gt;ThirdMaxNum&lt;/SPAN&gt;= Num(Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;ThirdMaxNum&lt;/SPAN&gt;',0,'Temp'));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;where num(&lt;SPAN style="font-size: 13.3333px;"&gt;weekNumber&lt;/SPAN&gt;)&amp;gt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ThirdMaxNum&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 07:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436693#M817050</guid>
      <dc:creator>suryaa30</dc:creator>
      <dc:date>2017-09-05T07:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436694#M817051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your data contains data upto current week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;where (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;weekNumber&lt;/SPAN&gt;&amp;gt;week(today()-2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your data contains data upto previous week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;where (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;weekNumber&lt;/SPAN&gt;&amp;gt;week(today()-3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise you need to get the highest weeknumber of your data (eg. by grouping and max weeknumber)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 07:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436694#M817051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436695#M817052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;First, you need get&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;last two &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;weekNumber from data table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15045985441307644" jivemacro_uid="_15045985441307644"&gt;
&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Last2Week]:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;First 2 load WeekNum as WeekList&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident DataTable&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Order by WeekNum desc;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 13.3333px;"&gt;Second, get data with 2 last week filter&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15045986685614424" jivemacro_uid="_15045986685614424" modifiedtitle="true"&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;[Finaltable]&lt;/P&gt;
&lt;P&gt;load * Resident &lt;SPAN style="font-size: 13.3333px;"&gt;DataTable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;where Exists(Weeklist,WeekNum);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 08:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436695#M817052</guid>
      <dc:creator>kenphamvn</dc:creator>
      <dc:date>2017-09-05T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436696#M817053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya,&lt;/P&gt;&lt;P&gt;I think the solution you gave Sony is a good one. Can I make a small suggestion that will be quicker when handling large datasets that you might find interesting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD max(Temp,3) as ThirdMaxNum;&lt;/P&gt;&lt;P&gt;LOAD FieldValue('weekNumber',RecNo()) as Temp&lt;/P&gt;&lt;P&gt;AutoGenerate FieldValueCount('weekNumber');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference here is that instead of going though the table &lt;EM&gt;Table&lt;/EM&gt; looking for the third biggest value of &lt;EM style="font-size: 13.3333px;"&gt;weekNumber &lt;/EM&gt;we only look though the distinct field values for &lt;EM&gt;weekNumber&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 08:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436696#M817053</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-05T08:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436697#M817054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I don't have the weeknumber column how&amp;nbsp; can I get the&amp;nbsp; last week and current week?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; createdon&amp;nbsp;&amp;nbsp; as date field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436697#M817054</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2017-09-05T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436698#M817055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;you can using Week(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;createdon) to get&amp;nbsp; week number&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436698#M817055</guid>
      <dc:creator>kenphamvn</dc:creator>
      <dc:date>2017-09-05T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436699#M817056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; InWeekToDate(Date, WeekEnd(Today()), 0) as CurrentWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; InWeekToDate(Date, WeekEnd(Today()), -1) as PreviousWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; InMonthToDate(Date, MonthEnd(Today()), 0) as CurrentMonth;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD Date(MonthStart(Today(), -1) + RecNo() - 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoGenerate 365;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;so use this type of code to limit the data&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436699#M817056</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2017-09-05T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436700#M817057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you can set a variable, (replace the ??????, it depends on the database you se)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vDateFrom=Date(WeekStart(Today())-7, &lt;STRONG&gt;'??????'&lt;/STRONG&gt;);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the variable in the SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT field1, ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;createdon&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;= '$(vDateFrom)'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436700#M817057</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-09-05T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load Limited data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436701#M817058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; Qvd gen and&amp;nbsp; Main application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I write this code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvd_Gen:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;/P&gt;&lt;P&gt;.....;&lt;/P&gt;&lt;P&gt;sql select &lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;weeknumber,&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....from&amp;nbsp;&amp;nbsp; dbo.sample;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Limited-data/m-p/1436701#M817058</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2017-09-06T05:20:14Z</dc:date>
    </item>
  </channel>
</rss>

