<?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 Update column based on matching in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3554959#M136812</link>
    <description>&lt;P&gt;Part of my code looks&amp;nbsp; like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    COUNTROWS( FILTER ('Table_A', 'Table_A'[Agent ID/EMPLID] = 'Table_B'[Agent Number] &amp;amp;&amp;amp;
                        'Table_A'[First Name] = 'Table_B'[Agent First Name] &amp;amp;&amp;amp;
                        'Table_A'[Last Name] = 'Table_B'[Agent Last Name] &amp;amp;&amp;amp;
                        'Table_A'[Birthdate] = 'Table_B'[Date Of Birth]
             )) &amp;gt; 0 , "Found",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to update one of the columns in Table B based on what row was match found? So if the match was found in row 2 then column in Table B second row should be updated. I was hoping to do this in DAX instead of PQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 19:52:44 GMT</pubDate>
    <dc:creator>stribor45</dc:creator>
    <dc:date>2023-11-27T19:52:44Z</dc:date>
    <item>
      <title>Update column based on matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3554959#M136812</link>
      <description>&lt;P&gt;Part of my code looks&amp;nbsp; like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    COUNTROWS( FILTER ('Table_A', 'Table_A'[Agent ID/EMPLID] = 'Table_B'[Agent Number] &amp;amp;&amp;amp;
                        'Table_A'[First Name] = 'Table_B'[Agent First Name] &amp;amp;&amp;amp;
                        'Table_A'[Last Name] = 'Table_B'[Agent Last Name] &amp;amp;&amp;amp;
                        'Table_A'[Birthdate] = 'Table_B'[Date Of Birth]
             )) &amp;gt; 0 , "Found",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to update one of the columns in Table B based on what row was match found? So if the match was found in row 2 then column in Table B second row should be updated. I was hoping to do this in DAX instead of PQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3554959#M136812</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2023-11-27T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update column based on matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555146#M136820</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say "update one of the columns in Table B", it sounds like you are wanting to actually change the data itself.&amp;nbsp; Is that right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This cannot be done with a measure, or even a calculated column.&lt;/P&gt;&lt;P&gt;I could be mistaken, but I believe the only way to alter data is either in the data source itself or in Power Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I'm confused about what you are asking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 21:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555146#M136820</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-11-27T21:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update column based on matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555211#M136824</link>
      <description>&lt;P&gt;yes i do want to change the date&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 22:41:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555211#M136824</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2023-11-27T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update column based on matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555213#M136825</link>
      <description>&lt;P&gt;OK, yeah.&amp;nbsp; Maybe someone can correct my understanding if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as far as I am aware, you can't change source model data with measures or calculated columns.&lt;/P&gt;&lt;P&gt;Only way I know to do it is in the source system itself or in Power Query.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 22:43:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Update-column-based-on-matching/m-p/3555213#M136825</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-11-27T22:43:22Z</dc:date>
    </item>
  </channel>
</rss>

