<?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: field not found in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197771#M625086</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 replace the Inline[] part with any other data source, e.g. files (actually I would have used your sample file if it had not been a word document enclosed image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested expression extracts the substring between the first blank and the first subsequent numerical character and removes leading and trailing blanks, so I guess it should deliver the country part of your source strings (at least for the samples you provided).&lt;/P&gt;&lt;P&gt;You could also use PurgeChar() to remove specific characters, but I think that's only part of an alternative expression you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 23:41:58 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-10-17T23:41:58Z</dc:date>
    <item>
      <title>field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197767#M625079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in single &lt;SPAN style="font-size: 13.3333px;"&gt;column of &lt;/SPAN&gt;excel i have data of different fields (&lt;SPAN style="font-size: 13.3333px;"&gt;Year Country DirectTax IndirectTax OtherTax). i using SubField function to extract only Year and Country field value. below script executed successfully with Error: Field &amp;lt;&amp;gt; not found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached screenshot of sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tableA:&lt;/P&gt;&lt;P&gt;LOAD [Year Country Direct Tax Indirect Tax Other Tax] As Tax&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Practicing Data Files\Data for func Sub Field.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tableB:&lt;/P&gt;&lt;P&gt;LOAD SubField(Tax," ",1) As TaxYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(Tax," ",2) As TaxCountry&lt;/P&gt;&lt;P&gt;Resident tableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tableA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197767#M625079</guid>
      <dc:creator />
      <dc:date>2016-10-14T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197768#M625080</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;your second subfield parameter " " is interpreted as field name because of the double quotes you used.&lt;/P&gt;&lt;P&gt;Try single quotes instead to define a string as subfield delimiter:&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;tableB:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD SubField(Tax,&lt;STRONG style=": ; color: #ff0000; font-size: 12pt;"&gt;' '&lt;/STRONG&gt;,1) As TaxYear,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SubField(Tax,&lt;STRONG style=": ; color: #ff0000; font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;' '&lt;/STRONG&gt;,2) As TaxCountry&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident tableA;&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;hope this helps&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;regards&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2016 21:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197768#M625080</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-16T21:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197769#M625082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;given your sample data, you probably should load the subfields like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_236396_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140793_QlikCommunity_Thread_236396_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14766535433236142" jivemacro_uid="_14766535433236142"&gt;
&lt;P&gt;tableA:&lt;/P&gt;
&lt;P&gt;LOAD [Year Country Direct Tax Indirect Tax Other Tax] as Tax&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;Year Country Direct Tax Indirect Tax Other Tax&lt;/P&gt;
&lt;P&gt;2011 Australia 23453 34509 93845&lt;/P&gt;
&lt;P&gt;2012; India 23453 34509 93845&lt;/P&gt;
&lt;P&gt;2013. USA 23453 34509 93845&lt;/P&gt;
&lt;P&gt;2014-- Russia 23453 34509 93845&lt;/P&gt;
&lt;P&gt;2015* Japan 23453 34509 93845&lt;/P&gt;
&lt;P&gt;2016 South Korea 23453 34509 93845&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tableB:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Left(Tax,4) as TaxYear,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trim(Left(Mid(Tax,Index(Tax,' ')),FindOneOf(Mid(Tax,Index(Tax,' ')),'0123456789')-1)) as TaxCountry&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Resident tableA; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tableA;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&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;hope this helps&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;regards&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2016 21:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197769#M625082</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-16T21:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197770#M625084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script executed successfully but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. you have used Inline Table data&lt;/P&gt;&lt;P&gt;2. shall i know what this formula do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trim(Left(Mid(Tax,Index(Tax,' ')),FindOneOf(Mid(Tax,Index(Tax,' ')),'0123456789')-1)) as TaxCountry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want data from file instead of Inline table data and i want to remove extra characters after year like ' ; ', ' * ', ' / '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide simple formula to remove those extra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 07:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197770#M625084</guid>
      <dc:creator />
      <dc:date>2016-10-17T07:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197771#M625086</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 replace the Inline[] part with any other data source, e.g. files (actually I would have used your sample file if it had not been a word document enclosed image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested expression extracts the substring between the first blank and the first subsequent numerical character and removes leading and trailing blanks, so I guess it should deliver the country part of your source strings (at least for the samples you provided).&lt;/P&gt;&lt;P&gt;You could also use PurgeChar() to remove specific characters, but I think that's only part of an alternative expression you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 23:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197771#M625086</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-17T23:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197772#M625087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Marco, PURGECHAR works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. attached excel file with data&lt;/P&gt;&lt;P&gt;2. below is the script&lt;/P&gt;&lt;P&gt;ISSUE: South Korea displaying as South in column Country and Korea in column Direct Tax&lt;/P&gt;&lt;P&gt;if i use SubField(tableA.Tax,'',2) As Country, country column display - values. PURGECHAR can't be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know the formula to display South Korea in column Country instead error mentioned in ISSUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the script&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tableA:&lt;/P&gt;&lt;P&gt;LOAD Purgechar(Purgechar(Purgechar(Purgechar(Purgechar(Purgechar([Year Country DirectTax IndirectTax OtherTax],';'),'.'),'--'),'*'),'/'),':') As Tax&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Practicing Data Files\Data for func Sub Field.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tableB:&lt;/P&gt;&lt;P&gt;LOAD SubField(tableA.Tax,' ',1) As Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',2) As Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',3) As DirectTax,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',4) As IndirectTax,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',5) As OtherTax&lt;/P&gt;&lt;P&gt;Resident tableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 02:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197772#M625087</guid>
      <dc:creator />
      <dc:date>2016-10-18T02:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197773#M625088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You dont need to next PurgeChar() like that. This will be sufficient:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Purgechar(Purgechar[Year Country DirectTax IndirectTax OtherTax],';,.*/:-')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to remove double hyphens and leave single hyphens intact:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Replace(Purgechar(Purgechar[Year Country DirectTax IndirectTax OtherTax],';,.*/:'), '--', '')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 04:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197773#M625088</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-18T04:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: field not found</title>
      <link>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197774#M625090</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 also could use KeepChar instead of PurgeChar like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_236396_Pic2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141091_QlikCommunity_Thread_236396_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14768295961346683" jivemacro_uid="_14768295961346683"&gt;
&lt;P&gt;QUALIFY *;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tableA:&lt;/P&gt;
&lt;P&gt;LOAD *, KeepChar([Year Country DirectTax IndirectTax OtherTax],'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ') as Tax&lt;/P&gt;
&lt;P&gt;FROM [Data for func Sub Field.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tableB:&lt;/P&gt;
&lt;P&gt;LOAD SubField(tableA.Tax,' ',1) As Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Mid(tableA.Tax,Index(tableA.Tax,' ')+1,Index(tableA.Tax,' ',-3)-Index(tableA.Tax,' ')-1) As Country,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',-3) As DirectTax,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',-2) As IndirectTax,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SubField(tableA.Tax,' ',-1) As OtherTax&lt;/P&gt;
&lt;P&gt;Resident tableA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tableA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;UNQUALIFY *;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(modifying your sample data to include a space within the country field as this only would explain the issue you described)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-not-found/m-p/1197774#M625090</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-18T22:31:35Z</dc:date>
    </item>
  </channel>
</rss>

