<?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: Left Join with a list of values in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31308#M226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this answered your question please mark the answer as "answered"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 20:36:07 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-04-20T20:36:07Z</dc:date>
    <item>
      <title>Left Join with a list of values</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31304#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an excel file with my data.&lt;/P&gt;&lt;P&gt;This data contain, inter alia, a field with cities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a map showing some data of my cities.&lt;/P&gt;&lt;P&gt;But some cities are not recognized by Qlik Sense (maybe a question of name syntax).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I retrieved from internet an excel file with the list of world cities, with their longitude and latitude.&lt;/P&gt;&lt;P&gt;This file is built like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City Name / Alternative names / Longitude / Latitude&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column 'Alternative names' is a list of names separeted by ','&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to left join this table to my excel file but I don't know how to proceed when my city is listed in the 'Alternative names' column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In data file, I have the city Khor Fakkan.&lt;/P&gt;&lt;P&gt;In the world cities file, this city is listed as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City Name /&amp;nbsp; Alternative names / Longitude / Latitude&lt;/P&gt;&lt;P&gt;Khawr Fakkān / Khawr al Fakkān,Khor Fakhan,&lt;STRONG&gt;Khor Fakkan&lt;/STRONG&gt;,Khor Fakkān,Khor al Fakhan / 56.34199 / 25.33132&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I proceed left join this table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 08:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31304#M222</guid>
      <dc:creator>takama13</dc:creator>
      <dc:date>2018-04-13T08:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join with a list of values</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31305#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather do a MAPPING LOAD and then use the ApplyMap() function. It should be simpler and quicker than a left join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1523629101302855" jivemacro_uid="_1523629101302855"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ALTERNATIVE_CITY_NAME&lt;/STRONG&gt;S:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MAPPING&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;&amp;nbsp; SubField( [City Name] &amp;amp; ',' &amp;amp; [Alternative names] ,',' ) AS CityName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Longitude &amp;amp; ',' &amp;amp; Latitude AS LonLat&amp;nbsp;&amp;nbsp;&amp;nbsp; // Mapping table can only have two columns - so have to join these&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;City Name /&amp;nbsp; Alternative names / Longitude / Latitude&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Khawr Fakkān / Khawr al Fakkān,Khor Fakhan,Khor Fakkan,Khor Fakkān,Khor al Fakhan / 56.34199 / 25.33132&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Göteborg / Gøteborg, Gothenburg / 11.974560 / 57.708870&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;München / Munich / 48.137154 / 11.576124&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;] (delimiter is '/');&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;CITIES:&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;&amp;nbsp; CityName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; SubField(LonLat,',',1) AS Longitude,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; SubField(LonLat,',',2) AS Latitude;&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;&amp;nbsp; CityName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; ApplyMap('ALTERNATIVE_CITY_NAMES',CityName) AS LonLat&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CityName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Khawr al Fakkān&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Munich&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Gøteborg&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31305#M223</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-13T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join with a list of values</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31306#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite easy to do a left join too and it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15236308071286507" jivemacro_uid="_15236308071286507"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CITIES:&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;&amp;nbsp; CityName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CityName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Khawr al Fakkān&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Munich&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Gøteborg&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;LEFT JOIN&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;ALTERNATIVE_CITY_NAMES:&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;&amp;nbsp; SubField( [City Name] &amp;amp; ',' &amp;amp; [Alternative names] ,',' ) AS CityName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Longitude,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Latitude&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;City Name /&amp;nbsp; Alternative names / Longitude / Latitude&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Khawr Fakkān / Khawr al Fakkān,Khor Fakhan,Khor Fakkan,Khor Fakkān,Khor al Fakhan / 56.34199 / 25.33132&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Göteborg / Gøteborg, Gothenburg / 11.974560 / 57.708870&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;München / Munich / 48.137154 / 11.576124&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;] (delimiter is '/');&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines 4-9 would be replace by a FROM statement - and you would probably have that done with the lines 18-23.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31306#M224</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-13T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join with a list of values</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31307#M225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working perfectly.&lt;/P&gt;&lt;P&gt;Was not working at the beginning until I found that JOIN is case sensitive.&lt;/P&gt;&lt;P&gt;I solved this issue with the UPPER function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 08:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31307#M225</guid>
      <dc:creator>takama13</dc:creator>
      <dc:date>2018-04-20T08:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join with a list of values</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31308#M226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this answered your question please mark the answer as "answered"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 20:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Left-Join-with-a-list-of-values/m-p/31308#M226</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-20T20:36:07Z</dc:date>
    </item>
  </channel>
</rss>

