<?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: Filtering of Records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912644#M987086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. Let me know how it goes and remember to drop the temp table at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 16:46:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-23T16:46:08Z</dc:date>
    <item>
      <title>Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912636#M987078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello all,&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;I am relatively new to Qlikview and have come across an issue that i can not seem to fix.&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;What I want to be able to do is to exclude rows where ‘Qty on Stock’ = 0 and job status = ‘Priced cfm’. This in itself is simple, but what I also need it to do is to exclude the rest of the records with the same PO number where it meets the criteria.&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;I am using a SQL Select statement to get the data from SQL databases.&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;I hope that you understand what i mean.&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;Thanks,&lt;BR /&gt;Alec&lt;IMG __jive_id="93784" alt="qv.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93784_qv.JPG" style="height: 685px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912636#M987078</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-23T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912637#M987079</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;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([PO Number] = Below([PO Number]), 0, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put this enable conditional in your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912637#M987079</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-23T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912638#M987080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Simon. I am not sure that i understand what i need to do. just so you are aware, there is more than one PO and each PO can have between 1 and 30 rows. I would need all rows excluding for the PO where it meets the above condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912638#M987080</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-23T14:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912639#M987081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, if you would like to handle it in your load script, then add a line:&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; *&lt;/P&gt;&lt;P&gt;Where [Qty on Stock] = 0 And [Job Status] = 'Priced' And Flag = 1;&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; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([PO Number] = Prevoius([PO Number]), 0, 1) As Flag;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912639#M987081</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-23T15:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912640#M987082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted the code just before the SQL Select statement as per the code below, but unfortunately it does not return any results. Have I done it wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Main&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp; SELECT &lt;/P&gt;&lt;P&gt;"sendac_nl"."name", &lt;/P&gt;&lt;P&gt;"lothed_nl"."ponum", &lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty", &lt;/P&gt;&lt;P&gt;"lotdet_nl"."soldqty", &lt;/P&gt;&lt;P&gt;"lotdet_nl"."countsize", &lt;/P&gt;&lt;P&gt;"jobbug_nl"."status", &lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr",&lt;/P&gt;&lt;P&gt;"lotdet_nl"."jobnum",&lt;/P&gt;&lt;P&gt;"poffil_nl"."comment1" as 'PO Notes',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."lotdetid",&lt;/P&gt;&lt;P&gt;"lothed_nl"."type",&lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty" as 'OnStock'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FROM&amp;nbsp;&amp;nbsp; ("Pr2Company1"."dbo"."ordhed_nl" "ordhed_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."orderstatusdesc_nl" "orderstatusdesc_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."orddet_nl" "orddet_nl" ON "orderstatusdesc_nl"."status"="orddet_nl"."status") ON "ordhed_nl"."ordhedid"="orddet_nl"."ordhedid") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."jobstatus_nl" "jobstatus_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."jobbug_nl" "jobbug_nl" ON "jobstatus_nl"."status"="jobbug_nl"."status") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."poffil_nl" "poffil_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."sendac_nl" "sendac_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lothed_nl" "lothed_nl" ON "sendac_nl"."supcode"="lothed_nl"."supcode") ON "poffil_nl"."ponum"="lothed_nl"."ponum") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lotdet_nl" "lotdet_nl" ON "lothed_nl"."lotnum"="lotdet_nl"."lotnum") ON "jobbug_nl"."jobnum"="lotdet_nl"."jobnum") ON "orddet_nl"."lotdetid"="lotdet_nl"."lotdetid"&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE&amp;nbsp; "lothed_nl"."ponum"&amp;gt;10000 AND "lotdet_nl"."uomrecqty"&amp;lt;&amp;gt;0 and "lothed_nl"."type"&amp;lt;&amp;gt;'9' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// List of PO's with On Stock = 0&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; *&lt;/P&gt;&lt;P&gt;Where [InvQtyOnStock] = 0 And [InvStatus] = 'Priced' And Flag = 1;&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; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([InvPONumber] = Previous([InvPONumber]), 0, 1) As Flag;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SQl&amp;nbsp; SELECT &lt;/P&gt;&lt;P&gt;"sendac_nl"."name" as 'InvName', &lt;/P&gt;&lt;P&gt;"lothed_nl"."ponum" as 'InvPONumber', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty" as 'InvRecQty', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."soldqty" as 'InvSoldQty', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."countsize" as 'InvCountSize', &lt;/P&gt;&lt;P&gt;"jobbug_nl"."status" as 'InvStatus', &lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" as 'InvDesc',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."jobnum" as 'InvJobNum',&lt;/P&gt;&lt;P&gt;"orddet_nl"."status" as 'InvInvoiceStatus', &lt;/P&gt;&lt;P&gt;"orderstatusdesc_nl"."descr" as 'InvInvoiceDesc',&lt;/P&gt;&lt;P&gt;"ordhed_nl"."delcustcode" as 'InvDeliveryCustomer',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty" as 'InvQtyOnStock',&lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") as 'test'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp; ("Pr2Company1"."dbo"."ordhed_nl" "ordhed_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."orderstatusdesc_nl" "orderstatusdesc_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."orddet_nl" "orddet_nl" ON "orderstatusdesc_nl"."status"="orddet_nl"."status") ON "ordhed_nl"."ordhedid"="orddet_nl"."ordhedid") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."jobstatus_nl" "jobstatus_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."jobbug_nl" "jobbug_nl" ON "jobstatus_nl"."status"="jobbug_nl"."status") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."poffil_nl" "poffil_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."sendac_nl" "sendac_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lothed_nl" "lothed_nl" ON "sendac_nl"."supcode"="lothed_nl"."supcode") ON "poffil_nl"."ponum"="lothed_nl"."ponum") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lotdet_nl" "lotdet_nl" ON "lothed_nl"."lotnum"="lotdet_nl"."lotnum") ON "jobbug_nl"."jobnum"="lotdet_nl"."jobnum") ON "orddet_nl"."lotdetid"="lotdet_nl"."lotdetid"&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp; "lothed_nl"."ponum"&amp;gt;10000 AND "lotdet_nl"."uomrecqty"&amp;lt;&amp;gt;0 and "lothed_nl"."type"&amp;lt;&amp;gt;'9';// and "jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") = 'qtys cfm 0.000000';// and "lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty"=0; // and ("jobbug_nl"."status"=45 or "jobbug_nl"."status"=55);&lt;/P&gt;&lt;P&gt; disconnect;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912640#M987082</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-23T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912641#M987083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to achieve desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Filter in Load Script&lt;/P&gt;&lt;P&gt;2. Filter in expression using set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;1. Load Script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_Temp:&lt;/P&gt;&lt;P&gt;SQL SELECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Filter PO]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD DISTINCT [PO Number] AS [Filter PO]&lt;/P&gt;&lt;P&gt;RESIDENT Table_Temp&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp; [Qty on Stock] = 0 And [Job Status] = 'Priced cfm';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Table_Temp WHERE NOT EXISTS([Filter PO],[PO Number]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;2. Expression using set analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Create a dummy expression something like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;COUNT({&amp;lt; [PO Number] -= {$(=CONCAT({&amp;lt;[Qty on Stock]={0},[Job Status]={'Priced cfm'}&amp;gt;} DISTINCT [PO Number],',')&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;)}&amp;gt;}&amp;nbsp; [PO Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912641#M987083</guid>
      <dc:creator />
      <dc:date>2015-07-23T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912642#M987084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is my huge lack of qlikview skills that is causing me not to get this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got the data going to the temp tables but still not excluding all the records &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// List of PO's with On Stock = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Table_Temp:&lt;/P&gt;&lt;P&gt; SQl&amp;nbsp; SELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "sendac_nl"."name" as 'InvName', &lt;/P&gt;&lt;P&gt;"lothed_nl"."ponum" as 'InvPONumber', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty" as 'InvRecQty', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."soldqty" as 'InvSoldQty', &lt;/P&gt;&lt;P&gt;"lotdet_nl"."countsize" as 'InvCountSize', &lt;/P&gt;&lt;P&gt;"jobbug_nl"."status" as 'InvStatus', &lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" as 'InvDesc',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."jobnum" as 'InvJobNum',&lt;/P&gt;&lt;P&gt;"orddet_nl"."status" as 'InvInvoiceStatus', &lt;/P&gt;&lt;P&gt;"orderstatusdesc_nl"."descr" as 'InvInvoiceDesc',&lt;/P&gt;&lt;P&gt;"ordhed_nl"."delcustcode" as 'InvDeliveryCustomer',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty" as 'InvQtyOnStock',&lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") as 'test'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp; ("Pr2Company1"."dbo"."ordhed_nl" "ordhed_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."orderstatusdesc_nl" "orderstatusdesc_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."orddet_nl" "orddet_nl" ON "orderstatusdesc_nl"."status"="orddet_nl"."status") ON "ordhed_nl"."ordhedid"="orddet_nl"."ordhedid") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."jobstatus_nl" "jobstatus_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."jobbug_nl" "jobbug_nl" ON "jobstatus_nl"."status"="jobbug_nl"."status") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN (("Pr2Company1"."dbo"."poffil_nl" "poffil_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN ("Pr2Company1"."dbo"."sendac_nl" "sendac_nl" &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lothed_nl" "lothed_nl" ON "sendac_nl"."supcode"="lothed_nl"."supcode") ON "poffil_nl"."ponum"="lothed_nl"."ponum") &lt;/P&gt;&lt;P&gt; RIGHT OUTER JOIN "Pr2Company1"."dbo"."lotdet_nl" "lotdet_nl" ON "lothed_nl"."lotnum"="lotdet_nl"."lotnum") ON "jobbug_nl"."jobnum"="lotdet_nl"."jobnum") ON "orddet_nl"."lotdetid"="lotdet_nl"."lotdetid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp; "lothed_nl"."ponum"&amp;gt;10000 AND "lotdet_nl"."uomrecqty"&amp;lt;&amp;gt;0 and "lothed_nl"."type"&amp;lt;&amp;gt;'9';// and "jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") = 'qtys cfm 0.000000';// and "lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty"=0; // and ("jobbug_nl"."status"=45 or "jobbug_nl"."status"=55);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Filter PO]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD DISTINCT [InvPONumber] AS [Filter PO]&lt;/P&gt;&lt;P&gt;RESIDENT Table_Temp&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp; [InvQtyOnStock] = 0 And [InvStatus] = 'Priced';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Table_Temp WHERE NOT EXISTS([Filter PO],[InvPONumber]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912642#M987084</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-23T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912643#M987085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appear to have made a typo and chosen a wrong field for the Filter PO Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will do some more testing but its looking good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 16:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912643#M987085</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-23T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912644#M987086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. Let me know how it goes and remember to drop the temp table at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 16:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912644#M987086</guid>
      <dc:creator />
      <dc:date>2015-07-23T16:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912645#M987089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked as wanted, marked as a correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 06:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912645#M987089</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-24T06:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912646#M987092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912646#M987092</guid>
      <dc:creator />
      <dc:date>2015-07-24T12:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912647#M987095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS - In future, if in doubt post you question in 'New to Qlikview', most people watch that one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912647#M987095</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-07-24T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912648#M987098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to the question, I thought it did exactly what i was after, however, it appears that it is excluding PO's where it meets the exact criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as there are many jobs per PO and if one of those PO's has a job row that does not meet the criteria, this row is excluded but the rest of the record is still shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 14:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912648#M987098</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-24T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912649#M987100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you give me an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912649#M987100</guid>
      <dc:creator />
      <dc:date>2015-07-24T15:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912650#M987101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the image attached you will see that there are both Completed and Price cfm jobs showing, these are status 55 and status 45. When running the following code the filter po field should not show 11043 as not all the lines show Completed, however it does show 11403 as a selectable PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_Temp:&lt;/P&gt;&lt;P&gt;SQl&amp;nbsp; SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"sendac_nl"."name" as 'InvName',&lt;/P&gt;&lt;P&gt;"lothed_nl"."ponum" as 'InvPONumber',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty" as 'InvRecQty',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."soldqty" as 'InvSoldQty',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."countsize" as 'InvCountSize',&lt;/P&gt;&lt;P&gt;"jobbug_nl"."status" as 'InvStatus',&lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" as 'InvDesc',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."jobnum" as 'InvJobNum',&lt;/P&gt;&lt;P&gt;"orddet_nl"."status" as 'InvInvoiceStatus',&lt;/P&gt;&lt;P&gt;"orderstatusdesc_nl"."descr" as 'InvInvoiceDesc',&lt;/P&gt;&lt;P&gt;"ordhed_nl"."delcustcode" as 'InvDeliveryCustomer',&lt;/P&gt;&lt;P&gt;"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty" as 'InvQtyOnStock',&lt;/P&gt;&lt;P&gt;"jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") as 'test'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp; ("Pr2Company1"."dbo"."ordhed_nl" "ordhed_nl"&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN ("Pr2Company1"."dbo"."orderstatusdesc_nl" "orderstatusdesc_nl"&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN "Pr2Company1"."dbo"."orddet_nl" "orddet_nl" ON "orderstatusdesc_nl"."status"="orddet_nl"."status") ON "ordhed_nl"."ordhedid"="orddet_nl"."ordhedid")&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN (("Pr2Company1"."dbo"."jobstatus_nl" "jobstatus_nl"&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN "Pr2Company1"."dbo"."jobbug_nl" "jobbug_nl" ON "jobstatus_nl"."status"="jobbug_nl"."status")&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN (("Pr2Company1"."dbo"."poffil_nl" "poffil_nl"&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN ("Pr2Company1"."dbo"."sendac_nl" "sendac_nl"&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN "Pr2Company1"."dbo"."lothed_nl" "lothed_nl" ON "sendac_nl"."supcode"="lothed_nl"."supcode") ON "poffil_nl"."ponum"="lothed_nl"."ponum")&lt;/P&gt;&lt;P&gt;RIGHT OUTER JOIN "Pr2Company1"."dbo"."lotdet_nl" "lotdet_nl" ON "lothed_nl"."lotnum"="lotdet_nl"."lotnum") ON "jobbug_nl"."jobnum"="lotdet_nl"."jobnum") ON "orddet_nl"."lotdetid"="lotdet_nl"."lotdetid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp; "lothed_nl"."ponum"&amp;gt;10000 AND "lotdet_nl"."uomrecqty"&amp;lt;&amp;gt;0 and "lothed_nl"."type"&amp;lt;&amp;gt;'9';// and "jobstatus_nl"."descr" + ' ' + convert(varchar,"lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty") = 'qtys cfm 0.000000';// and "lotdet_nl"."uomrecqty"-"lotdet_nl"."soldqty"=0; // and ("jobbug_nl"."status"=45 or "jobbug_nl"."status"=55);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Filter PO]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD DISTINCT [InvPONumber] AS [Filter PO]&lt;/P&gt;&lt;P&gt;RESIDENT Table_Temp&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp; [InvQtyOnStock] = 0 And [InvStatus] = '55';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Table_Temp WHERE NOT EXISTS([Filter PO],[InvPONumber]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94039" alt="qv2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94039_qv2.JPG" style="height: 130px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;It does work when all of the lines are the same status or no status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912650#M987101</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-27T06:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912651#M987102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two examples with data showing. The first one shows the result after using the code above and the second shows the raw data. AS you can see it has simply removed the rows which do not comply with the query, rather than removing the whole of the PO.&lt;IMG alt="qv3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94055_qv3.JPG" style="height: 211px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv4.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94056_qv4.JPG" style="height: 278px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your massive help so far, just really hope what i am trying to do is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 11:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912651#M987102</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-27T11:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912652#M987103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if what i am trying to achieve is possible. thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912652#M987103</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-28T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912653#M987104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please answer few of the Question below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.you want to eliminate the duplicate PO data?&lt;/P&gt;&lt;P&gt;2.You want to eliminate the data of PO with conditions &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where ‘Qty on Stock’ = 0 and job status = ‘Priced cfm’??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.you want to do it in QV or SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to do in SQL then your can do a group by on the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;‘Qty on Stock and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;status &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912653#M987104</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-07-28T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912654#M987105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to exclude all records with the same PO number in the event that any one of the records not equal my criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above, there are a number of entries for PO 11412 and if one of those entries has a job status &amp;lt;&amp;gt; Price cfm then i do not want it to return any record for that PO number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what would be better, QV or SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912654#M987105</guid>
      <dc:creator>alecpickles</dc:creator>
      <dc:date>2015-07-28T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering of Records</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912655#M987106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So any PO that contains on one of his lines somewhere quantity on stock = 0 and job status = priced cfm needs to go?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is possible, but I'd work with an intermediate mapping table to identify the concerned PO-numbers first and then remove them with a where clause.&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;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-of-Records/m-p/912655#M987106</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2015-07-28T13:08:58Z</dc:date>
    </item>
  </channel>
</rss>

