<?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: ApplyMap() Degrading in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532293#M690899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed it is even simpler to put more inside the initial quotes:)&lt;/P&gt;&lt;P&gt;En effet c'est plus simple et astucieux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked like a charm!! Merveilleux et élégant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Un grand merci !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 12:19:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-18T12:19:46Z</dc:date>
    <item>
      <title>ApplyMap() Degrading in variable</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532290#M690896</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 am trying to create a variable that creates several ApplyMap Statements in the Load Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Second Iteration, it degrades&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LET &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;c &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;FOR &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;j &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;c &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= '$(c)' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(j) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0, '', ', ') &amp;amp; 'ApplyMap'&amp;amp;'('&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp;'Map_Table'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp;','&amp;amp;'%Key1'&amp;amp;'&amp;amp;'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp;'&amp;amp;'&amp;amp;'[Key2]&amp;amp;'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)'&amp;amp;'&amp;amp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(j)&amp;amp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;','&amp;amp;'0'&amp;amp;')'&amp;amp;' as [P ($(j))]';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;NEXT &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;j&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 2]:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;*,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(c)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="font-size: 8pt;"&gt; [Table 1] ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ApplyMap('Map_Table',%Key1&amp;amp;'|'&amp;amp;[Key2]&amp;amp;'|'&amp;amp;0,0) as [P (0)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ApplyMap(Map_Table,%Key1|[Key2]|1,0) as [P (1)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;// the first iteration is a success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; //the second (and subsequent) iteration(s) is a failure. Note how ' ' for the table name, the &amp;amp; and the '|' have disappeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I could make it behave?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Antoine&lt;/P&gt;&lt;P&gt;PS: it falls within a series of simulation I am performing:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/92181"&gt;http://community.qlik.com/thread/92181&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/91411"&gt;http://community.qlik.com/thread/91411&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13794320753779629 jive_macro_code" jivemacro_uid="_13794320753779629"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532290#M690896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-17T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Degrading in variable</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532291#M690897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;If &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;$(j) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=0&lt;/SPAN&gt; seems to be causing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 18:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532291#M690897</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-09-17T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Degrading in variable</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532292#M690898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Antoine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reusing a snippet of code from another of your posts related to the same subject, I have added a second instruction that I believe shall build the statement you are wishing for. / En réutilisant un bout de code de l'un de vos autres posts concernant un sujet similaire, je crois bien avoir construit un énoncé qui produira l'effet désiré.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET b=Null();&lt;/P&gt;&lt;P&gt;LET c=Null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to 23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LET b = '$(b)' &amp;amp; If($(i)=0, '', ',') &amp;amp; '[$(i)] as [Hour $(i)]';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LET c = '$(c)' &amp;amp; If($(i)=0, '', ',') &amp;amp; 'ApplyMap('&amp;amp; Chr(39) &amp;amp; 'Map_Table' &amp;amp; Chr(39) &amp;amp; ', [%Key1]&amp;amp;' &amp;amp; Chr(39) &amp;amp; '|' &amp;amp; Chr(39) &amp;amp; '&amp;amp;[Key2]&amp;amp;' &amp;amp; Chr(39) &amp;amp; '|' &amp;amp; Chr(39) &amp;amp; '&amp;amp;$(i), 0) as [P ($(i))]';&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE $(c);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards / Cordialement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532292#M690898</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-09-18T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Degrading in variable</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532293#M690899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed it is even simpler to put more inside the initial quotes:)&lt;/P&gt;&lt;P&gt;En effet c'est plus simple et astucieux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked like a charm!! Merveilleux et élégant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Un grand merci !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532293#M690899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-18T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() Degrading in variable</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532294#M690900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avec plaisir! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-Degrading-in-variable/m-p/532294#M690900</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-09-18T12:21:10Z</dc:date>
    </item>
  </channel>
</rss>

