<?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 Write a value to table based on column matching in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511312#M69664</link>
    <description>&lt;P&gt;I'm not sure I'm asking the question correctly, but here it goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables. Table1 has these columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client Name&lt;/P&gt;&lt;P&gt;Unique ID&lt;/P&gt;&lt;P&gt;Previous Year's Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2 has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client Name&lt;/P&gt;&lt;P&gt;...and a bunch of other columns not relevant here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to pull the Unique ID and PY Revenue values from Table1 into Table2, by matching on Client Name. I can't quite figure out how to do this without throwing errors. And yes...I have to match on Client Name in this case. Help??&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 17:30:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-12T17:30:54Z</dc:date>
    <item>
      <title>Write a value to table based on column matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511312#M69664</link>
      <description>&lt;P&gt;I'm not sure I'm asking the question correctly, but here it goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables. Table1 has these columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client Name&lt;/P&gt;&lt;P&gt;Unique ID&lt;/P&gt;&lt;P&gt;Previous Year's Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table2 has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client Name&lt;/P&gt;&lt;P&gt;...and a bunch of other columns not relevant here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to pull the Unique ID and PY Revenue values from Table1 into Table2, by matching on Client Name. I can't quite figure out how to do this without throwing errors. And yes...I have to match on Client Name in this case. Help??&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 17:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511312#M69664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-12T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Write a value to table based on column matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511426#M69669</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Besides merging the two tables in Power Query you can try as calculated columns in Table 2.&lt;/P&gt;&lt;P&gt;Unique ID = LOOKUPVALUE(Table1[Unique ID], Table1[Client Name], Table2[Client Name])&lt;/P&gt;&lt;P&gt;and then rpeat same pattern for PY revenue.&lt;/P&gt;&lt;P&gt;PY Rev = LOOKUPVALUE(Table1[Previous Years Revenue], Table1[ClientName], Table2[ClientName])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this solves this for you. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 18:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511426#M69669</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-12T18:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Write a value to table based on column matching</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511570#M69681</link>
      <description>&lt;P&gt;This did the trick, thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 20:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-a-value-to-table-based-on-column-matching/m-p/2511570#M69681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-12T20:56:31Z</dc:date>
    </item>
  </channel>
</rss>

