<?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: Reload data with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421067#M612876</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;Actually the format of field YearMonth is like 2017/01/01, and I did tried where clause with Year() function.&lt;/P&gt;&lt;P&gt;But It shows there's no Year function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** Scripts***&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Select *,&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From &lt;/EM&gt;&amp;lt;&amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;where&amp;nbsp; Year(YearMonth)=2017 and Month(YearMonth)='Jul'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 07:05:04 GMT</pubDate>
    <dc:creator>katetsan</dc:creator>
    <dc:date>2017-11-20T07:05:04Z</dc:date>
    <item>
      <title>Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421065#M612874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Communities,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load data from table in database under conditional fields.&lt;/P&gt;&lt;P&gt;For example, I have a data set with multiple fields as below and I would like to load data with specific conditions, like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1) Month =2017/07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Company Name = 11&amp;nbsp;&amp;nbsp; .... etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Data Set Table&amp;gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;YearMonth&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Factory ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Customers ID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;111&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017/02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;112&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017/07&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;113&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017/07&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;114&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017/10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;115&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017/09&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;116&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 06:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421065#M612874</guid>
      <dc:creator>katetsan</dc:creator>
      <dc:date>2017-11-20T06:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421066#M612875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried with &lt;STRONG&gt;where&lt;/STRONG&gt; clause ? like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;From &amp;lt;&amp;gt; &lt;STRONG&gt;where &lt;/STRONG&gt;YearMonth='2017/07' and Company=11;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 06:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421066#M612875</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-20T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421067#M612876</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;Actually the format of field YearMonth is like 2017/01/01, and I did tried where clause with Year() function.&lt;/P&gt;&lt;P&gt;But It shows there's no Year function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** Scripts***&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Select *,&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From &lt;/EM&gt;&amp;lt;&amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;where&amp;nbsp; Year(YearMonth)=2017 and Month(YearMonth)='Jul'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 07:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421067#M612876</guid>
      <dc:creator>katetsan</dc:creator>
      <dc:date>2017-11-20T07:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421068#M612877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That means your DB doesn't support year(). You can find for a similar function for your db or use year() in load statement that would get executed by qv. try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Where year(...)....;&lt;/P&gt;&lt;P&gt;Sql Select * from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, the db will send all the data to qv and qv will filter accordingly before it gets loaded. If you want this filter to be applied at the db itself (which is generally better option), you have to find the functions that are supported with your db and apply where clause accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 07:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421068#M612877</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-20T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421069#M612878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&amp;nbsp; Year(YearMonth)=2017 and Month(YearMonth)='Jul'&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From &lt;/EM&gt;&amp;lt;your table&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;if the format of field YearMonth is like 2017/01/01, you need &lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY/MM/DD';&lt;/P&gt;&lt;P&gt;before the script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 07:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421069#M612878</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-11-20T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421070#M612879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The db that I'm connecting is SAP. I've searched on website, and it seems the year() works on SAP.&lt;/P&gt;&lt;P&gt;Or did I mistake the information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 08:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421070#M612879</guid>
      <dc:creator>katetsan</dc:creator>
      <dc:date>2017-11-20T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421071#M612880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the script running without the where clause? Could you post the error screen shot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 08:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421071#M612880</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-20T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reload data with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421072#M612881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very appreciate your kindly support and instruction. I tried the script as below, and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***** Script *****&lt;/P&gt;&lt;P&gt;Load*;&lt;/P&gt;&lt;P&gt;Select * from Table where (YearMonth&amp;gt;= '20170701' and YearMonth &amp;lt;= '20170731');&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-data-with-condition/m-p/1421072#M612881</guid>
      <dc:creator>katetsan</dc:creator>
      <dc:date>2017-11-21T02:46:53Z</dc:date>
    </item>
  </channel>
</rss>

