<?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: How to create a sample doc ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942394#M648316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My issue are how to reduce the file size. If I change the table name file size will drop ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 04:28:45 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2015-10-22T04:28:45Z</dc:date>
    <item>
      <title>How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942392#M648314</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 have below script , after filter by brand = HMS , the file size still big , may i know how to further reduce the file size by only random select 5% of the data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary "C:\Users\Paul Yeo\Dropbox\0_Q_Development\0 Q_QVD\000_QVD_v2065.qvw";&amp;nbsp; // 1 yr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//C:\Users\Paul Yeo\Dropbox\0_Q_Development\0 Q_QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Binary "c:\users\paul yeo\dropbox\0_q_development\0 qv snp development\0 q_qvd\000_qvd_v895.qvw";&amp;nbsp; // 7 yr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Binary "c:\users\paul yeo\dropbox\0_q_development\0 qv snp development\0 q_qvd\000_qvd_v882.qvw";&amp;nbsp; // 2 yr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Binary "c:\users\paul yeo\dropbox\5 qv_final\0 qv production\000_qvd_v11.qvw";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewFilteredTable:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;RESIDENT sales_table WHERE BRAND_='HMS';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES sales_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* below cannot reduce the file size also.&lt;/P&gt;&lt;P&gt;NewFilteredTable:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;RESIDENT MasterCalendar WHERE year&amp;gt;'2013';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES MasterCalendar ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 02:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942392#M648314</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-10-22T02:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942393#M648315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Paul,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In your script, both the tables are stored as&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM style=": ; color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;NewFilteredTable". &lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;Obviously,&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;this will create synchronization key. Try changing the table name.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942393#M648315</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-10-22T04:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942394#M648316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My issue are how to reduce the file size. If I change the table name file size will drop ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942394#M648316</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-10-22T04:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942395#M648317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but try to avoid synthetic keys. Maybe someone might helps you.&amp;nbsp; You can check the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942395#M648317</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-10-22T04:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942396#M648318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sync key is no harm as it with me for last 6 yr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942396#M648318</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-10-22T09:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942397#M648319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the "sample" prefix to load statements to reduce the table content to some random samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14455519731048364" jivemacro_uid="_14455519731048364"&gt;
&lt;P&gt;Sample 0.05&lt;/P&gt;
&lt;P&gt;LOAD something&lt;/P&gt;
&lt;P&gt;FROM somewhere&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would load only 5% of this table.&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>Thu, 22 Oct 2015 22:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942397#M648319</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-10-22T22:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942398#M648320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have script like this below , can you share with me it is possible to add the script like you propose to me to get 5% sample data ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sales:&lt;/P&gt;&lt;P&gt;LOAD left(FileBaseName(), 4) AS TDS,&lt;/P&gt;&lt;P&gt;'TDSPG' as SOURCE,&lt;/P&gt;&lt;P&gt;year(today()) - year(@50:60T) + 1&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Year_n,&lt;/P&gt;&lt;P&gt;(year(today()) - year(@50:60T)) * 12 + month(today()) - month(@50:60T) + 1 as Month_n, &lt;/P&gt;&lt;P&gt;@1:10T as [cust_id],&lt;/P&gt;&lt;P&gt;year([@50:60T]) as [year1],&lt;/P&gt;&lt;P&gt;Date(Monthstart(@50:60T), 'MMM-YYYY') as YearMonth_S,&lt;/P&gt;&lt;P&gt;Date(Monthstart(@344:354T), 'DD-MMM-YYYY') as YearMonthDay1&lt;/P&gt;&lt;P&gt;FROM Q_DOD_2015.txt (ansi, fix, no labels, header is 0, record is line); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 00:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942398#M648320</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-10-23T00:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942399#M648321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of changing the script, you can select whatever the filters you want in the Dashboard and then follow the below steps to reduce the document size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File Menu-&amp;gt; Reduce -&amp;gt; Keep Possible Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR just use Sample keyword like below&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;sales:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sample 0.05&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD left(FileBaseName(), 4) AS TDS,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'TDSPG' as SOURCE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;year(today()) - year(@50:60T) + 1&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Year_n,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(year(today()) - year(@50:60T)) * 12 + month(today()) - month(@50:60T) + 1 as Month_n,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;@1:10T as [cust_id],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;year([@50:60T]) as [year1],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Monthstart(@50:60T), 'MMM-YYYY') as YearMonth_S,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Monthstart(@344:354T), 'DD-MMM-YYYY') as YearMonthDay1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Q_DOD_2015.txt (ansi, fix, no labels, header is 0, record is line);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 02:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942399#M648321</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-23T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942400#M648322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great this is some thing new I just found out , thank you for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942400#M648322</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-10-23T03:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sample doc ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942401#M648323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got the Answer close this thread by giving Correct and Helpful Answers to the posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-sample-doc/m-p/942401#M648323</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-23T03:11:58Z</dc:date>
    </item>
  </channel>
</rss>

