<?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 Approx Match 2 Sources Relationship in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2666013#M37570</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 data sources that i'd like to connect on UPC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One source has 10 characters while the other has an 11th (check digit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source A:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;7430000070&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Soruce B:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;74300000701&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;38137003664&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Source b:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;381370036647&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick part is some Source A codes are 10 digits while others are 11. I tried cutting off the 11th to make them all 10 and it errored out because the last digit can make a different between products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideal solution: Like in Excel, we use approximate matches. Is that possible? I need to create a relatinoship between source A and B.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 20:22:07 GMT</pubDate>
    <dc:creator>ethanlsaul</dc:creator>
    <dc:date>2022-07-27T20:22:07Z</dc:date>
    <item>
      <title>Approx Match 2 Sources Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2666013#M37570</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 data sources that i'd like to connect on UPC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One source has 10 characters while the other has an 11th (check digit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source A:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;7430000070&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Soruce B:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;74300000701&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;38137003664&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Source b:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;381370036647&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick part is some Source A codes are 10 digits while others are 11. I tried cutting off the 11th to make them all 10 and it errored out because the last digit can make a different between products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideal solution: Like in Excel, we use approximate matches. Is that possible? I need to create a relatinoship between source A and B.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 20:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2666013#M37570</guid>
      <dc:creator>ethanlsaul</dc:creator>
      <dc:date>2022-07-27T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Approx Match 2 Sources Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2668199#M37594</link>
      <description>&lt;P&gt;Use Table.AddColumn() with a custom generator function . There you can merge tables based on the first ten characters that match etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sanitized sample data that fully covers your issue.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 21:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2668199#M37594</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-07-28T21:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Approx Match 2 Sources Relationship</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2672187#M37644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/392053"&gt;@ethanlsaul&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I suggest you to add a calculated column in Source B to help relate two tables.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Approx Match = 
VAR _LEN = LEN('Source B'[Column1])
RETURN
LEFT('Source B'[Column1],_LEN - 1)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1659342459439.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/757418iF6BC93B6E7BA818C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1659342459439.png" alt="RicoZhou_0-1659342459439.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1659342472939.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/757419i78C782EE32D6ABD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1659342472939.png" alt="RicoZhou_1-1659342472939.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 08:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Approx-Match-2-Sources-Relationship/m-p/2672187#M37644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-01T08:28:04Z</dc:date>
    </item>
  </channel>
</rss>

