<?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: Filter line that doesn't have Pair line. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1957393#M78937</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;Thank you so much for the explanation Rob.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 02:21:41 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2022-07-19T02:21:41Z</dc:date>
    <item>
      <title>Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956465#M78851</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have data set where each line has par value with uniq code and the step. I mean, there different steps for each Item, and I would like to filter only the line that doesn't have Pair line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.4pt; width: 48pt;"&gt;ITEM&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;CHECK&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" style="height: 14.4pt;"&gt;ABC&lt;/TD&gt;
&lt;TD&gt;Pre&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" style="height: 14.4pt;"&gt;ABC&lt;/TD&gt;
&lt;TD&gt;Cleared&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" style="height: 14.4pt;"&gt;DEF&lt;/TD&gt;
&lt;TD&gt;Pre&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" style="height: 14.4pt;"&gt;DEF&lt;/TD&gt;
&lt;TD&gt;Cleared&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" style="height: 14.4pt;"&gt;XYZ&lt;/TD&gt;
&lt;TD&gt;Pre&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the above Data ITEM ABC and DEF has 2 steps that are cleared XYZ that is not cleared yet. I would like to filter out all the Cleared items. That mean I need only the one Item from above is XYZ that is pending to be cleared.&lt;/P&gt;
&lt;P&gt;Currently I am achieving that by below script;&lt;/P&gt;
&lt;P&gt;[CLEAR]:&lt;BR /&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;ITEM as CLRITEM&lt;BR /&gt;&lt;BR /&gt;FROM&amp;nbsp;&amp;nbsp;Sample where CHECK='Cleared';&lt;/P&gt;
&lt;P&gt;[OPEN]:&lt;/P&gt;
&lt;P&gt;Load Distinct&lt;/P&gt;
&lt;P&gt;ITEM&lt;BR /&gt;&lt;BR /&gt;FROM Sample&amp;nbsp;where CHECK='Pre' and Not Exists(CLRITEM, ITEM) ;&lt;/P&gt;
&lt;P&gt;Drop Table [CLEAR];&lt;/P&gt;
&lt;P&gt;Is there any way without loading twice or any short cut to achieve this?&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956465#M78851</guid>
      <dc:creator>RC_121985</dc:creator>
      <dc:date>2022-07-15T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956547#M78857</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83295"&gt;@RC_121985&lt;/a&gt;&amp;nbsp; Assuming there is always 2 steps and Cleared is always after Pre, you can use the below Idea.&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;ITEM, CHECK&lt;BR /&gt;ABC, Pre&lt;BR /&gt;ABC, Cleared&lt;BR /&gt;DEF, Pre&lt;BR /&gt;DEF, Cleared&lt;BR /&gt;XYZ, Pre&lt;BR /&gt;](delimiter is ',');&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load ITEM, [Count of Item]&lt;BR /&gt;where [Count of Item]='1';&lt;/P&gt;
&lt;P&gt;Load Count(ITEM) as [Count of Item],&lt;BR /&gt;ITEM&lt;BR /&gt;//CHECK&lt;BR /&gt;REsident Temp&lt;BR /&gt;Group by ITEM;&lt;/P&gt;
&lt;P&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;
&lt;P&gt;Let me know if it helps you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 14:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956547#M78857</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-15T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956593#M78870</link>
      <description>&lt;P&gt;Here's a similar approach counting CHECK = 'Cleared' rather the the total line count:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;ITEM, CHECK&lt;BR /&gt;ABC, Pre&lt;BR /&gt;ABC, Cleared&lt;BR /&gt;DEF, Pre&lt;BR /&gt;DEF, Cleared&lt;BR /&gt;XYZ, Pre&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Inner Join(Data)&lt;BR /&gt;LOAD ITEM&lt;BR /&gt;Where Count = 0&lt;BR /&gt;;&lt;BR /&gt;LOAD ITEM,&lt;BR /&gt;Sum(CHECK = 'Cleared') as Count&lt;BR /&gt;Resident Data&lt;BR /&gt;Group By ITEM&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956593#M78870</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-07-15T16:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956711#M78889</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp; Thanks much for another approach. Just curious to know what would this particular statement do&amp;nbsp;&lt;SPAN&gt;Sum(CHECK = 'Cleared') as Count?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 02:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1956711#M78889</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-16T02:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1957170#M78927</link>
      <description>&lt;P&gt;That clause would generate a field named "Count" that contains a count of the times when the CHECK field = 'Cleared'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CHECK = 'Cleared' // -1 if true, 0 if false&lt;/P&gt;
&lt;P&gt;Sum(CHECK = 'Cleared') // Will sum up all the -1 and 0 results&lt;/P&gt;
&lt;P&gt;The preceding load would then select only rows (ITEMs) where Count = 0.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1957170#M78927</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-07-18T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1957393#M78937</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;Thank you so much for the explanation Rob.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 02:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1957393#M78937</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-19T02:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1958680#M79028</link>
      <description>&lt;P&gt;Not always 2 Steps, I have Multiple check for same Item.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 07:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1958680#M79028</guid>
      <dc:creator>RC_121985</dc:creator>
      <dc:date>2022-07-21T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter line that doesn't have Pair line.</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1958754#M79034</link>
      <description>&lt;P&gt;Thank you Rob, It worked very well.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 09:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-line-that-doesn-t-have-Pair-line/m-p/1958754#M79034</guid>
      <dc:creator>RC_121985</dc:creator>
      <dc:date>2022-07-21T09:05:49Z</dc:date>
    </item>
  </channel>
</rss>

