<?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 Remove rows based on condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413381#M33320</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;I am trying to remove some rows from a phone log. The issue is that when they call from a phone central it logs both on main number and the actual number that that they are calling from. In this case I want to remove the rows with "+4767128800" but keep the row for 8834. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When these duplicates happen the RecNr, Time, LengthOfCall and Direction is always the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180539_Capture.JPG" style="height: 118px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 10:35:42 GMT</pubDate>
    <dc:creator>bwisealiahmad</dc:creator>
    <dc:date>2017-10-23T10:35:42Z</dc:date>
    <item>
      <title>Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413381#M33320</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;I am trying to remove some rows from a phone log. The issue is that when they call from a phone central it logs both on main number and the actual number that that they are calling from. In this case I want to remove the rows with "+4767128800" but keep the row for 8834. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When these duplicates happen the RecNr, Time, LengthOfCall and Direction is always the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180539_Capture.JPG" style="height: 118px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413381#M33320</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T10:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413382#M33321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a separate field that specifies which line was actually used to make the call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of you could just use&lt;/P&gt;&lt;P&gt;if(len(CallerNR)=4 , CallerNR)&amp;nbsp; and suppress null values on dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413382#M33321</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-10-23T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413383#M33322</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;No. That is the statement / condition I am trying to create so that I can flag them and remove them based on that condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would have worked, but the issue is that soemtimes they do use the longer number, but then there isn't any other rows with the exact same timing, lenght of call and receiving number. Their logging is creating&amp;nbsp; a duplicate row with the main number and outgoing number and I am trying to get rid of these duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413383#M33322</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413384#M33323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are looking to flag them in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 11:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413384#M33323</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-23T11:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413385#M33324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 11:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413385#M33324</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T11:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413386#M33325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CallerNr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LengthOfCall,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;RecNr = Previous(RecNr) and Time = Previous(Time) and &lt;SPAN style="font-size: 13.3333px;"&gt;LengthOfCall = &lt;/SPAN&gt;Previous(LengthOfCall) and Direction = Previous(Direction) and Len(CallerNr) &amp;gt; 4, 1, 0) as Flag&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident .....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Order By RecNr, Time, LengthOfCall, Direction, CallerNr;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 11:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413386#M33325</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-23T11:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413387#M33326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would have worked, but it looks like they don't always come in the same order. Long and then short or vice versa. This might be trickier than expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413387#M33326</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413388#M33327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a Order by statement.... even that won't put them together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413388#M33327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-23T12:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413389#M33328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No...still didn't turn out correct. Added an excel with some demo data. The red marked ones are the ones to be removed here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413389#M33328</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T12:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413390#M33329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean to remove them or flag them? I have flagged them using this (Done it in QlikView, but Qlik Sense should be the same)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD RecNo() as SNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; caller, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipient, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; starttime, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endtime, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; recordtype,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Len(PurgeChar(caller, '*')) as LenCaller&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[..\..\Downloads\exampledata.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(recipient = Previous(recipient) and starttime = Previous(starttime) and endtime = Previous(endtime) and duration = Previous(duration) and direction = Previous(direction) and LenCaller &amp;gt; 4, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By recipient, starttime, endtime, duration, direction, LenCaller;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180564_Capture.PNG" style="height: 461px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413390#M33329</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-23T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413391#M33330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ended up doing it a different way, but this also is a good solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks like always Sunny. Great reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Remove-rows-based-on-condition/m-p/1413391#M33330</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2017-10-23T20:33:05Z</dc:date>
    </item>
  </channel>
</rss>

