<?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: Calculated Column to return value from other table with condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/785136#M4279</link>
    <description>&lt;P&gt;Well, probably could do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Column = 
VAR __id = [ID]
RETURN
MAXX(FILTER(ALL('Table 2'),'Table 2'[ID] = __id &amp;amp;&amp;amp; [Author] = "John"),[Area])&lt;/PRE&gt;
&lt;P&gt;Something like that...&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 02:16:30 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2019-09-06T02:16:30Z</dc:date>
    <item>
      <title>Calculated Column to return value from other table with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/785107#M4278</link>
      <description>&lt;P&gt;Table 1&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Newcolumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Author&lt;/TD&gt;&lt;TD&gt;Area&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Rob&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Rob&lt;/TD&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Rob&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a calculated column in Table 1 to bring in the value from Table2 where Author = "John"&lt;/P&gt;&lt;P&gt;Expected result&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;NewColumn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX expression? I have the model with direct query so cant use LOOKUPVALUE function.&lt;/P&gt;&lt;P&gt;Please help...Appreciate your help...Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 02:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/785107#M4278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-06T02:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column to return value from other table with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/785136#M4279</link>
      <description>&lt;P&gt;Well, probably could do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Column = 
VAR __id = [ID]
RETURN
MAXX(FILTER(ALL('Table 2'),'Table 2'[ID] = __id &amp;amp;&amp;amp; [Author] = "John"),[Area])&lt;/PRE&gt;
&lt;P&gt;Something like that...&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 02:16:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/785136#M4279</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-09-06T02:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column to return value from other table with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/787421#M4383</link>
      <description>&lt;P&gt;Thank you Greg for the solution. As our requirement slightly changed, we ened up creating a measure that returns the same value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate you help..&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 16:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column-to-return-value-from-other-table-with/m-p/787421#M4383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T16:02:08Z</dc:date>
    </item>
  </channel>
</rss>

