<?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: String functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342162#M830053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter, it works perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 13:58:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-22T13:58:16Z</dc:date>
    <item>
      <title>String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342156#M830047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a certain data value of which I need to exclude a certain portion of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is as follows: 1 h 5 m 4 s 841 ms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to exclude the '841 ms' value from the string. What approach/functions can be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342156#M830047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342157#M830048</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;STRONG&gt;=Left('1 h 5 m 4 s 841 ms', Index('1 h 5 m 4 s 841 ms', ' ', -2)-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this using a field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Left(FieldName, Index(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt;, ' ', -2)-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342157#M830048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-22T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342158#M830049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way could be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left([theField], index([theField], 's'))&lt;/P&gt;&lt;P&gt;That expression finds the position of the first letter 's' in theField, and then returns only the leftmost part of the string up until (and including) that 's'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course in this approach there must be an 's' for seconds in your string, otherwise the function would find the 's' in 'ms' and you don't want that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342158#M830049</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-22T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342159#M830050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik, is there no way that I identify the keyword ms in the data and then exclude it. If the milli second value is not present, then there is no need for a substring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342159#M830050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342160#M830051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, use IF, somthing like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(index([theField], 'ms')&amp;gt;0, 'ms exists', 'ms doesn't exist')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace my string values with expression of your choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342160#M830051</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-22T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342161#M830052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (right(StringField, 2) = 'ms', left(StringField, index(StringField, ' ', -2)-1), StringField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342161#M830052</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-06-22T13:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: String functions</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342162#M830053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter, it works perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions/m-p/1342162#M830053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T13:58:16Z</dc:date>
    </item>
  </channel>
</rss>

