<?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 AW:MapSubstring in left X characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223231#M75766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's quite aproximate, but i found some cases where doesn't work.&lt;/P&gt;&lt;P&gt;The number of rows in table are thousands and the posibilities as we receive the address are to become crazy.&lt;/P&gt;&lt;P&gt;For example, some addresses are like 'Alda.Mayor 12, 5ºe' so, the space is between the name of street and the number of gate.&lt;/P&gt;&lt;P&gt;Other times the first word maybe for example 'Bralameda 10, 2b' but in this time not is necesary replace by 'Bral. 10, 2b'&lt;/P&gt;&lt;P&gt;The best way i think would be looking for the string using the the length of that string, but one thing i saw was the MapSubstring overlook the spaces, for it, its the same search 'Al. ' that 'Al.' and i don't know the reason.&lt;/P&gt;&lt;P&gt;It's not possible to indicate in MapSubstring or in other function the length until where has to look for including spaces?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Feb 2011 16:36:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-20T16:36:21Z</dc:date>
    <item>
      <title>MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223229#M75764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm using a MapSubstring and it doesn't work like hope, there are someones cases with problems.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I need to replace the text 'Al ' to 'Al. ' but only if match the first 3 characters including space ('Al '). So it not must replace the word 'Catalana' to 'Catal.ana' or to 'Catana' like it does, because there is not space, and nor because there are not the 3 first characters of the data in field.&lt;/P&gt;&lt;P&gt;The lenght of the characters to search is different. Example:&lt;/P&gt;&lt;P&gt;Replace the text 'Barrio ' to 'Bo. ' but only if match the first 7 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included a qlikview file to help find a solution, with original data, wanted results, and bad results .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 13:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223229#M75764</guid>
      <dc:creator />
      <dc:date>2011-02-20T13:21:35Z</dc:date>
    </item>
    <item>
      <title>AW:MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223230#M75765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you have only the 6 mentioned values as in your example or are we talking about hundreds or thousands of items. If handy enough, why don't you do a full map with the full text string?&lt;/P&gt;&lt;P&gt;Another idea might be to apply the mapping only to the first word maybe? So you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;capitalize(MapSubstring('map1',lower(Left(tmpTabla.mapAddress, Index(tmpTabla.mapAddress, ' ', 1))))) &amp;amp; Mid(tmpTabla.mapAddress, Index(tmpTabla.mapAddress, ' ')+1) as Address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work for me. Maybe you test it with your full data...&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 13:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223230#M75765</guid>
      <dc:creator />
      <dc:date>2011-02-20T13:32:15Z</dc:date>
    </item>
    <item>
      <title>AW:MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223231#M75766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's quite aproximate, but i found some cases where doesn't work.&lt;/P&gt;&lt;P&gt;The number of rows in table are thousands and the posibilities as we receive the address are to become crazy.&lt;/P&gt;&lt;P&gt;For example, some addresses are like 'Alda.Mayor 12, 5ºe' so, the space is between the name of street and the number of gate.&lt;/P&gt;&lt;P&gt;Other times the first word maybe for example 'Bralameda 10, 2b' but in this time not is necesary replace by 'Bral. 10, 2b'&lt;/P&gt;&lt;P&gt;The best way i think would be looking for the string using the the length of that string, but one thing i saw was the MapSubstring overlook the spaces, for it, its the same search 'Al. ' that 'Al.' and i don't know the reason.&lt;/P&gt;&lt;P&gt;It's not possible to indicate in MapSubstring or in other function the length until where has to look for including spaces?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 16:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223231#M75766</guid>
      <dc:creator />
      <dc:date>2011-02-20T16:36:21Z</dc:date>
    </item>
    <item>
      <title>Re:AW:MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223232#M75767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is a problem with the MapSubstring on blanks, would suggest to replace all blanks with e.g. "|" (or any other symbol, which normally should not incur in the text), do the mapping and replace all the "|"s again with blanks.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 20:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223232#M75767</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-02-20T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re:AW:MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223233#M75768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter and Florian, replacing blanks with "|" minimize the posible error that now only &lt;SPAN class="hps" title="Haz clic para obtener traducciones alternativas"&gt;occur when e.g. appear "bo.place" joined without blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Haz clic para obtener traducciones alternativas"&gt;If itsn't possible to control the&lt;/SPAN&gt; length that at least is the way more &lt;SPAN class="hps" title="Haz clic para obtener traducciones alternativas"&gt;approximated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;p.d. I hope in next versions Qlikview manage blanks with mapsubstring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 21:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223233#M75768</guid>
      <dc:creator />
      <dc:date>2011-02-20T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223234#M75769</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 know this is a very late reply, but maybe it can still help. I've been very frustrated with this lack of functionality. There's a solution to this problem, but only if there are few replaces to make. Here the OP has only asked to make one, so this should work: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Replace(text,'Al ','Al. ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, if you want to, say, change all prepositions from capitalized text like "Of" to lowercase like "of" you'd have to use a lot of nested Replace functions, and MapSubString won't work because it doesn't recognize spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/223234#M75769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/1895886#M1217533</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@&amp;nbsp;wrote:&amp;nbsp;&lt;A title="MyIndigoCard" href="https://www.myindigocard.me/" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;MyIndigoCard&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;P&gt;Hi, i'm using a MapSubstring and it doesn't work like hope, there are someones cases with problems.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;I need to replace the text 'Al ' to 'Al. ' but only if match the first 3 characters including space ('Al '). So it not must replace the word 'Catalana' to 'Catal.ana' or to 'Catana' like it does, because there is not space, and nor because there are not the 3 first characters of the data in field.&lt;/P&gt;
&lt;P&gt;The lenght of the characters to search is different. Example:&lt;/P&gt;
&lt;P&gt;Replace the text 'Barrio ' to 'Bo. ' but only if match the first 7 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I included a qlikview file to help find a solution, with original data, wanted results, and bad results .&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hey,&amp;nbsp;why don't you do a full map with the full text string?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 05:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/1895886#M1217533</guid>
      <dc:creator>Shepherd69</dc:creator>
      <dc:date>2022-02-23T05:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring in left X characters</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/1896959#M1217589</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&amp;nbsp;&lt;A title="Choice ADVANTAGE Login" href="https://www.choiceadvantage.ltd/" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;Choice ADVANTAGE Login&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;P&gt;Hi, i'm using a MapSubstring and it doesn't work like hope, there are someones cases with problems.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;I need to replace the text 'Al ' to 'Al. ' but only if match the first 3 characters including space ('Al '). So it not must replace the word 'Catalana' to 'Catal.ana' or to 'Catana' like it does, because there is not space, and nor because there are not the 3 first characters of the data in field.&lt;/P&gt;
&lt;P&gt;The lenght of the characters to search is different. Example:&lt;/P&gt;
&lt;P&gt;Replace the text 'Barrio ' to 'Bo. ' but only if match the first 7 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I included a qlikview file to help find a solution, with original data, wanted results, and bad results .&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The best way i think would be looking for the string using the the length of that string, but one thing i saw was the MapSubstring overlook the spaces, for it, its the same search 'Al. ' that 'Al.' and i don't know the reason.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 04:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-in-left-X-characters/m-p/1896959#M1217589</guid>
      <dc:creator>Hill69</dc:creator>
      <dc:date>2022-02-25T04:22:45Z</dc:date>
    </item>
  </channel>
</rss>

