<?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: WildMatch(Peek()) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865654#M71442</link>
    <description>&lt;P&gt;&amp;nbsp;Peek(INDEX_EXCEL_TABLE, 1, 'data') means "Check the value of INDEX_EXCEL_TABLE in the second line of the 'data' table", so you're always comparing that value (which is 222) to PostalAddress, and as a result, it's only evaluating to true in the second line. Since I don't understand what you're trying to do here, though, I can't suggest as to how you might fix it. Typically you would use RowNo() or RecNo() in a Peek statement if you're looking for the next line in the table.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 17:22:43 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-12-01T17:22:43Z</dc:date>
    <item>
      <title>WildMatch(Peek())</title>
      <link>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865641#M71441</link>
      <description>&lt;P&gt;Good evening. Please, help me.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;[data]:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;INDEX_EXCEL_TABLE, City, postalAddress&lt;BR /&gt;111, 'A', 111&lt;BR /&gt;222, 'B', 222&lt;BR /&gt;333, 'A', 333&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;[New data]:&lt;BR /&gt;load *,&lt;BR /&gt;if(WildMatch(postalAddress, Peek(INDEX_EXCEL_TABLE, 1, 'data'))=1, City) as New_City&lt;BR /&gt;Resident [data];&lt;/P&gt;
&lt;P&gt;Drop Table [data];&lt;BR /&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My result in data-model:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;INDEX_EXCEL_TABLE&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;City&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;postalAddress&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;New_City&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;111&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;111&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;222&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;222&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;333&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;333&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;But I need all values in New_City.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;Thanks!!!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865641#M71441</guid>
      <dc:creator>07mishin</dc:creator>
      <dc:date>2021-12-01T16:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: WildMatch(Peek())</title>
      <link>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865654#M71442</link>
      <description>&lt;P&gt;&amp;nbsp;Peek(INDEX_EXCEL_TABLE, 1, 'data') means "Check the value of INDEX_EXCEL_TABLE in the second line of the 'data' table", so you're always comparing that value (which is 222) to PostalAddress, and as a result, it's only evaluating to true in the second line. Since I don't understand what you're trying to do here, though, I can't suggest as to how you might fix it. Typically you would use RowNo() or RecNo() in a Peek statement if you're looking for the next line in the table.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 17:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865654#M71442</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-01T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: WildMatch(Peek())</title>
      <link>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865687#M71445</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;SPAN class="Y2IQFc"&gt;I'll try to explain &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have 2 tables. One table is a directory. The second table is a table of values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;SPAN class="Y2IQFc"&gt;First:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;INDEX&lt;/TD&gt;
&lt;TD width="50%"&gt;City&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;111&lt;/TD&gt;
&lt;TD width="50%"&gt;'NY'&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;222&lt;/TD&gt;
&lt;TD width="50%"&gt;'RUS'&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&amp;nbsp;Second:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;postalAddress&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;aaa111bbb&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;aaa222bbb&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to look for a substring [INDEX] in a row [postalAddress], if a substring is found, then insert a value [City] in a new column in Second table.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865687#M71445</guid>
      <dc:creator>07mishin</dc:creator>
      <dc:date>2021-12-01T18:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: WildMatch(Peek())</title>
      <link>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865691#M71446</link>
      <description>&lt;P&gt;If there's some sort of fixed way to get the index through text functions - in the example, you could use Mid(postalAddress,4,3) or KeepChar(postalAddress,'1234567890') - I would recommend using that approach for simplicity.&lt;/P&gt;
&lt;P&gt;If you absolutely need to combine a mapping load with a partial string match, have a look at &lt;A href="https://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/" target="_blank"&gt;https://qlikviewcookbook.com/recipes/download-info/mapping-with-wildcards/&lt;/A&gt; , &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Mapping-with-a-table-using-wildcards/td-p/1511935" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Mapping-with-a-table-using-wildcards/td-p/1511935&lt;/A&gt; , or any number of threads related to&amp;nbsp; mapping with wildcards.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WildMatch-Peek/m-p/1865691#M71446</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-01T18:31:33Z</dc:date>
    </item>
  </channel>
</rss>

