<?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 Problems with a wild map script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73696#M12152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following script to try and create a table to evaluate a dimension in my table with descriptions and assign a flag value accordingly:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;wildmap3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;rowno() as Label4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Key3, Label3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*Efectivo*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*cheque*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*PUE*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*PDD*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*Parcial*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*credito*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapKey3=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapLabel4=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET comma3=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET esc3 = chr(01); // The character we will use to escape quotes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Loop through the rows of the wildmatch table to build the expression string,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FOR i = 0 to NoOfRows('wildmap3')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LET vMapKey3 = vMapKey3 &amp;amp; comma3 &amp;amp; $(esc3) &amp;amp; peek('Key3', b, 'wildmap3') &amp;amp; $(esc3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LET vMapLabel4 = vMapLabel4 &amp;amp; comma3 &amp;amp; $(esc3) &amp;amp; peek('Label3', b, 'wildmap4') &amp;amp; $(esc3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; SET comma3 = ','; // Next time through the loop, insert a comma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET i=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET comma3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// For this example, I'm going to keep the wildmatch table for illustrative purposes on the Sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//DROP TABLE wildmap;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Drop the wildmatch table -- don't need it anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Combine the key and label values, replacing the $(esc) char with real quotes, to build the expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vMapExpr3 = replace('pick(wildMatch($1,$(vMapKey2)), $(vMapLabel3))', $(esc2), chr(39));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapKey3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapLabel4=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET esc3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this before, and it seems ok, but I keep getting this error:&lt;/P&gt;&lt;P&gt;Script line error: &lt;/P&gt;&lt;P&gt;LET vMapExpr3 = replace('pick(wildMatch($1,), )', , chr(39))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone has an idea of how to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 15:59:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-22T15:59:09Z</dc:date>
    <item>
      <title>Problems with a wild map script</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73696#M12152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following script to try and create a table to evaluate a dimension in my table with descriptions and assign a flag value accordingly:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;wildmap3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;rowno() as Label4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Key3, Label3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*Efectivo*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*cheque*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*PUE*',Bancos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*PDD*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*Parcial*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'*credito*',Clientes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapKey3=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapLabel4=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET comma3=; // Initialize variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET esc3 = chr(01); // The character we will use to escape quotes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Loop through the rows of the wildmatch table to build the expression string,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FOR i = 0 to NoOfRows('wildmap3')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LET vMapKey3 = vMapKey3 &amp;amp; comma3 &amp;amp; $(esc3) &amp;amp; peek('Key3', b, 'wildmap3') &amp;amp; $(esc3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LET vMapLabel4 = vMapLabel4 &amp;amp; comma3 &amp;amp; $(esc3) &amp;amp; peek('Label3', b, 'wildmap4') &amp;amp; $(esc3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; SET comma3 = ','; // Next time through the loop, insert a comma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET i=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET comma3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// For this example, I'm going to keep the wildmatch table for illustrative purposes on the Sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//DROP TABLE wildmap;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Drop the wildmatch table -- don't need it anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Combine the key and label values, replacing the $(esc) char with real quotes, to build the expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vMapExpr3 = replace('pick(wildMatch($1,$(vMapKey2)), $(vMapLabel3))', $(esc2), chr(39));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapKey3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMapLabel4=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET esc3=; // Drop unneeded variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this before, and it seems ok, but I keep getting this error:&lt;/P&gt;&lt;P&gt;Script line error: &lt;/P&gt;&lt;P&gt;LET vMapExpr3 = replace('pick(wildMatch($1,), )', , chr(39))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone has an idea of how to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73696#M12152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with a wild map script</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73697#M12153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;where are the following variables initiaized ?&lt;/P&gt;&lt;P&gt;vMapKey2, vMapLabel3,esc2&lt;/P&gt;&lt;P&gt;i don't see them in your script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73697#M12153</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-03-22T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with a wild map script</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73698#M12154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep that was the error, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-a-wild-map-script/m-p/73698#M12154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T16:05:26Z</dc:date>
    </item>
  </channel>
</rss>

