<?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 ASK.. how to use WHERE in load script?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166009#M38105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow.. it's work martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so muchh&lt;/P&gt;&lt;P&gt;have a nice day,&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, 18 Aug 2010 15:48:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-18T15:48:27Z</dc:date>
    <item>
      <title>ASK.. how to use WHERE in load script??</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166007#M38103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12px; margin: 8px; background-color: #ffffff;"&gt;&lt;P&gt;hello all, need your help pliss..&lt;/P&gt;&lt;P&gt;i have a little problem here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my load script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;load&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;NoRek as NoRek_CAD,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;NoPin as NoPin_CAD,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;min(date(CicilDate)) as MinCicilDate,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;num(interval(today() - min(Date(CicilDate)))) as AgingDay,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;from&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;&lt;D&gt; (qvd) group by NoRek, NoPin;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my SQL Picture,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2170_sourceID:2170" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see from the script and picture above,&lt;/P&gt;&lt;P&gt;the result of MinCicilDate is 2009-08-05.&lt;/P&gt;&lt;P&gt;but what i want is 2010-05-05. because Paidstatus = 0, Which mean customer haven't paid in that period.&lt;/P&gt;&lt;P&gt;i must get min(cicildate) where paidstatus = 0 to calculate AgingDay.&lt;/P&gt;&lt;P&gt;note, cicildate same as duedate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is how to use &lt;B class="Apple-style-span" style="font-weight: bold;"&gt;WHERE&lt;/B&gt; is my script,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;min(date(CicilDate)) where PaidSts = 0 As MinCicilDay,&lt;/P&gt;&lt;P class="Apple-style-span" style="font-weight: bold"&gt;because the real agingday is (today - MinCicilDay where PaidSts = 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the syntax of &lt;B class="Apple-style-span" style="font-weight: bold;"&gt;WHERE?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;plis complete my syntax above .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plis help..&lt;/P&gt;&lt;P&gt;thank you very muchh..&lt;/P&gt;&lt;P&gt;regards !!&lt;/P&gt;&lt;/DIV&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 13:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166007#M38103</guid>
      <dc:creator />
      <dc:date>2010-08-18T13:54:31Z</dc:date>
    </item>
    <item>
      <title>ASK.. how to use WHERE in load script??</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166008#M38104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;after taking a quick look at your post...&lt;BR /&gt;&lt;BR /&gt;is 'PaidSts' in your CorAccountDetail.qvd?&lt;BR /&gt;&lt;BR /&gt;If so, you should be able to load with&lt;BR /&gt;===========================================&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;&lt;BR /&gt;NoRek as NoRek_CAD,&lt;BR /&gt;&lt;BR /&gt;NoPin as NoPin_CAD,&lt;BR /&gt;&lt;BR /&gt;min(date(CicilDate)) as MinCicilDate,&lt;BR /&gt;&lt;BR /&gt;num(interval(today() - min(Date(CicilDate)))) as AgingDay,&lt;BR /&gt;&lt;BR /&gt;from&lt;BR /&gt;&lt;BR /&gt;&lt;D&gt; (qvd)&lt;BR /&gt;&lt;BR /&gt;where PaidSts=0&lt;BR /&gt;&lt;BR /&gt;group by NoRek, NoPin;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;==============================================&lt;/P&gt;&lt;P&gt;Hope this helps. If not provide more information!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 15:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166008#M38104</guid>
      <dc:creator />
      <dc:date>2010-08-18T15:34:56Z</dc:date>
    </item>
    <item>
      <title>ASK.. how to use WHERE in load script??</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166009#M38105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow.. it's work martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so muchh&lt;/P&gt;&lt;P&gt;have a nice day,&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, 18 Aug 2010 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-how-to-use-WHERE-in-load-script/m-p/166009#M38105</guid>
      <dc:creator />
      <dc:date>2010-08-18T15:48:27Z</dc:date>
    </item>
  </channel>
</rss>

