<?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: How to Extract text from word in table 1 and compare with table 2 to create table 3 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608494#M176406</link>
    <description>&lt;P&gt;In &lt;STRONG&gt;Power Query (M Language)&lt;/STRONG&gt;, we can dynamically create new columns for each unique category in Table2 and populate them with 1 or 0 based on whether they exist in Table1[Categories/Text]&lt;/P&gt;&lt;PRE&gt;let&lt;BR /&gt;&lt;BR /&gt;// Load Table1 and Table2&lt;BR /&gt;Source = Table1,&lt;BR /&gt;CategoriesList = Table.ToList(Table2), // Get unique categories&lt;BR /&gt;// Add columns dynamically, fixing column reference&lt;BR /&gt;AddColumns = List.Accumulate(&lt;BR /&gt;CategoriesList,&lt;BR /&gt;Source,&lt;BR /&gt;(tbl, category) =&amp;gt;&lt;BR /&gt;Table.AddColumn(&lt;BR /&gt;tbl,&lt;BR /&gt;category,&lt;BR /&gt;each if Text.Contains(Record.Field(_, "Categories/Text"), category) then 1 else 0,&lt;BR /&gt;Int64.Type&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;in&lt;BR /&gt;AddColumns&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Mar 2025 11:09:06 GMT</pubDate>
    <dc:creator>GaloyanTelman</dc:creator>
    <dc:date>2025-03-13T11:09:06Z</dc:date>
    <item>
      <title>How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608313#M176395</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 09:45:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608313#M176395</guid>
      <dc:creator>Chika100</dc:creator>
      <dc:date>2025-03-13T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608443#M176402</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238185" data-lia-user-login="Chika100" class="lia-mention lia-mention-user"&gt;Chika100&lt;/a&gt;&amp;nbsp;Use the following DAX formula to create Table 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table3 = &lt;BR /&gt;VAR Categories = VALUES('Table2'[Categories])&lt;BR /&gt;RETURN&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;'Table1',&lt;BR /&gt;"BMW", IF(CONTAINSSTRING('Table1'[Categories/Text], "BMW"), 1, 0),&lt;BR /&gt;"Ford", IF(CONTAINSSTRING('Table1'[Categories/Text], "Ford"), 1, 0),&lt;BR /&gt;"Ferrari", IF(CONTAINSSTRING('Table1'[Categories/Text], "Ferrari"), 1, 0),&lt;BR /&gt;"Mercedes", IF(CONTAINSSTRING('Table1'[Categories/Text], "Mercedes"), 1, 0),&lt;BR /&gt;"Tesla", IF(CONTAINSSTRING('Table1'[Categories/Text], "Tesla"), 1, 0),&lt;BR /&gt;"Porsche", IF(CONTAINSSTRING('Table1'[Categories/Text], "Porsche"), 1, 0),&lt;BR /&gt;"BYD", IF(CONTAINSSTRING('Table1'[Categories/Text], "BYD"), 1, 0),&lt;BR /&gt;"MG", IF(CONTAINSSTRING('Table1'[Categories/Text], "MG"), 1, 0),&lt;BR /&gt;"Audi", IF(CONTAINSSTRING('Table1'[Categories/Text], "Audi"), 1, 0),&lt;BR /&gt;"Skoda", IF(CONTAINSSTRING('Table1'[Categories/Text], "Skoda"), 1, 0),&lt;BR /&gt;"Honda", IF(CONTAINSSTRING('Table1'[Categories/Text], "Honda"), 1, 0),&lt;BR /&gt;"Kia", IF(CONTAINSSTRING('Table1'[Categories/Text], "Kia"), 1, 0),&lt;BR /&gt;"Toyota", IF(CONTAINSSTRING('Table1'[Categories/Text], "Toyota"), 1, 0)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 10:44:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608443#M176402</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-13T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608494#M176406</link>
      <description>&lt;P&gt;In &lt;STRONG&gt;Power Query (M Language)&lt;/STRONG&gt;, we can dynamically create new columns for each unique category in Table2 and populate them with 1 or 0 based on whether they exist in Table1[Categories/Text]&lt;/P&gt;&lt;PRE&gt;let&lt;BR /&gt;&lt;BR /&gt;// Load Table1 and Table2&lt;BR /&gt;Source = Table1,&lt;BR /&gt;CategoriesList = Table.ToList(Table2), // Get unique categories&lt;BR /&gt;// Add columns dynamically, fixing column reference&lt;BR /&gt;AddColumns = List.Accumulate(&lt;BR /&gt;CategoriesList,&lt;BR /&gt;Source,&lt;BR /&gt;(tbl, category) =&amp;gt;&lt;BR /&gt;Table.AddColumn(&lt;BR /&gt;tbl,&lt;BR /&gt;category,&lt;BR /&gt;each if Text.Contains(Record.Field(_, "Categories/Text"), category) then 1 else 0,&lt;BR /&gt;Int64.Type&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;in&lt;BR /&gt;AddColumns&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Mar 2025 11:09:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608494#M176406</guid>
      <dc:creator>GaloyanTelman</dc:creator>
      <dc:date>2025-03-13T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608558#M176412</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 11:50:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4608558#M176412</guid>
      <dc:creator>Chika100</dc:creator>
      <dc:date>2025-03-13T11:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4623222#M176960</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238185" data-lia-user-login="Chika100" class="lia-mention lia-mention-user"&gt;Chika100&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Did the reply bhanu_gautam&amp;nbsp;offered help you solve the problem, if it helps, you can consider to accept it as a solution so that more user can refer to, or if you have other problems, you can offer some information so that can provide more suggestion for you.&lt;/P&gt;
&lt;P&gt;Best regard,&lt;/P&gt;
&lt;P&gt;Lucy Chen&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 02:13:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4623222#M176960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-25T02:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4663084#M178566</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238185" data-lia-user-login="Chika100" class="lia-mention lia-mention-user"&gt;Chika100&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved?&lt;/P&gt;
&lt;P&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 11:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4663084#M178566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-22T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract text from word in table 1 and compare with table 2 to create table 3</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4674200#M179013</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1238185" target="_blank"&gt;@Chika100&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved?&lt;/P&gt;
&lt;P&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:09:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Extract-text-from-word-in-table-1-and-compare-with-table/m-p/4674200#M179013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-30T08:09:50Z</dc:date>
    </item>
  </channel>
</rss>

