<?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 a phone number to a list of country codes in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/518771#M242575</link>
    <description>&lt;P&gt;This does not work in Power BI Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help to convert this to Power Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=LOOKUP(0,-SEARCH(LEFT(A1,LEN(CountryCodes!$D$1:$D$6))+0,CountryCodes!$D$1:$D$6),CountryCodes!$E$1:$E$6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 12:28:51 GMT</pubDate>
    <dc:creator>grprem81us</dc:creator>
    <dc:date>2018-09-18T12:28:51Z</dc:date>
    <item>
      <title>Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62428#M25709</link>
      <description>&lt;P&gt;I am trying to match a phone number to a list of country codes in excel to know the country.&lt;/P&gt;&lt;P&gt;The problem is that I want to match the first x characters of the phone number to the country code (where x is the length of the country code in the list) as not all the country codes have the same length (eg. US:1 UK: 44 Jordan:962, UAE:971, Bahrain:973).&lt;/P&gt;&lt;P&gt;I was able to do it in Excel via the following formula, but now struggling to convert it to Power BI/Query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=LOOKUP(0,-SEARCH(LEFT(A1,LEN(CountryCodes!$D$1:$D$6))+0,CountryCodes!$D$1:$D$6),CountryCodes!$E$1:$E$6)&lt;BR /&gt;&lt;BR /&gt;where CountryCodes!D1:D6 - Country Code&lt;BR /&gt;CountryCodes!E1:E6 - Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this feasible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 21:37:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62428#M25709</guid>
      <dc:creator>Nick</dc:creator>
      <dc:date>2016-08-25T21:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62431#M25712</link>
      <description>&lt;P&gt;SAMPLE DATA PLEASE SIR&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 21:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62431#M25712</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-08-25T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62437#M25713</link>
      <description>&lt;P&gt;Is this enough?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&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>Thu, 25 Aug 2016 21:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62437#M25713</guid>
      <dc:creator>Nick</dc:creator>
      <dc:date>2016-08-25T21:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62448#M25718</link>
      <description>&lt;P&gt;THIS WOULD BE OF GREAT HELP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.powerquery.training/portfolio/replicate-excels-vlookup-function/" target="_blank"&gt;https://www.powerquery.training/portfolio/replicate-excels-vlookup-function/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62448#M25718</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-08-25T22:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62452#M25722</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried already yesterday but could not get it work so far since VLOOKUP approwimative match doesn't help really.&lt;/P&gt;&lt;P&gt;Here is a false result for anumber from North America:&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:59:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62452#M25722</guid>
      <dc:creator>Nick</dc:creator>
      <dc:date>2016-08-25T22:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62745#M25845</link>
      <description>&lt;P&gt;Hi Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the the link to the country codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a conditional column in the powerquery based on the below list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B5-C_3XrFPdOZXkwNkZXb3pGdGs/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/0B5-C_3XrFPdOZXkwNkZXb3pGdGs/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would solve your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a really lenghty solution but it definitely works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/62745#M25845</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-08-26T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/63000#M25950</link>
      <description>Great thanks! Had to fix some syntax error (lowercase and speeling syntax) but all good. Thanks again, Nick</description>
      <pubDate>Sun, 28 Aug 2016 21:21:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/63000#M25950</guid>
      <dc:creator>Nick</dc:creator>
      <dc:date>2016-08-28T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/518771#M242575</link>
      <description>&lt;P&gt;This does not work in Power BI Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help to convert this to Power Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=LOOKUP(0,-SEARCH(LEFT(A1,LEN(CountryCodes!$D$1:$D$6))+0,CountryCodes!$D$1:$D$6),CountryCodes!$E$1:$E$6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:28:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/518771#M242575</guid>
      <dc:creator>grprem81us</dc:creator>
      <dc:date>2018-09-18T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Match a phone number to a list of country codes</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/3571006#M1175398</link>
      <description>&lt;P&gt;can you send the link ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 17:09:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Match-a-phone-number-to-a-list-of-country-codes/m-p/3571006#M1175398</guid>
      <dc:creator>piun</dc:creator>
      <dc:date>2023-12-06T17:09:42Z</dc:date>
    </item>
  </channel>
</rss>

