<?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: Lookup with logic on multiple rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178373#M114829</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543110" data-lia-user-login="MAruna" class="lia-mention lia-mention-user"&gt;MAruna&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
MAXX (
    FILTER (
        UNION (
            SELECTCOLUMNS ( Table2, "@ID", Table2[Empid], "@Region", Table2[Region] ),
            SELECTCOLUMNS ( Table2, "@ID", Table2[Canid], "@Region", Table2[Region] )
        ),
        [@ID] = Table1[id]
            &amp;amp;&amp;amp; [@ID] &amp;lt;&amp;gt; BLANK ()
    ),
    [@Region]
)&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 08 Apr 2023 09:09:10 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-08T09:09:10Z</dc:date>
    <item>
      <title>Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178292#M114814</link>
      <description>&lt;P&gt;I Have two different tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1:-&lt;/P&gt;&lt;P&gt;I'd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'd Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Region&lt;/P&gt;&lt;P&gt;123.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Legacy&lt;BR /&gt;300&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EmpId&lt;BR /&gt;145&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CanID&lt;BR /&gt;301&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EmpId&lt;BR /&gt;350&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EmpId&lt;BR /&gt;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CanId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;EmpId&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CanId&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Region&lt;BR /&gt;300&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EA&lt;BR /&gt;301&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 145&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NORTH&lt;BR /&gt;350&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EAST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logic :-&amp;nbsp; &amp;gt;= 300 EmpId&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;300&amp;nbsp; CanId&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Q)Need to get Region In table 1 based on table2&lt;BR /&gt;can any one tell me the Dax function to get this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thankyou in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 05:36:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178292#M114814</guid>
      <dc:creator>MAruna</dc:creator>
      <dc:date>2023-04-08T05:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178314#M114817</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543110" data-lia-user-login="MAruna" class="lia-mention lia-mention-user"&gt;MAruna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how are the two tables related?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 06:35:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178314#M114817</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-08T06:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178325#M114818</link>
      <description>&lt;P&gt;Based on ID's I am taking&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 06:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178325#M114818</guid>
      <dc:creator>MAruna</dc:creator>
      <dc:date>2023-04-08T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178339#M114823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543110" data-lia-user-login="MAruna" class="lia-mention lia-mention-user"&gt;MAruna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming no relationship between the two tables&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;MAXX (&lt;BR /&gt;FILTER (&lt;BR /&gt;UNION (&lt;BR /&gt;SELECTCOLUMNS ( Table2, "@ID", Table2[Empid], "@Region", Table2[Region] ),&lt;BR /&gt;SELECTCOLUMNS ( Table2, "@ID", Table2[Canid], "@Region", Table2[Region] )&lt;BR /&gt;),&lt;BR /&gt;[@ID] = Table1[id]&lt;BR /&gt;),&lt;BR /&gt;[@Region]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 07:37:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178339#M114823</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-08T07:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178370#M114827</link>
      <description>&lt;P class="lia-align-left"&gt;Thank you @tamerj,&lt;/P&gt;&lt;P class="lia-align-left"&gt;In ID's field some rows are null values,by using your dax formula im getting region for null aslo.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Could you please help me to get rid off from null values&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 08:56:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178370#M114827</guid>
      <dc:creator>MAruna</dc:creator>
      <dc:date>2023-04-08T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with logic on multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178373#M114829</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543110" data-lia-user-login="MAruna" class="lia-mention lia-mention-user"&gt;MAruna&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
MAXX (
    FILTER (
        UNION (
            SELECTCOLUMNS ( Table2, "@ID", Table2[Empid], "@Region", Table2[Region] ),
            SELECTCOLUMNS ( Table2, "@ID", Table2[Canid], "@Region", Table2[Region] )
        ),
        [@ID] = Table1[id]
            &amp;amp;&amp;amp; [@ID] &amp;lt;&amp;gt; BLANK ()
    ),
    [@Region]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 08 Apr 2023 09:09:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-with-logic-on-multiple-rows/m-p/3178373#M114829</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-08T09:09:10Z</dc:date>
    </item>
  </channel>
</rss>

