<?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: Check for particular value in a text field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535528#M746828</link>
    <description>&lt;P&gt;I would prefer using Index and Left functions. Take a look:&lt;/P&gt;&lt;PRE&gt;LOAD *
	,If(Index(text, '//'), Left(text, 3), null()) as Result
INLINE [
text
A01// External Sales Data
A13// TV Campaign
No Activity
];&lt;/PRE&gt;&lt;P&gt;This is your expected results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.jpg" style="width: 416px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4580i71844FCFE1527A36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.jpg" alt="Screenshot_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, I do advise you instead of Null() in If statement to you something that's easy to count and find.&lt;/P&gt;&lt;PRE&gt;If(Index(text, '//'), Left(text, 3), &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;':'&lt;/STRONG&gt;&lt;/FONT&gt;) as Result&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jan 2019 09:48:57 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2019-01-27T09:48:57Z</dc:date>
    <item>
      <title>Check for particular value in a text field.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535495#M746825</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following values in my data.&lt;/P&gt;&lt;P&gt;TEXT:&lt;/P&gt;&lt;P&gt;A01// External Sales Data&lt;/P&gt;&lt;P&gt;A13// TV Campaign&lt;/P&gt;&lt;P&gt;No Activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, i would like to check if the values in TEXT have // and then extract the first 3 values.&lt;/P&gt;&lt;P&gt;From the above mentioned data i would like to only display A01 and A13.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535495#M746825</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2024-11-16T21:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check for particular value in a text field.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535499#M746826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It works with :&lt;/P&gt;&lt;P&gt;TEXT:&lt;BR /&gt;load if (wildmatch(Field,'*//*'), SubField(Field,'//',1),'') as Field2&lt;BR /&gt;inline [&lt;BR /&gt;Field&lt;BR /&gt;A01// External Sales Data&lt;BR /&gt;A13// TV Campaign&lt;BR /&gt;No Activity];&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 22:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535499#M746826</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-01-26T22:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check for particular value in a text field.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535504#M746827</link>
      <description>Perhaps this?&lt;BR /&gt;If(istext(field), sibfield(field, '//', 1), field) as new</description>
      <pubDate>Sun, 27 Jan 2019 00:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535504#M746827</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-01-27T00:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check for particular value in a text field.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535528#M746828</link>
      <description>&lt;P&gt;I would prefer using Index and Left functions. Take a look:&lt;/P&gt;&lt;PRE&gt;LOAD *
	,If(Index(text, '//'), Left(text, 3), null()) as Result
INLINE [
text
A01// External Sales Data
A13// TV Campaign
No Activity
];&lt;/PRE&gt;&lt;P&gt;This is your expected results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.jpg" style="width: 416px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4580i71844FCFE1527A36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.jpg" alt="Screenshot_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, I do advise you instead of Null() in If statement to you something that's easy to count and find.&lt;/P&gt;&lt;PRE&gt;If(Index(text, '//'), Left(text, 3), &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;':'&lt;/STRONG&gt;&lt;/FONT&gt;) as Result&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 09:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1535528#M746828</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-27T09:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check for particular value in a text field.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1539148#M746829</link>
      <description>&lt;P&gt;Thanks all for you valubale suggestions.&lt;BR /&gt;For the same data i have found out that there is another Text field, now i have to check both the fields and then extract the Value if exists in either one of them.&lt;BR /&gt;&lt;BR /&gt;Please, check the attached excel.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Value.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5152iB28A9A37C63DA04F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Value.PNG" alt="Value.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;In the first Column Text2 is Empty, Second one has Text Empty, Third one has both the Values same and the Fourth one has no Values.&lt;BR /&gt;&lt;BR /&gt;TIA!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-particular-value-in-a-text-field/m-p/1539148#M746829</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2019-02-04T14:45:47Z</dc:date>
    </item>
  </channel>
</rss>

