<?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 Classify data based on another table (fuzzy match or CONTAINSSTRING) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268132#M169224</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to group tickets into product category based on comparing one table to another. The match on ticket type from one table to another isn't exact. It's more like if the ticket string string in Table 1(AA0765AA) contains a part of the one in Table 2 (765), then that will be classified as Bananas. It's not an exact comparison. The output table will look like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose CONTAINSSTRING will work. However I can't seem to get the syntax right. I'm trying group Table 1 into Type and do some analysis. Can someone help me with this please? Model &lt;A href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F10qlOKjuD_R_XJq-oNZc16FsDKKsbnrJi%2Fview%3Fusp%3Ddrivesdk&amp;amp;data=05%7C02%7CArun.Mani%40bakerhughes.com%7Caf8d566c362949a63d7408dcfc2c5488%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638662514554273910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=FBJzHQuQJwzxihlz7sJFod7Zca3Q00QUPNHIH5TKLR4%3D&amp;amp;reserved=0" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 17:24:54 GMT</pubDate>
    <dc:creator>amani1980</dc:creator>
    <dc:date>2024-11-03T17:24:54Z</dc:date>
    <item>
      <title>Classify data based on another table (fuzzy match or CONTAINSSTRING)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268132#M169224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to group tickets into product category based on comparing one table to another. The match on ticket type from one table to another isn't exact. It's more like if the ticket string string in Table 1(AA0765AA) contains a part of the one in Table 2 (765), then that will be classified as Bananas. It's not an exact comparison. The output table will look like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose CONTAINSSTRING will work. However I can't seem to get the syntax right. I'm trying group Table 1 into Type and do some analysis. Can someone help me with this please? Model &lt;A href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F10qlOKjuD_R_XJq-oNZc16FsDKKsbnrJi%2Fview%3Fusp%3Ddrivesdk&amp;amp;data=05%7C02%7CArun.Mani%40bakerhughes.com%7Caf8d566c362949a63d7408dcfc2c5488%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638662514554273910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=FBJzHQuQJwzxihlz7sJFod7Zca3Q00QUPNHIH5TKLR4%3D&amp;amp;reserved=0" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 17:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268132#M169224</guid>
      <dc:creator>amani1980</dc:creator>
      <dc:date>2024-11-03T17:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Classify data based on another table (fuzzy match or CONTAINSSTRING)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268152#M169226</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="831127" data-lia-user-login="amani1980" class="lia-mention lia-mention-user"&gt;amani1980&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to extract the numbers from the string&lt;/P&gt;
&lt;P&gt;1) in Power Query, how:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://monocroft.com/extract-numbers-from-a-string-in-power-bi/" target="_blank" rel="noopener"&gt;https://monocroft.com/extract-numbers-from-a-string-in-power-bi/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) If you insist to do it with DAX code and supposing the dataset is as uniform as we see in the sample, you can try to write a calculated column with DAX like:&lt;/P&gt;
&lt;P&gt;ticket=&lt;/P&gt;
&lt;P&gt;VALUE(MID(table1[Ticket No], 4, 4))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then try to join with table2 and use RELATED to get the type column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 18:17:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268152#M169226</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-03T18:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Classify data based on another table (fuzzy match or CONTAINSSTRING)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268455#M169235</link>
      <description>&lt;P&gt;Use Power Query and in the merge command check the fuzzy merging as highlighted below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 03:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Classify-data-based-on-another-table-fuzzy-match-or/m-p/4268455#M169235</guid>
      <dc:creator>Omid_Motamedise</dc:creator>
      <dc:date>2024-11-04T03:08:36Z</dc:date>
    </item>
  </channel>
</rss>

