<?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 Split data in SQL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267480#M1203978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ann,&lt;/P&gt;&lt;P&gt;You can use the subfield() function for that. Please see the info from the F1-help:&lt;/P&gt;&lt;H4&gt;subfield&lt;A id="subfield" name="subfield"&gt;&lt;/A&gt;(s, 'delimiter' [ , index ] )&lt;/H4&gt;&lt;P&gt;In its three-parameter version, this script function returns a given substring from a larger string s with delimiter 'delimiter'. index is an optional integer denoting which of the substrings should be returned. If index is omitted when subfield is used in a field expression in a load statement, the subfield function will cause the load statement to automatically generate one full record of input data for each substring that can be found in 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 from a larger string s with the delimiter 'delimiter'. If several subfield functions are used in the same load statement, the Cartesian product of all combinations will be generated.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;(For three parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="margin-top:14pt;margin-left:40px;width:580px;border-spacing:0px;" width="580"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,2)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns 'cde' if S is 'abc;cde;efg'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,1)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns NULL if S is an empty string&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,1)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns an empty string if S is ';'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jul 2010 06:06:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-23T06:06:00Z</dc:date>
    <item>
      <title>Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267479#M1203977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am Ann. I Started Learning to use qlikview.&lt;/P&gt;&lt;P&gt;I have asked for the function Split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1985_sourceID:1985" /&gt;&lt;/P&gt;&lt;P&gt;Can see that the data are separated " ; " I want to extract data from each row below.&lt;/P&gt;&lt;P&gt;Result :&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1986_sourceID:1986" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;this SQl :&lt;/P&gt;&lt;P&gt;MMUsers:&lt;BR /&gt;&lt;BR /&gt;LOAD "MM_Approver",&lt;BR /&gt; "MM_Company",&lt;BR /&gt; "MM_IDUser",&lt;BR /&gt; "MM_User";&lt;BR /&gt;SQL SELECT "MM_Approver",&lt;BR /&gt; "MM_Company",&lt;BR /&gt; "MM_IDUser",&lt;BR /&gt; "MM_User"&lt;/P&gt;&lt;P&gt;Please help me to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 05:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267479#M1203977</guid>
      <dc:creator />
      <dc:date>2010-07-23T05:36:07Z</dc:date>
    </item>
    <item>
      <title>Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267480#M1203978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ann,&lt;/P&gt;&lt;P&gt;You can use the subfield() function for that. Please see the info from the F1-help:&lt;/P&gt;&lt;H4&gt;subfield&lt;A id="subfield" name="subfield"&gt;&lt;/A&gt;(s, 'delimiter' [ , index ] )&lt;/H4&gt;&lt;P&gt;In its three-parameter version, this script function returns a given substring from a larger string s with delimiter 'delimiter'. index is an optional integer denoting which of the substrings should be returned. If index is omitted when subfield is used in a field expression in a load statement, the subfield function will cause the load statement to automatically generate one full record of input data for each substring that can be found in 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 from a larger string s with the delimiter 'delimiter'. If several subfield functions are used in the same load statement, the Cartesian product of all combinations will be generated.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;(For three parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="margin-top:14pt;margin-left:40px;width:580px;border-spacing:0px;" width="580"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,2)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns 'cde' if S is 'abc;cde;efg'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,1)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns NULL if S is an empty string&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width:29%;x-cell-content-align:TOP;padding:7px;" valign="top" width="29%"&gt;&lt;P style="margin-bottom:0px;"&gt;subfield(S, ';' ,1)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width:71%;x-cell-content-align:TOP;padding:7px;" valign="top" width="71%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns an empty string if S is ';'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 06:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267480#M1203978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-23T06:06:00Z</dc:date>
    </item>
    <item>
      <title>Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267481#M1203979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, thank you I will do as you suggested. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 07:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267481#M1203979</guid>
      <dc:creator />
      <dc:date>2010-07-23T07:47:27Z</dc:date>
    </item>
    <item>
      <title>Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267482#M1203980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kallaya,&lt;/P&gt;&lt;P&gt;Qlikview have inbuilt feature to load data which is seperated by any character and you want upload it in qlikview.&lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;1) Go to Script&lt;/P&gt;&lt;P&gt;2) Clik On Data Tab&lt;/P&gt;&lt;P&gt;3) Clik on Filed Data Button&lt;/P&gt;&lt;P&gt;4) You can select you text file and delimited it by ;&lt;/P&gt;&lt;P&gt;It Work fine in your case.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil Jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 08:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267482#M1203980</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-07-23T08:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267483#M1203981</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;Is there any way to change the default value separator from ',' in Current Selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 04:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267483#M1203981</guid>
      <dc:creator />
      <dc:date>2013-02-20T04:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267484#M1203982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can use replace function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 05:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267484#M1203982</guid>
      <dc:creator>khadeer</dc:creator>
      <dc:date>2013-02-20T05:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267485#M1203983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khadeer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;But, I am obtaining the data via QMSAPI using GetCurrentSelections()..this concatenates the values using ','.So, if the data itself has ',', then splitting the data becomes a problem. How can I use replace function via QMSAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 05:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267485#M1203983</guid>
      <dc:creator />
      <dc:date>2013-02-20T05:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Split data in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267486#M1203984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to find a solution to the problem mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/316500#316500" title="http://community.qlik.com/message/316500#316500"&gt;http://community.qlik.com/message/316500#316500&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 08:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-in-SQL/m-p/267486#M1203984</guid>
      <dc:creator />
      <dc:date>2013-02-28T08:43:26Z</dc:date>
    </item>
  </channel>
</rss>

