<?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 How to get multiple values between 'pipe' from a substring in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84251#M610374</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;&lt;/P&gt;&lt;P&gt;could anyone help me in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to get multiple values from a .dat file in which any record has a filed containing 4 values (sub-fields), separated by a pipe ('|'); any value can have 1, 2 or more characters; for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record 1, field 1&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxxx&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;0&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;12&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;2|453&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;&lt;/STRONG&gt;xxxxxxx&lt;/P&gt;&lt;P&gt;record 2, field 1&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxxx&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;23&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;401&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;2&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;121&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;&lt;/STRONG&gt;xxxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any value between pipes have to become a field in Qlik (value1, value2, value3, value4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the best way to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Feb 2018 10:01:03 GMT</pubDate>
    <dc:creator>arnould_it</dc:creator>
    <dc:date>2018-02-11T10:01:03Z</dc:date>
    <item>
      <title>How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84251#M610374</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;&lt;/P&gt;&lt;P&gt;could anyone help me in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to get multiple values from a .dat file in which any record has a filed containing 4 values (sub-fields), separated by a pipe ('|'); any value can have 1, 2 or more characters; for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record 1, field 1&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxxx&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;0&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;12&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;2|453&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;&lt;/STRONG&gt;xxxxxxx&lt;/P&gt;&lt;P&gt;record 2, field 1&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxxx&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;23&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;401&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;2&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;121&lt;SPAN style="font-size: 12pt;"&gt;|&lt;/SPAN&gt;&lt;/STRONG&gt;xxxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any value between pipes have to become a field in Qlik (value1, value2, value3, value4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the best way to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 10:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84251#M610374</guid>
      <dc:creator>arnould_it</dc:creator>
      <dc:date>2018-02-11T10:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84252#M610375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you want to split? Do you have output for given data? You mean this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1, Value1, Value2, Value3, Value4, Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xxxxx, 0, 12, 2, 453, xxxxxxx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xxxxx, 23, 401, 2, 121, xxxxxx&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 12:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84252#M610375</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-11T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84253#M610376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it's correct:&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;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Field1, Value1, Value2, Value3, Value4, Field2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;xxxxx, 0, 12, 2, 453, xxxxxxx&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;xxxxx, 23, 401, 2, 121, xxxxxx&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;--&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So, which is the best way to exactly capture values having different length (text format) between pipes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 17:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84253#M610376</guid>
      <dc:creator>arnould_it</dc:creator>
      <dc:date>2018-02-11T17:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84254#M610378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I suggest you to take a look at SubField function.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;SubField(&lt;/SPAN&gt;text, delimiter[, field_no ]&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;If you know position of each substring, you can sinply:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;[tableName]:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt; load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField([yourFieldName], '|', 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Field 1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;SPAN class="statement"&gt;SubField([yourFieldName], '|', 2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Field 2]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&lt;SPAN class="statement"&gt;&lt;/SPAN&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;Michał&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 18:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84254#M610378</guid>
      <dc:creator>michal__</dc:creator>
      <dc:date>2018-02-11T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84255#M610379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;SubField(Input,'|',2) as Field1,&lt;/P&gt;&lt;P&gt;SubField(Input,'|',3) as Field2,&lt;/P&gt;&lt;P&gt;SubField(Input,'|',4) as Field3,&lt;/P&gt;&lt;P&gt;SubField(Input,'|',5) as Field4&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Input&lt;/P&gt;&lt;P&gt;xxxxx|0|12|2|453|xxxxxxx&lt;/P&gt;&lt;P&gt;xxxxx|23|401|2|121|xxxxxx ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 19:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84255#M610379</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-11T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get multiple values between 'pipe' from a substring</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84256#M610381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 21:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-multiple-values-between-pipe-from-a-substring/m-p/84256#M610381</guid>
      <dc:creator>arnould_it</dc:creator>
      <dc:date>2018-02-11T21:05:18Z</dc:date>
    </item>
  </channel>
</rss>

