<?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 only record with matched value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218943#M621365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load*&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(Result,'NG');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 19:19:15 GMT</pubDate>
    <dc:creator>aarkay29</dc:creator>
    <dc:date>2017-02-17T19:19:15Z</dc:date>
    <item>
      <title>load only record with matched value</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218942#M621364</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;If I have a table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 253px; height: 67px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Process&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NG&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5645&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMI1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6224&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5645&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6224&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;SMT1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OO&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a group of records with same ID and process, I want to keep only the record which has result= NG.&lt;/P&gt;&lt;P&gt;For example in the above table, for ID =1234 and process=SMT1, there are two records with different result.&lt;/P&gt;&lt;P&gt;I just want to keep the only record which ID=1234, process=SMT1 and result=NG.&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218942#M621364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-17T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: load only record with matched value</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218943#M621365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load*&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(Result,'NG');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218943#M621365</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-17T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: load only record with matched value</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218944#M621366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what about the result &amp;lt;&amp;gt; NG?&lt;/P&gt;&lt;P&gt;Keep or remove?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153578_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Q:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Process, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="250389" data-objecttype="1" href="https://community.qlik.com/thread/250389"&gt;https://community.qlik.com/thread/250389&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join (Q)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load ID, Process, sum(if(Result='NG', 1, 0)) as NGCount&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Q&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by ID, Process;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QQ:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Q&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Where (NGCount=1 and Result='NG') or NGCount=0;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Q;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218944#M621366</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-02-17T19:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: load only record with matched value</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218945#M621367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but, that will filter out all other records.&lt;/P&gt;&lt;P&gt;I want the table become:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header headerSortDown" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; text-decoration: underline; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Process&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1234&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMT1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;NG&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;5645&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMT2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;5645&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMT1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6224&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMT2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;6224&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMT1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;OO&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;9235&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;SMI1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218945#M621367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-17T19:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: load only record with matched value</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218946#M621368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this expression in the script&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(ID=peek(ID),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Process=peek(Process),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Result='NG',Result),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result) as Result;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-record-with-matched-value/m-p/1218946#M621368</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-17T19:36:30Z</dc:date>
    </item>
  </channel>
</rss>

