<?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 Applymap or Join with wildcards in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514100#M1226497</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I hope somebody can hel me.&lt;/P&gt;&lt;P&gt;I have one table inline like this:&lt;/P&gt;&lt;P&gt;OrdenPrueba:&lt;BR /&gt;LOAD INLINE [&lt;BR /&gt;Orden, Prueba&lt;BR /&gt;34281, Prueba&lt;BR /&gt;34457, Prueba&lt;BR /&gt;2400104, Prueba&lt;BR /&gt;2403224, Prueba&lt;BR /&gt;2501056, Prueba&lt;BR /&gt;2501041, Prueba&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;And I have other table where into the Id field can appears or not like part of it the filed Order of OrdenPrueba:&lt;/P&gt;&lt;P&gt;Numbers:&lt;/P&gt;&lt;P&gt;LOAD INLINE [&lt;/P&gt;&lt;P&gt;Id&lt;/P&gt;&lt;P&gt;37464&lt;STRONG&gt;34281&lt;/STRONG&gt;7456,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2403224&lt;/STRONG&gt;464747,&lt;/P&gt;&lt;P&gt;746575&lt;STRONG&gt;2501056&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;36474757,&lt;/P&gt;&lt;P&gt;383993300,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I would like to insert a column in the table Numbers, where appears &lt;STRONG&gt;Prueba&lt;/STRONG&gt; when one of the orders appears as part of the field Id&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Apr 2025 06:51:11 GMT</pubDate>
    <dc:creator>Igor4</dc:creator>
    <dc:date>2025-04-12T06:51:11Z</dc:date>
    <item>
      <title>Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514100#M1226497</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I hope somebody can hel me.&lt;/P&gt;&lt;P&gt;I have one table inline like this:&lt;/P&gt;&lt;P&gt;OrdenPrueba:&lt;BR /&gt;LOAD INLINE [&lt;BR /&gt;Orden, Prueba&lt;BR /&gt;34281, Prueba&lt;BR /&gt;34457, Prueba&lt;BR /&gt;2400104, Prueba&lt;BR /&gt;2403224, Prueba&lt;BR /&gt;2501056, Prueba&lt;BR /&gt;2501041, Prueba&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;And I have other table where into the Id field can appears or not like part of it the filed Order of OrdenPrueba:&lt;/P&gt;&lt;P&gt;Numbers:&lt;/P&gt;&lt;P&gt;LOAD INLINE [&lt;/P&gt;&lt;P&gt;Id&lt;/P&gt;&lt;P&gt;37464&lt;STRONG&gt;34281&lt;/STRONG&gt;7456,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2403224&lt;/STRONG&gt;464747,&lt;/P&gt;&lt;P&gt;746575&lt;STRONG&gt;2501056&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;36474757,&lt;/P&gt;&lt;P&gt;383993300,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I would like to insert a column in the table Numbers, where appears &lt;STRONG&gt;Prueba&lt;/STRONG&gt; when one of the orders appears as part of the field Id&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 06:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514100#M1226497</guid>
      <dc:creator>Igor4</dc:creator>
      <dc:date>2025-04-12T06:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514102#M1226498</link>
      <description>&lt;P&gt;Hi, if there are not too many numbers and orders, you can crete a flag as:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cartesian:
NoConcatenate
LOAD * Resident OrdenPrueba;
Outer Join (Cartesian) LOAD * Resident Numbers;

Left Join (Cartesian)
LOAD Id, 'Found' as Result, Id as chkIdFound
Resident Cartesian
Where 
	Index(Id,Orden)
;

Left Join (Numbers)
LOAD Id, If(Exists('chkIdFound',Id),1,0) as Found
Resident Numbers;

DROP Table Cartesian;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 12 Apr 2025 07:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514102#M1226498</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-04-12T07:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514110#M1226499</link>
      <description>&lt;P&gt;I like to use a script pattern I call "Wildcard Mapping". You can find documented downloadable examples for QS and QV int the Recipes section here:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlikview Cookbook: Mapping With Wildcards &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/" target="_blank" rel="noopener"&gt;https://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Using the example, your code might look like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;OrdenPrueba:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INLINE [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Orden, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;34281, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;34457, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2400104, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2403224, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2501056, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2501041, Prueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;_MapExpr:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'pick(wildMatch($1,' &amp;amp; chr(39) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp; concat(Key, chr(39) &amp;amp; ',' &amp;amp; chr(39), FieldIndex('Key', Key)) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp; chr(39)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp; '), ' &amp;amp; chr(39)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp; concat(Label, chr(39) &amp;amp; ',' &amp;amp; chr(39), FieldIndex('Key', Key))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp; chr(39) &amp;amp; ')' as MapExpr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD '*' &amp;amp; Orden &amp;amp; '*' as Key,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Prueba as Label&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident OrdenPrueba&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LET vMapExpr = peek('MapExpr', -1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DROP TABLE _MapExpr;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Numbers:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$(vMapExpr(Id)) as PruebaColumn&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;INLINE [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Id&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;37464342817456&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2403224464747&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;7465752501056&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;36474757&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;383993300&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 15:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2514110#M1226499</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-04-12T15:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2515113#M1226506</link>
      <description>&lt;P&gt;Sorry the delay.&lt;/P&gt;&lt;P&gt;The example works perfectly,.&lt;/P&gt;&lt;P&gt;I have tested with a table of&amp;nbsp; 300.000 registers and there is not delay&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 12:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2515113#M1226506</guid>
      <dc:creator>Igor4</dc:creator>
      <dc:date>2025-04-22T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2515114#M1226507</link>
      <description>&lt;P&gt;Sorry the delay.&lt;/P&gt;&lt;P&gt;The example works perfectly,.&lt;/P&gt;&lt;P&gt;I have tested with a table of&amp;nbsp; 300.000 registers and there is not delay&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 12:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2515114#M1226507</guid>
      <dc:creator>Igor4</dc:creator>
      <dc:date>2025-04-22T12:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2518940#M1226545</link>
      <description>&lt;P&gt;another solution might be&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1748087217385.png" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180764i5A9AC5AC7BBDF6B6/image-size/small?v=v2&amp;amp;px=200" role="button" title="MarcoWedel_0-1748087217385.png" alt="MarcoWedel_0-1748087217385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OrdenPrueba:
LOAD * INLINE [
Orden, Prueba
34281, Prueba
34457, Prueba
2400104, Prueba
2403224, Prueba
2501056, Prueba
2501041, Prueba
];

MapPrueba:
Mapping
LOAD Orden,
     '@MapStart@'&amp;amp;Prueba&amp;amp;'@MapEnd@'
Resident OrdenPrueba;

Numbers:
LOAD *,
     TextBetween(MapSubString('MapPrueba',Id),'@MapStart@','@MapEnd@') as TipoOrden
INLINE [
Id
37464342817456
2403224464747
7465752501056
36474757
383993300
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2025 11:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2518940#M1226545</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2025-05-24T11:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap or Join with wildcards</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2518956#M1226546</link>
      <description>&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;It works too.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 May 2025 06:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-or-Join-with-wildcards/m-p/2518956#M1226546</guid>
      <dc:creator>Igor4</dc:creator>
      <dc:date>2025-05-25T06:50:54Z</dc:date>
    </item>
  </channel>
</rss>

