<?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: Is it possible to Use Subfield for more than one criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923982#M652567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use index function &lt;/P&gt;&lt;P&gt;if (index (field,'...')&amp;gt;0 ,subfield,field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hth&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 14:49:57 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-07-31T14:49:57Z</dc:date>
    <item>
      <title>Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923979#M652564</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 have a text table that is in one Cell on a spreadsheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our database we have a table that I want to split this data out into new fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following expression in the load script&amp;nbsp;&amp;nbsp;&amp;nbsp; Trim(SubField(mnoteshistory, '...'))&amp;nbsp; as Last_Contact &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that not all entries in the data is separated by a '...' how would I separate by '...' and 'none' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 288px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="400" width="288"&gt;30/03/2015 10:35:28 - Bob Jones&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 27/03/2015 16:52:34 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 27/03/2015 16:07:30 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 12/03/2015 15:43:47 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 12/03/2015 15:42:15 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 12/03/2015 15:35:25 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 12/03/2015 14:23:40 - credit control&lt;BR /&gt; ...&lt;BR /&gt; &lt;BR /&gt; 27/01/2015 15:48:14 - Sue Smith&lt;BR /&gt; none&lt;BR /&gt; &lt;BR /&gt; 12/01/2015 14:03:15 - Jill Dixon&lt;BR /&gt; none&lt;BR /&gt; &lt;BR /&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923979#M652564</guid>
      <dc:creator />
      <dc:date>2015-07-31T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923980#M652565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can maybe do a replace on the none text and just use the single subfield then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Trim(SubField(Replace(mnoteshistory,'none','...'), '...'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Joe&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923980#M652565</guid>
      <dc:creator />
      <dc:date>2015-07-31T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923981#M652566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another option that you have is to use a substring map, which might be better if you have more than just those two potential values for you subfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map:&lt;/P&gt;&lt;P&gt;Mapping Load * Inline [&lt;/P&gt;&lt;P&gt;old,new&lt;/P&gt;&lt;P&gt;none,&amp;lt;Sub&amp;gt;&lt;/P&gt;&lt;P&gt;...,&amp;lt;Sub&amp;gt;&lt;/P&gt;&lt;P&gt;aaa,&amp;lt;Sub&amp;gt;&lt;/P&gt;&lt;P&gt;bbb,&amp;lt;Sub&amp;gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Trim(SubField(MapSubString('Map',mnoteshistory), '&amp;lt;Sub&amp;gt;'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923981#M652566</guid>
      <dc:creator />
      <dc:date>2015-07-31T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923982#M652567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use index function &lt;/P&gt;&lt;P&gt;if (index (field,'...')&amp;gt;0 ,subfield,field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hth&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923982#M652567</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-31T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923983#M652568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joe for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both work well, I think I will use the substring map as not fully explored the data yet and will give me the flexibility I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHEERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923983#M652568</guid>
      <dc:creator />
      <dc:date>2015-07-31T14:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Use Subfield for more than one criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923984#M652569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no worries glad to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 15:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Use-Subfield-for-more-than-one-criteria/m-p/923984#M652569</guid>
      <dc:creator />
      <dc:date>2015-07-31T15:47:13Z</dc:date>
    </item>
  </channel>
</rss>

