<?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: Match 2 comma separated lists in a resource efficient way in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981883#M81024</link>
    <description>&lt;P&gt;You may try it in this way:&lt;/P&gt;
&lt;P&gt;load *, rowno() as RowNo, wildmatch(List1, '*' &amp;amp; ListPart &amp;amp; '*') as Flag;&lt;BR /&gt;load *, subfield(List2,',') as ListPart, recno() as RecNo;&lt;BR /&gt;load * inline [&lt;BR /&gt;OrderID, List1, List2&lt;BR /&gt;123123, 'TOMMY,MARTIN,CHARLIE,VICTORIA', 'FRED,VICTOR,VICTORIA,ELLEN,JOE'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:05:20 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-09-16T09:05:20Z</dc:date>
    <item>
      <title>Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981536#M80994</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to find a resource efficient solution to see if any value in the first comma separated list matches any value in the second comma separated list (case insensitive).&lt;BR /&gt;&lt;BR /&gt;list1 = 'TOMMY,MARTIN,CHARLIE,VICTORIA';&lt;BR /&gt;list2 = 'FRED,VICTOR,VICTORIA,ELLEN,JOE';&lt;/P&gt;
&lt;P&gt;if (wildMatch(list1, list2), 'matches', 'no matches')&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 13:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981536#M80994</guid>
      <dc:creator>fredrik_olsson</dc:creator>
      <dc:date>2022-09-15T13:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981549#M80995</link>
      <description>&lt;P&gt;Probably the easiest way to do this would be to subfield() the first list (in script) and then wildmatch the subfielded list with the second list. Whether or not this would be resource efficient depends on both the number of rows this needs to be applied to and the typical length of the lists.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 13:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981549#M80995</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-09-15T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981556#M80996</link>
      <description>&lt;P&gt;It's applied to approx 500.000 rows in the load script.&amp;nbsp;&lt;BR /&gt;Let's say the data after some preparation looks something like this:&lt;/P&gt;
&lt;P&gt;OrderID, List1, List2&lt;BR /&gt;123123,&amp;nbsp;&lt;SPAN&gt;'TOMMY,MARTIN,CHARLIE,VICTORIA',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'FRED,VICTOR,VICTORIA,ELLEN,JOE'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Is there a faster / more efficient way of doing it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 13:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981556#M80996</guid>
      <dc:creator>fredrik_olsson</dc:creator>
      <dc:date>2022-09-15T13:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981567#M80998</link>
      <description>&lt;P&gt;Did you try the suggestion from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt; ? Regarding to your provided information such subfield-load would create 2 M of records and a wildmatch against it should also not take very long. If it's too long what would be your expectation?&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981567#M80998</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-15T14:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981876#M81023</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;for trying to help out.&lt;BR /&gt;&lt;BR /&gt;I tried with subfield but I can't get a match for same values in different locations in the different lists:&lt;BR /&gt;&lt;BR /&gt;=if (WILDMATCH('A1,B2', SubField('C3,A1', ',')), 'Match', 'No match')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't get A1 to match in the example above. Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981876#M81023</guid>
      <dc:creator>fredrik_olsson</dc:creator>
      <dc:date>2022-09-16T08:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981883#M81024</link>
      <description>&lt;P&gt;You may try it in this way:&lt;/P&gt;
&lt;P&gt;load *, rowno() as RowNo, wildmatch(List1, '*' &amp;amp; ListPart &amp;amp; '*') as Flag;&lt;BR /&gt;load *, subfield(List2,',') as ListPart, recno() as RecNo;&lt;BR /&gt;load * inline [&lt;BR /&gt;OrderID, List1, List2&lt;BR /&gt;123123, 'TOMMY,MARTIN,CHARLIE,VICTORIA', 'FRED,VICTOR,VICTORIA,ELLEN,JOE'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1981883#M81024</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-16T09:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1982786#M81108</link>
      <description>&lt;P&gt;another solution might be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;If(Evaluate('WildMatch('','&amp;amp;List1&amp;amp;','&amp;amp;Chr(39)&amp;amp;',''*,'&amp;amp;Replace(List2,',',',*'',''*,')&amp;amp;',*'')'),'matches', 'no matches') as Match&lt;/LI-CODE&gt;
&lt;P&gt;though not quite sure about the performance of the string operations and evaluation in comparison to the subfield approach.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 21:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1982786#M81108</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-09-19T21:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 comma separated lists in a resource efficient way</title>
      <link>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1983289#M81137</link>
      <description>&lt;P&gt;slightly shorter&lt;BR /&gt;&lt;BR /&gt;If(Evaluate('WildMatch('','&amp;amp;List1&amp;amp;','',''*,'&amp;amp;Replace(List2,',',',*'',''*,')&amp;amp;',*'')'),'matches', 'no matches') as Match&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 17:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Match-2-comma-separated-lists-in-a-resource-efficient-way/m-p/1983289#M81137</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-09-20T17:06:56Z</dc:date>
    </item>
  </channel>
</rss>

