<?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: Issue with loading special character in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1524266#M438268</link>
    <description>&lt;P&gt;Thanks Marcus, that's really helpful! I suspected that data was bobbar but I'd hoped for an easy solution (like an option when using the LOAD wizard) but this will help me go back to the client to look at the source data before resorting to coding around the issue.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Dec 2018 08:26:22 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2018-12-27T08:26:22Z</dc:date>
    <item>
      <title>Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1523494#M438204</link>
      <description>&lt;P&gt;I am trying to load a txt file but it appears to have a special character similar to a carriage return. I've tried using KeepChar to get rid of it but cannot seem to do anything.&lt;/P&gt;&lt;P&gt;As you can see I have opened it in Notepad and there's just two rows but if I open in Notepad ++ then the [Material Description] suddenly goes down a line as if there's carriage returns above and below. QlikView has the same issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sales.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2544i46CB9DCC9B2DB933/image-size/large?v=v2&amp;amp;px=999" role="button" title="sales.PNG" alt="sales.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The question is how do I load this file correctly? PFA&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 14:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1523494#M438204</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-12-21T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1523592#M438215</link>
      <description>&lt;P&gt;IMO it's a serious issue within the dataquality of your source and if possible it should be corrected by the creation of the data or at least during the output from there (probably any kind of database).&lt;/P&gt;&lt;P&gt;Nevertheless most of such faulty data could with more or less efforts be corrected. Quite common for it is the use of vba/vbs but it's also possible within Qlik for example with an approach like this one:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;m: mapping load repeat(chr(32), recno() + 1) as Lookup, chr(32) as Return autogenerate 40;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;t1:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load concat(ValuesMerge, chr(10), RecNo) as ValuesMerge;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load *, replace(replace(ValuesMerge, ' |', '|'), '| ', '|') as ValuesMerge;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load *, mapsubstring('m', mid(ValuesMerge, 2, len(ValuesMerge)-2)) as ValuesMerge where Filter = 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load *, if(Check &amp;lt; previous(Check), 0, 1) as Filter, if(Check &amp;lt; previous(Check), peek('ValuesMerge' &amp;amp; Values), Values) as ValuesMerge;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load *, substringcount(Values, '|') as Check;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load [@1:n] as Values, recno() as RecNo &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;from [C:\Users\Marcus Sommer\Downloads\2018_11_SALES_XX.txt] (fix, codepage is 1252)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;where not match(recno(), 1, 3);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;t2:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;load * from_field (t, ValuesMerge) (txt, utf8, embedded labels, delimiter is '|');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;which detects the erroneous records with a substringcount() of the delimiter-char and put then the parts together again and concat it to get a single value on which a from_field load could be applied (the mapping and replace and so on are additionally just to clean the data a bit more).&lt;BR /&gt;&lt;BR /&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 13:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1523592#M438215</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-22T13:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1524266#M438268</link>
      <description>&lt;P&gt;Thanks Marcus, that's really helpful! I suspected that data was bobbar but I'd hoped for an easy solution (like an option when using the LOAD wizard) but this will help me go back to the client to look at the source data before resorting to coding around the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 08:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1524266#M438268</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-12-27T08:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533731#M438971</link>
      <description>&lt;P&gt;Hi Marcus, what does the mapping load / applymap do? I can't quite work&amp;nbsp;that bit out.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533731#M438971</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2019-01-23T10:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533838#M438991</link>
      <description>&lt;P&gt;A mapping with applymap() worked quite similar to the VLOOKUP function from Excel. It searched within the first column of the mapping table (which had always only two columns) for the search-value and returned the value from the first matching (from the second column) and in cases of non-matching it returns the third or if none is defined the second function-parameter as default-value.&lt;/P&gt;&lt;P&gt;This is very simple and also very fast - and if you need more you could nest multiple ones and/or concat the return values and splitting them again - and even this is usually quite fast and most often the best approach compared to other transformations, like joins.&lt;/P&gt;&lt;P&gt;The mapping with mapsubstring() is similar with the difference that the return-value replaced the search-value within the field-value.&lt;/P&gt;&lt;P&gt;Further information and background will you find here: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Mapping-and-not-the-geographical-kind/ba-p/1463192" target="_blank"&gt;Mapping-and-not-the-geographical-kind&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 12:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533838#M438991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-23T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533935#M438994</link>
      <description>&lt;P&gt;Thanks Marcus - I was familiar with ApplyMap but not&amp;nbsp;&lt;SPAN&gt;mapsubstring().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I understand that in the above example you are replacing a long string of "spaces" with a single space right?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533935#M438994</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2019-01-23T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with loading special character</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533941#M438995</link>
      <description>&lt;P&gt;Yes, exactly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-loading-special-character/m-p/1533941#M438995</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-23T15:31:01Z</dc:date>
    </item>
  </channel>
</rss>

