<?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: Script Testing - Filtering Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189056#M384383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. Your post was helpful, but bloomed a more direct question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping there would be an option to load specific chunks of data for testing. For example, If my data set was 12 months for year 2015, It would be ideal to pull 1 specific month worth of data to cross reference and check against the source document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is helpful to have first 1000 records, but it is not specific to something I can test against. I will try ordering my fact table by date asc so I can pin-point the exact row of when my first month ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is only possible for January or December checking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't there an equivalent to the SQL Where Statement in Qlik Scripting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 18:13:31 GMT</pubDate>
    <dc:creator>kwarren1</dc:creator>
    <dc:date>2016-09-21T18:13:31Z</dc:date>
    <item>
      <title>Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189048#M384375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following script statement is still scanning through 50 Million records and taking about 15 minutes to re-load the script. Is there anything I can do to more effectively filter or retrieve a sample or smaller size&lt;SPAN style="font-size: 10pt;"&gt; of the records I need in order to ensure testing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempDayPoint_Measurement_Summry1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident Point_Measurement&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where _kHour_Quarter_ID_Autonumber &amp;lt;= (100)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 19:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189048#M384375</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-20T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189049#M384376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe using the sample prefix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Sample.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Sample.htm"&gt;Sample ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189049#M384376</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-09-20T21:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189050#M384377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the option under debug to load just x number of rows.&lt;/P&gt;&lt;P&gt;This will just load the first x, Marco's solution is probably better for testing as it will provide a random sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189050#M384377</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-09-21T07:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189051#M384378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use debug on reload page, u can get your sample faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189051#M384378</guid>
      <dc:creator>berkarmagan</dc:creator>
      <dc:date>2016-09-21T07:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189052#M384379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin, use first statement to load the number of first rows that you want to load. If your statement is SQL, then use top functions to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189052#M384379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189053#M384380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately the source is not OLE DB or ODBC so SQL statements are not an option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189053#M384380</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-21T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189054#M384381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco. Thanks for the response, but the sample prefix actually makes the load go slower. I put in "sample .1 " before the load statement and it seemed to move at 1 tenth of the speed instead of running 10 times faster because only a tenth of the data was being pulled. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189054#M384381</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-21T13:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189055#M384382</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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;tempDayPoint_Measurement_Summry1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;First 1000 // 20000, 30000 any amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; Resident Point_Measurement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189055#M384382</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2016-09-21T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189056#M384383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. Your post was helpful, but bloomed a more direct question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping there would be an option to load specific chunks of data for testing. For example, If my data set was 12 months for year 2015, It would be ideal to pull 1 specific month worth of data to cross reference and check against the source document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is helpful to have first 1000 records, but it is not specific to something I can test against. I will try ordering my fact table by date asc so I can pin-point the exact row of when my first month ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is only possible for January or December checking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't there an equivalent to the SQL Where Statement in Qlik Scripting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189056#M384383</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-21T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189057#M384384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with transpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;tempDayPoint_Measurement_Summry1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Resident Point_Measurement&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Where _kHour_Quarter_ID_Autonumber &amp;lt;= (100)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;tempDayPoint_Measurement_Summry1 into Path\&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;tempDayPoint_Measurement_Summry1.qvd (qvd);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then Load that qvd into Qlikview&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here, qvd is negotiate / reduce the Time elapse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189057#M384384</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-21T18:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189058#M384385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin, First statement are for load not for SQL, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189058#M384385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T06:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189059#M384386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C, D,...&lt;/P&gt;&lt;P&gt;WHERE Date &amp;gt;= '01/01/2015' and Date &amp;lt;= '31/12/2015'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With where you can filter your load for specific data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189059#M384386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T06:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189060#M384387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. This did help the script run 2 min. faster for testing. I am finding out that my sum statements within my script is the bigger culprit for slow speed outputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 13:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189060#M384387</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-22T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script Testing - Filtering Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189061#M384388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My run time was 1:08 instead of 15+ minutes when I used the STORE function and saved the table as a QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial load was still 15 minutes, but then that table is saved as a QVD that can be repetitively referenced in code when I make other adjustments in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my final code output. Hope it helps someone in the future!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/******* STEP 1 - Join In New Field ********/&lt;BR /&gt;tempAgg_Table: &lt;BR /&gt;Noconcatenate &lt;BR /&gt;Load * &lt;BR /&gt;Resident Point_Measurement &lt;BR /&gt;; &lt;/P&gt;&lt;P&gt;Left Join (tempAgg_Table) &lt;BR /&gt; &lt;BR /&gt;Load &lt;BR /&gt;_kHour_Quarter_ID_Autonumber, &lt;BR /&gt;DayDate&lt;BR /&gt;Resident Calendar_Table &lt;BR /&gt;; &lt;/P&gt;&lt;P&gt;/******* STEP 2 - Aggregate Table ********/&lt;BR /&gt;Agg_Point_Measurement:&lt;BR /&gt;Load &lt;/P&gt;&lt;P&gt; _kFctFacility_Summry as _kFctFacility_Summry,&lt;BR /&gt; DayDate,&lt;BR /&gt; _kPoint_ID as _kPoint_ID,&lt;BR /&gt; sum(CONSUMPTION) as CONSUMPTION&lt;BR /&gt; &lt;BR /&gt; Resident tempAgg_Table&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; Group by &lt;/P&gt;&lt;P&gt; _kFctFacility_Summry,&lt;BR /&gt; DayDate,&lt;BR /&gt; _kPoint_ID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;/******* STEP 3 - Store Aggregate Table as a QVD ********/&lt;BR /&gt;STORE * from Agg_Point_Measurement into U:\Users\cwarreke\Scratch Docs\Agg_Point_Measurement.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/******* STEP 4 - Substitute This Bit Of Code Instead of running STEP 2 &amp;amp; 3, Comment Out Step 2 &amp;amp; 3 moving forward********/&lt;BR /&gt;Load *&lt;BR /&gt;From &lt;U&gt;(qvd);&lt;/U&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 15:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Testing-Filtering-Help/m-p/1189061#M384388</guid>
      <dc:creator>kwarren1</dc:creator>
      <dc:date>2016-09-22T15:08:02Z</dc:date>
    </item>
  </channel>
</rss>

