<?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 Subfield question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342910#M126641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why it is not working 100%? Could you give some sample data and what you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 15:14:14 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-04-09T15:14:14Z</dc:date>
    <item>
      <title>Subfield question</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342909#M126640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our manufacturing system under sales orders it records the customer sales reps in a single field separated by ~. &lt;/P&gt;&lt;P&gt;We want to add a selection so that the user can select a single sales rep and return the orders that they are on. I have tried using subfield(salesreplist,'~') but this is not working 100%. Does anyone know the best way to split this field into a single list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342909#M126640</guid>
      <dc:creator />
      <dc:date>2012-04-09T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Subfield question</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342910#M126641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why it is not working 100%? Could you give some sample data and what you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342910#M126641</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-09T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield question</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342911#M126642</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;If you mean you are using it as an expression into a listbox, I'd rather create the field in the script, even using SubField() with a third parameter as the value in the script you would like to extract, i. e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=SubField('John~Peter~Mike', '~', 3)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should return "Mike"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342911#M126642</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-04-09T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield question</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342912#M126643</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 would create a table in the load script containing the sales order # and rep name, using subfield in the way you attempted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD salesorderID as [Order ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SubField(salesreplist, '~') As [Sales Rep]&lt;/P&gt;&lt;P&gt;Resident SALESORDER;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Sales Rep is linked to the sales orders for that rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342912#M126643</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-09T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Subfield question</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342913#M126644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that is was just having issues when I was calculating it in a list box. I moved the expression to the script and it seems to work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was that it was returning orders without the currernt selection and other things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-question/m-p/342913#M126644</guid>
      <dc:creator />
      <dc:date>2012-04-09T15:36:19Z</dc:date>
    </item>
  </channel>
</rss>

