<?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: Find Substring, and link to another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854147#M655726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, If your Match table is too small and table is static, you can use Wildmatch in IF cond like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;WildMatch(Territory,'*northeast* , '*west*'), &lt;/SPAN&gt;Pick( WildMatch(Territory,'*northeast* , '*west*') ,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Atlantic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pacific&lt;/SPAN&gt;') , 'NA' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Match table is too much the values are changing with short period, then do the cross join &amp;amp; search against each values like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataSet:&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Territory &lt;/P&gt;&lt;P&gt;From Dataset;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match_Territory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Coast&lt;/P&gt;&lt;P&gt;From MatchTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Territory ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Coast&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DataSet&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Where Substringcount( Upper(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Territory) , Upper(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Match_Territory))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 18:16:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-26T18:16:17Z</dc:date>
    <item>
      <title>Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854144#M655723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry if this is confusing, but it's a bit difficult to phrase. I am looking to search within a field, and if a match is found, return another field from the substring. Below are a fewexamples. The values I'm searching in are not standardized, meaning not the same format with underscores or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataSet:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 331px; height: 72px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Territory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Coast???&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sales_NorthEast_123 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;from MatchTable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Manager_xyz_West_012&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;from MatchTable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Manager_Growth_Northeast_123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;from MatchTable&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MatchTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 366px; height: 67px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt; if Territory contains...&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;then Coast is...&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Northeast&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Atlantic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;West&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pacific&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final Dataset (Coast is the field I'm looking for)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 331px; height: 72px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Territory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Coast&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sales_NorthEast_123 &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Atlantic&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Manager_xyz_West_012&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pacific&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Manager_Growth_Northeast_123&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Atlantic&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT - I should have mentioned that there are many records to match from, and I don't want to hardcode the cross-ref as this dashboard will be used for many years and would like it to be able to handle new organizations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback thus far. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 17:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854144#M655723</guid>
      <dc:creator />
      <dc:date>2015-05-26T17:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854145#M655724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Upper([if Territory contains...]) as [if Territory contains...], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [then Coast is...] as [then Coast is...]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="165611" data-objecttype="1" href="https://community.qlik.com/thread/165611"&gt;https://community.qlik.com/thread/165611&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Territory,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap('Mapping', Upper(SubField(Territory, '_', -2))) as Coast&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="165611" data-objecttype="1" href="https://community.qlik.com/thread/165611"&gt;https://community.qlik.com/thread/165611&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854145#M655724</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-26T18:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854146#M655725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA a sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854146#M655725</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-26T18:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854147#M655726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, If your Match table is too small and table is static, you can use Wildmatch in IF cond like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;WildMatch(Territory,'*northeast* , '*west*'), &lt;/SPAN&gt;Pick( WildMatch(Territory,'*northeast* , '*west*') ,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Atlantic&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pacific&lt;/SPAN&gt;') , 'NA' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Match table is too much the values are changing with short period, then do the cross join &amp;amp; search against each values like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataSet:&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Territory &lt;/P&gt;&lt;P&gt;From Dataset;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match_Territory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Coast&lt;/P&gt;&lt;P&gt;From MatchTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Territory ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Coast&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DataSet&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Where Substringcount( Upper(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Territory) , Upper(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Match_Territory))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854147#M655726</guid>
      <dc:creator />
      <dc:date>2015-05-26T18:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854148#M655727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MatchTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;F1,F2&lt;/P&gt;&lt;P&gt;Northeast, Atlantic&lt;/P&gt;&lt;P&gt;West, Pacific&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map1:&lt;/P&gt;&lt;P&gt;MAPPING LOAD F1, '&amp;lt;'&amp;amp;F2&amp;amp;'&amp;gt;' as F2 Resident MatchTable;&lt;/P&gt;&lt;P&gt;Map2:&lt;/P&gt;&lt;P&gt;Mapping LOAD Upper(F1) as F1, '&amp;lt;'&amp;amp;F2&amp;amp;'&amp;gt;' as F2 Resident MatchTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataSet:&lt;/P&gt;&lt;P&gt;LOAD Territory,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Textbetween(MapSubString('Map1',Territory),'&amp;lt;','&amp;gt;') as Result,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Textbetween(MapSubString('Map2',UPPER(Territory)),'&amp;lt;','&amp;gt;') as ResultCaseInsensitive&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;Territory&lt;/P&gt;&lt;P&gt;Sales_NorthEast_123&lt;/P&gt;&lt;P&gt;Manager_xyz_West_012&lt;/P&gt;&lt;P&gt;Manager_Growth_Northeast_123&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Showing a case sensitive or insensitve match. You can replace '&amp;lt;' and '&amp;gt;' with any characters that are not part of your territory text values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854148#M655727</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-26T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854149#M655728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had almost exactly the same, apart from the case insensitive bit ... So not sure if this will still help, but my example attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854149#M655728</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-26T18:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find Substring, and link to another field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854150#M655729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's beautiful! Need to read up a bit on the MapSubString, but it works like a charm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Substring-and-link-to-another-field/m-p/854150#M655729</guid>
      <dc:creator />
      <dc:date>2015-05-26T18:30:22Z</dc:date>
    </item>
  </channel>
</rss>

