<?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 Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538288#M688703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Subfield('servername.na.corp.companyname', '.',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Nov 2013 13:17:49 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2013-11-18T13:17:49Z</dc:date>
    <item>
      <title>String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538287#M688702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a string function to convert my string of type &lt;EM&gt;servername.na.corp.companyname to servername. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have to delete the .na.corp.companyname part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538287#M688702</guid>
      <dc:creator />
      <dc:date>2013-11-18T13:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538288#M688703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Subfield('servername.na.corp.companyname', '.',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538288#M688703</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-11-18T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538289#M688704</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 think subfield can do that job (but there will be other ways as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(s, 'delimiter' [ , index ] )&lt;/P&gt;&lt;P&gt;In its three-parameter version, this script function returns a given substring from a larger string s with delimiter&lt;/P&gt;&lt;P&gt;'delimiter'. index is an optional integer denoting which of the substrings should be returned. If index is&lt;/P&gt;&lt;P&gt;omitted when subfield is used in a field expression in a load statement, the subfield function will cause the&lt;/P&gt;&lt;P&gt;load statement to automatically generate one full record of input data for each substring that can be found in&lt;/P&gt;&lt;P&gt;s.&lt;/P&gt;&lt;P&gt;In its two-parameter version, the subfield function generates one record for each substring that can be taken&lt;/P&gt;&lt;P&gt;from a larger string s with the delimiter 'delimiter'. If several subfield functions are used in the same load&lt;/P&gt;&lt;P&gt;statement, the Cartesian product of all combinations will be generated.&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,2) returns 'cde' if S is 'abc;cde;efg'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538289#M688704</guid>
      <dc:creator />
      <dc:date>2013-11-18T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538290#M688706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your quick response... It worked really well expect for some servernames are in numeric form and I want them not to change For Example : 10.32.123.45 ... So by using the previous function it is returning me just 10 but that is not intended !!... How do I go around this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538290#M688706</guid>
      <dc:creator />
      <dc:date>2013-11-18T13:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538291#M688708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your quick response... It worked really well expect for some servernames are in numeric form and I want them not to change For Example : 10.32.123.45 ... So by using the previous function it is returning me just 10 but that is not intended !!... How do I go around this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538291#M688708</guid>
      <dc:creator />
      <dc:date>2013-11-18T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538292#M688710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Subfield('servername.na.corp.companyname', '.',1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;'.'&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Subfield('servername.na.corp.companyname', '.',2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;'.'&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Subfield('servername.na.corp.companyname', '.',3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;'.'&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Subfield('servername.na.corp.companyname', '.',4) as ServerName&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538292#M688710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-18T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538293#M688711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you expecting to return for a number? the whole number string if its a number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe try:&lt;/P&gt;&lt;P&gt;=if(isnum(Subfield(YOURFIELD, '.',1)), YOURFIELD, Subfield(YOURFIELD, '.',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;10.32.123.45&lt;/SPAN&gt;, this will just return &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;10.32.123.45. For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;servername.na.corp.companyname&lt;/SPAN&gt;, servername.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538293#M688711</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-11-18T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538294#M688712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;na.corp.companyname is always fixed?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If yes&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=left('10.32.123.45.na.corp.companyname',index('10.32.123.45.na.corp.companyname','.na.corp.companyname')-1)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538294#M688712</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-18T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538295#M688713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I read your post too fast, &lt;/P&gt;&lt;P&gt;If your string looks like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;10.32.123.45&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;.na.corp.companyname&lt;/SPAN&gt;, then try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(isnum(Subfield(YOURFIELD, '.',1)), left(YOURFIELD, 12), Subfield(YOURFIELD, '.',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes the same amount of characters for your numeric representation of your server, if your string is not always 12 characters long, this won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538295#M688713</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-11-18T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538296#M688714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked.. thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 14:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538296#M688714</guid>
      <dc:creator />
      <dc:date>2013-11-18T14:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: String Function</title>
      <link>https://community.qlik.com/t5/QlikView/String-Function/m-p/538297#M688715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(isnum(Subfield(YOURFIELD, '.',1)), trim(replace(YOURFIELD,'.sa.corp','')), Subfield(YOURFIELD, '.',1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This should work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 14:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Function/m-p/538297#M688715</guid>
      <dc:creator />
      <dc:date>2013-11-18T14:45:31Z</dc:date>
    </item>
  </channel>
</rss>

