<?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 Selecting text from a field if certain phrase is present in field. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908184#M74853</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm loading a column that contains fields with quite an extensive amount of text.&lt;/P&gt;
&lt;P&gt;I only want to show this field if it cointains the word &lt;EM&gt;memory&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Example (this is a single field, no separte columns, as it's part of an email):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;memory: 4079640&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_type: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_firmware: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_dateofmanufacture: xxxxxxxxx&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;system serialnumber: xxxxxxxxx&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_serialnumber: xxxxxxxx&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then I want to select:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;memory: 4079640&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_type: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_firmware: Onbekend&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;and only display these three lines. Can anybody&lt;/P&gt;
&lt;P&gt;help with the expression for this?&lt;/P&gt;
&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joris&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 13:20:06 GMT</pubDate>
    <dc:creator>JorisV</dc:creator>
    <dc:date>2022-03-22T13:20:06Z</dc:date>
    <item>
      <title>Selecting text from a field if certain phrase is present in field.</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908184#M74853</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm loading a column that contains fields with quite an extensive amount of text.&lt;/P&gt;
&lt;P&gt;I only want to show this field if it cointains the word &lt;EM&gt;memory&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Example (this is a single field, no separte columns, as it's part of an email):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;memory: 4079640&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_type: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_firmware: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_dateofmanufacture: xxxxxxxxx&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;system serialnumber: xxxxxxxxx&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_serialnumber: xxxxxxxx&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then I want to select:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;memory: 4079640&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_type: Onbekend&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scanner_firmware: Onbekend&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;and only display these three lines. Can anybody&lt;/P&gt;
&lt;P&gt;help with the expression for this?&lt;/P&gt;
&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joris&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908184#M74853</guid>
      <dc:creator>JorisV</dc:creator>
      <dc:date>2022-03-22T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting text from a field if certain phrase is present in field.</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908194#M74855</link>
      <description>&lt;P&gt;If it's in the script and you want to load records where "Field" contains 'memory' I would use&lt;/P&gt;&lt;P&gt;Load ... From ... Where Index(Lower(Field),'memory') ;&lt;/P&gt;&lt;P&gt;But what is the logic around the other two records? Is it the two lines that come right after this row? If so, you could use&lt;/P&gt;&lt;P&gt;Load * Where AcceptedRow or Peek(AcceptedRow) or Peek(AcceptedRow,-2);&lt;BR /&gt;Load ... , Index(Lower(Field),'memory') as AcceptedRow From ... ;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908194#M74855</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-03-22T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting text from a field if certain phrase is present in field.</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908196#M74856</link>
      <description>&lt;P&gt;The first aspect doesn't seem problematic - seems like you need to use WildMatch(YourField,'*Memory*').&lt;/P&gt;
&lt;P&gt;As for the second, without knowing anything about why you're keeping these specific lines, or what the structure of the contents are, it's not really possible to suggest the correct formula. Based strictly on your single example, you could perhaps use:&lt;/P&gt;
&lt;P&gt;'Memory: '&amp;nbsp; &amp;amp; TextBetween(YourField,'Memory','&lt;EM&gt;scanner_dateofmanufacture&lt;/EM&gt;')&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-text-from-a-field-if-certain-phrase-is-present-in/m-p/1908196#M74856</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-22T13:53:49Z</dc:date>
    </item>
  </channel>
</rss>

