<?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 MapSubstring() strange behavior or bug? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144986#M23791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf,&lt;/P&gt;&lt;P&gt;I think its because testMap1 and testMap2 have the same structure (both consist of fields x and y). Try changing 'x' to 'xx' and 'y' to 'yy' in testMap2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 18:07:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-26T18:07:48Z</dc:date>
    <item>
      <title>MapSubstring() strange behavior or bug?</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144985#M23790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we're using MapSubstring() to convert strings into phonetical codes. During our tests we got some strange results. Here is a sample code:&lt;/P&gt;&lt;P&gt;daten:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; var&lt;BR /&gt; Wikipedia&lt;BR /&gt; da&lt;BR /&gt; dy&lt;BR /&gt; dd&lt;BR /&gt; dkd&lt;BR /&gt; dz&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;testMap1:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt; x, y&lt;BR /&gt; d, 1&lt;BR /&gt; dy, 2&lt;BR /&gt; dz, 3&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;test1:&lt;BR /&gt;load var as var1, '#'&amp;amp;MapSubString('testMap1',lower(var)) as test1 resident daten;&lt;BR /&gt;&lt;BR /&gt;testMap2:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt; x, y&lt;BR /&gt; d, 1&lt;BR /&gt; dy, 2&lt;BR /&gt; dz, 3&lt;BR /&gt; dh, 4&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;test2:&lt;BR /&gt;load var as var2, '#'&amp;amp;MapSubString('testMap2',lower(var)) as test2 resident daten;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The second map don't works right (see attached app). The additional entry "dh" creates the problem. I wonder why.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 15:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144985#M23790</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-05-26T15:03:59Z</dc:date>
    </item>
    <item>
      <title>MapSubstring() strange behavior or bug?</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144986#M23791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf,&lt;/P&gt;&lt;P&gt;I think its because testMap1 and testMap2 have the same structure (both consist of fields x and y). Try changing 'x' to 'xx' and 'y' to 'yy' in testMap2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 18:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144986#M23791</guid>
      <dc:creator />
      <dc:date>2009-05-26T18:07:48Z</dc:date>
    </item>
    <item>
      <title>MapSubstring() strange behavior or bug?</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144987#M23792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gordon,&lt;/P&gt;&lt;P&gt;this is not the problem. We tried it before. Even if only the second mapping stands alone (no first mapping exists) the problem is there.&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 18:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144987#M23792</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-05-26T18:13:14Z</dc:date>
    </item>
    <item>
      <title>MapSubstring() strange behavior or bug?</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144988#M23793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;It definitely looks like a bug, but I can see what's happening. It appears that specifying a map for D, DH and DP causes everything between DH and DP to lose the D mapping. This can be clearly seen in the attached example. It's as if QlikView has internally decided that DH and DP define a range, rather than just being specific values. It's like it's doing this:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;if character is D&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;remove D&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;if character between H and P&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;if character = H&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;remove H&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;insert DH map charcters&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;else&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;if character = P&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;remove P&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;insert DP map characters&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;end if&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;end if&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;else&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;insert D map characters&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;end if&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;end if&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Which is completely wrong. Would you like to report this to QlikView? Would you like me to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2009 03:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-strange-behavior-or-bug/m-p/144988#M23793</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-06T03:48:11Z</dc:date>
    </item>
  </channel>
</rss>

