<?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: mapping load neglecting space in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113780#M1224498</link>
    <description>&lt;P&gt;I think you might be looking at the wrong culprit here.&lt;/P&gt;
&lt;P&gt;If you just do a regular inline load of the information in your post, you'll note that the space isn't actually loaded. This doesn't seem to have anything to do with the fact that it's a mapping load.&lt;/P&gt;
&lt;P&gt;If that's the case, you can work around it by concatenating a space:&lt;/P&gt;
&lt;P&gt;Load ' ' &amp;amp; SEARCH as SEARCH, REPLACE as REPLACE inline [&lt;/P&gt;
&lt;P&gt;Stuff here&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 16:20:04 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2023-09-05T16:20:04Z</dc:date>
    <item>
      <title>mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113776#M1224497</link>
      <description>&lt;P&gt;hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this mapping load:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SEARCH_FIELD:
mapping LOAD* INLINE [
SEARCH , REPLACE
' I3','| I3'
' I2','| I2'
' I1','| I1'
' I4','| I4'
' I5','| I5']&lt;/LI-CODE&gt;
&lt;P&gt;as I want to replace these strings in the 1st column by the ones in the 2nd column using a MapSubString function as below:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TABLE:
LOAD MapSubString('SEARCH_FIELD',SEARCH) AS RESULT FROM MyData;&lt;/LI-CODE&gt;
&lt;P&gt;As you can see, there is a space at the beginning of the SEARCH elements ([space]I3 for instance) because I want the text to be replaced only if there is indeed a space before the "I". If there is no space, there shouldn't be a mapping.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the MapSubString (or the mapping load) is not considering that space, which leads me to substitute the data where no substitution should be done.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an idea on how I could fix this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 15:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113776#M1224497</guid>
      <dc:creator>Delphines</dc:creator>
      <dc:date>2023-09-05T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113780#M1224498</link>
      <description>&lt;P&gt;I think you might be looking at the wrong culprit here.&lt;/P&gt;
&lt;P&gt;If you just do a regular inline load of the information in your post, you'll note that the space isn't actually loaded. This doesn't seem to have anything to do with the fact that it's a mapping load.&lt;/P&gt;
&lt;P&gt;If that's the case, you can work around it by concatenating a space:&lt;/P&gt;
&lt;P&gt;Load ' ' &amp;amp; SEARCH as SEARCH, REPLACE as REPLACE inline [&lt;/P&gt;
&lt;P&gt;Stuff here&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 16:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113780#M1224498</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-09-05T16:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113785#M1224499</link>
      <description>&lt;P&gt;maybe&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SEARCH_FIELD:&lt;BR /&gt;mapping LOAD CHR(32) &amp;amp; SEARCH as SEARCH, REPLACE INLINE [&lt;BR /&gt;SEARCH , REPLACE&lt;BR /&gt;'I3','| I3'&lt;BR /&gt;'I2','| I2'&lt;BR /&gt;'I1','| I1'&lt;BR /&gt;'I4','| I4'&lt;BR /&gt;'I5','| I5'&lt;BR /&gt;]&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 16:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113785#M1224499</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2023-09-05T16:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113794#M1224500</link>
      <description>&lt;P&gt;By default, leading and trailing blanks are stripped before the value is stored. You can override this behavior by setting the system variable Verbatim:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET Verbatim = 1;
SEARCH_FIELD:
mapping LOAD* INLINE [
SEARCH , REPLACE
' I3','| I3'
' I2','| I2'
' I1','| I1'
' I4','| I4'
' I5','| I5']&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 17:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2113794#M1224500</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-09-05T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2115080#M1224525</link>
      <description>&lt;P&gt;many thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did read this Verbatim stuff before on other threads but didn't understand how it works, but the output I have is the one I wished to have, so that the most important thing. But just for curiosity, if I put 2, does this mean it let 2 spaces if my field begin with 2 spaces ?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 17:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2115080#M1224525</guid>
      <dc:creator>Delphines</dc:creator>
      <dc:date>2023-09-08T17:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2115200#M1224529</link>
      <description>&lt;P&gt;No, it is a switch, 0 or 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setting this variable to 1 suspends the stripping of blanks. Setting to 0 resumes the default behavior of stripping blanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 23:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2115200#M1224529</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-09-09T23:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2489303#M1226219</link>
      <description>&lt;P&gt;Verbatim didn't work for me. To fix words Capitalize can't hanlde well, I used this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	preposis:
    Mapping
    Load
    	' ' &amp;amp; de &amp;amp; ' '	as de,
        ' ' &amp;amp; a &amp;amp; ' '	as a
    ;
    Load * Inline [
    de,		a
    En Pnl,	en PNL
    En Abc,	en ABC
    A La,	a la
    Para La, para la
    De La,	de la
    De Las,	de las
    De Los, de los
    Y Las,	y las
    Y La,	y la
    Y De,	y de
    En La,	en la
    La,		la
    Y,		y
    De,		de
    Del,	del
    A,		a
    En,		en
    E,		e
    Para,	para
    O,		o
    Al,		al
    Su,		su
    De Su,	de su
    Como,	como
    ];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 02:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2489303#M1226219</guid>
      <dc:creator>EnriqueMartinez</dc:creator>
      <dc:date>2024-10-27T02:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: mapping load neglecting space</title>
      <link>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2489304#M1226220</link>
      <description>&lt;P&gt;Revisited version, with a Replace to help with words at the end, or followed by comma or similar.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	preposis:
    Mapping
    Load
    	Replace(de,'_',' ')	as de,
        Replace(a,'_',' ')	as a
    ;
    Load * Inline [
    de,		a
    Pnl,	PNL
    Abc,	ABC
    Iteso,	ITESO
    _A_La_,	_a_la_
    _Para_La_, _para_la_
    _De_La_,	_de_la_
    _De_Las_,	_de_las_
    _De_Los_, _de_los_
    _Y_Las_,	_y_las_
    _Y_La_,	_y_la_
    _Y_De_,	_y_de_
    _En_La_,	_en_la_
    _La_,		_la_
    _De_,		_de_
    _Y_,		_y_
    _Del_,	_del_
    _A_,		_a_
    _En_,		_en_
    _E_,		_e_
    _Para_,	_para_
    _O_,		_o_
    _Al_,		_al_
    _Su_,		_su_
    _De_Su_,	_de_su_
    _Como_,	_como_
    ];
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 02:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mapping-load-neglecting-space/m-p/2489304#M1226220</guid>
      <dc:creator>EnriqueMartinez</dc:creator>
      <dc:date>2024-10-27T02:09:12Z</dc:date>
    </item>
  </channel>
</rss>

