<?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: Substring function in Qlikview ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924357#M948052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like subfield for this too.&amp;nbsp; If you are familar with mid() from other languages , this may look more familiar to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mid( FieldName, index(FieldName,'||') + 2 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. it finds the postion of '||' , adds 2 to the character position,&amp;nbsp; and takes everything to the right of that position&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2015 16:39:41 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-12-14T16:39:41Z</dc:date>
    <item>
      <title>Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924353#M948048</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;We are concatenating two fields and data after concatenation is like below using Pipe delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brideport||CT&lt;/P&gt;&lt;P&gt;Boston||MA&lt;/P&gt;&lt;P&gt;Albany||NY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we would need to extract City and State from this above data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we Extract City which is all the words before Pipe and&lt;/P&gt;&lt;P&gt;Extract State which is everything after Pipe ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do we have Substring Function or similar function like Substring in QV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924353#M948048</guid>
      <dc:creator />
      <dc:date>2015-12-14T15:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924354#M948049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SubField Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For City -&amp;gt; &lt;STRONG&gt;SubField(FieldName, '|', 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For State -&amp;gt; &lt;STRONG&gt;SubField(FieldName, '|', 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924354#M948049</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-14T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924355#M948050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please explain this function and it's parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is 1 and 2 in the example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it using single pipe - | instead of || ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924355#M948050</guid>
      <dc:creator />
      <dc:date>2015-12-14T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924356#M948051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look on QlikView's help page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/SubField.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/SubField.htm"&gt;QlikView ‒ SubField - script and chart function&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you are right, it should use || (douple pipe). I did not see two pipes initially:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For City -&amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SubField(FieldName, '||', 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For State -&amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SubField(FieldName, '||', 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924356#M948051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-14T16:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924357#M948052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like subfield for this too.&amp;nbsp; If you are familar with mid() from other languages , this may look more familiar to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mid( FieldName, index(FieldName,'||') + 2 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. it finds the postion of '||' , adds 2 to the character position,&amp;nbsp; and takes everything to the right of that position&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924357#M948052</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-12-14T16:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924358#M948053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Haileydesai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find attached file, I'm sure you are looking for that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 03:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924358#M948053</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-12-15T03:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924359#M948054</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;You can use subfield like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14501520877376751 jive_text_macro" jivemacro_uid="_14501520877376751" modifiedtitle="true"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Subfield(Field,'||',1) as City,&lt;/P&gt;
&lt;P&gt;Subfield(Field,'||',2) as Code&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Field&lt;/P&gt;
&lt;P&gt;Brideport||CT&lt;/P&gt;
&lt;P&gt;Boston||MA&lt;/P&gt;
&lt;P&gt;Albany||NY&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out put will be like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Subfield.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109016_Subfield.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HirisH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 04:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924359#M948054</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-15T04:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substring function in Qlikview ?</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924360#M948055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1300"&gt;&lt;/A&gt;&lt;A class="Bold" name="subfield"&gt;subfield&lt;/A&gt;&lt;SPAN class="Bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s, 'delimiter' [ , index ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;In its three-parameter version, this script function returns a given substring from a larger string &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt; with delimiter &lt;SPAN class="Italic"&gt;'delimiter'&lt;/SPAN&gt;. &lt;SPAN class="Italic"&gt;index&lt;/SPAN&gt; is an optional integer denoting which of the substrings should be returned. If &lt;SPAN class="Italic"&gt;index&lt;/SPAN&gt; is omitted when&lt;SPAN style="font-weight: bold;"&gt; subfield&lt;/SPAN&gt; is used in a field expression in a &lt;SPAN style="font-weight: bold;"&gt;load&lt;/SPAN&gt; statement, the &lt;SPAN style="font-weight: bold;"&gt;subfield&lt;/SPAN&gt; function will cause the &lt;SPAN style="font-weight: bold;"&gt;load&lt;/SPAN&gt; statement to automatically generate one full record of input data for each substring that can be found in &lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;In its two-parameter version, the &lt;SPAN style="font-weight: bold;"&gt;subfield&lt;/SPAN&gt; function generates one record for each substring that can be taken from a larger string &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt; with the delimiter &lt;SPAN class="Italic"&gt;'delimiter'&lt;/SPAN&gt;. If several &lt;SPAN style="font-weight: bold;"&gt;subfield&lt;/SPAN&gt; functions are used in the same &lt;SPAN style="font-weight: bold;"&gt;load&lt;/SPAN&gt; statement, the Cartesian product of all combinations will be generated. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;(For three parameters)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;subfield(S, ';' ,2)&lt;/SPAN&gt; returns '&lt;SPAN class="Italic"&gt;cde&lt;/SPAN&gt;' if S is '&lt;SPAN class="Italic"&gt;abc&lt;/SPAN&gt;;&lt;SPAN class="Italic"&gt;cde&lt;/SPAN&gt;;&lt;SPAN class="Italic"&gt;efg&lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;subfield(S, ';' ,1)&lt;/SPAN&gt; returns NULL if S is an empty string&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;subfield(S, ';' ,1)&lt;/SPAN&gt; returns an empty string if S is ';'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 05:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-function-in-Qlikview/m-p/924360#M948055</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-12-15T05:30:23Z</dc:date>
    </item>
  </channel>
</rss>

