<?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: Remove Numbers in Script Based on Conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91205#M605439</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;&lt;SPAN style="font-size: 10pt;"&gt;try this as a WHERE clause..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where NOT ( (&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;PopCnd='T' and len(trim(PartStatusTwo))=0) or (PopCnd&amp;lt;&amp;gt;'P'&amp;nbsp; and len(trim(PartStatusTwo))=0) )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 14:09:02 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2018-07-16T14:09:02Z</dc:date>
    <item>
      <title>Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91204#M605438</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;I want to remove all part numbers that are a letter "T" or "P" under "PopCnd" that have no description under "PartStatusTwo." I want to do this in the script so they just don't show up at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible I would also want to do this for all part numbers that have no description under "PartStatusTwo" and are a "0" or "1" under "LC."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried flagging these numbers as "REMOVE" in my expression to let myself know to take these out after exporting to excel, but I'm afraid I'm creating the world's largest IF statement and I know there's got to be a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91204#M605438</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-16T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91205#M605439</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;&lt;SPAN style="font-size: 10pt;"&gt;try this as a WHERE clause..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where NOT ( (&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;PopCnd='T' and len(trim(PartStatusTwo))=0) or (PopCnd&amp;lt;&amp;gt;'P'&amp;nbsp; and len(trim(PartStatusTwo))=0) )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91205#M605439</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-16T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91206#M605440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It keeps saying that "PartStatusTwo" can't be found......could it be because PopCnd and PartStatusTwo come from 2 separate files in the load? Or does that not make a difference? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91206#M605440</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-16T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91207#M605441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it makes a difference if you make some test in a WHERE if the column is not loaded yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can finish to load all the fields you need and make an extra load (using resident) on which you put the WHERE described above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 15:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91207#M605441</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-16T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91208#M605442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Natalie, if they come from different files you have to join in the same table or use a mapping or exists(), ie:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;// Load %Cram with description in PartStatusTwo&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;chkPartStatusTwo:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD %Cram as chkPartStatusTwo&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PartStatusTwoTableName &lt;SPAN style="font-size: 13.3333px;"&gt;// &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; PartStatusTwo should be loaded before this table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where Len(Trim(PartStatusTwo))&amp;gt;0; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TableWhitPopCnd:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where not Match(PopCnd, 'T', 'P') // Load all rows with other types&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or Exists('&lt;SPAN style="font-size: 13.3333px;"&gt;chkPartStatusTwo&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;', %Cram); // and the T,P with PartStatusTwo Lenght&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP table &lt;SPAN style="font-size: 13.3333px;"&gt;chkPartStatusTwo;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 16:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91208#M605442</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-07-16T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91209#M605443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK thanks so much guys, I'm super new to this and kind of teaching myself so not going to make you wait while I mess with this! But it sounds like this should work. Going to mark Youssef as right, since that was the initial question. Thanks again! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 16:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91209#M605443</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-16T16:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91210#M605444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌you’re welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 20:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91210#M605444</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-16T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91211#M605445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing something wrong because it keeps saying my fields can't be found when trying to load. Will one of you please help me out possibly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; I'm not even sure if I put everything in the right place but there's no error in the script anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208097_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 12:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91211#M605445</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-17T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91212#M605446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because you're making the test on the Alias field name, you should make it on the original field name which is loaded during that load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;[PART STATUS II]&lt;/STRONG&gt; on the WHERE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91212#M605446</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-17T13:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91213#M605447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still says the field can't be found for some reason, thanks though. I tried this yesterday too. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91213#M605447</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-17T13:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91214#M605448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake, I didn't pay enough attention to your code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're making a resident load from ths PartStatusTwo table, the field coming from this table is already named PartStatustwo.. so you shoud directly load Partstatustwo and use it on the where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it clear for you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91214#M605448</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-17T13:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91215#M605449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought it was but could I possibly see an example? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91215#M605449</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-17T14:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91216#M605450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the table rangemonths, I already changed the name of the field Months to MONTHS, when I use the old name using the Resident, it will not find it, because I should call it with the last name used via the alias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91216#M605450</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-17T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91217#M605451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK got it, thanks I appreciate it! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91217#M605451</guid>
      <dc:creator>oliveton</dc:creator>
      <dc:date>2018-07-17T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Numbers in Script Based on Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91218#M605452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌you’re 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>Tue, 17 Jul 2018 18:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Numbers-in-Script-Based-on-Conditions/m-p/91218#M605452</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-17T18:53:50Z</dc:date>
    </item>
  </channel>
</rss>

