<?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: Intersection of 3 tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025464#M45253</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="194092" data-lia-user-login="shreyaks1009" class="lia-mention lia-mention-user"&gt;shreyaks1009&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be helpful if you could share some sample data with Expected output, it helps to give answer more specifically. In the meantime you can try to create a new table with below code to get your desired output:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 4 =
VAR _tab1 =
    DISTINCT ( Table1[ID] )
VAR _tab2 =
    DISTINCT ( Table2[ID] )
VAR _tab3 =
    DISTINCT ( Table3[ID] )
RETURN
    DISTINCT ( INTERSECT ( UNION ( _tab1, _tab2 ), _tab3 ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 08:21:36 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2021-08-19T08:21:36Z</dc:date>
    <item>
      <title>Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025259#M45242</link>
      <description>&lt;P&gt;I have 3 tables with the same columns, including an ID column, but different data. I want the intersection of all these 3 tables and find the list of IDs that are common to all three. How can I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 07:16:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025259#M45242</guid>
      <dc:creator>shreyaks1009</dc:creator>
      <dc:date>2021-08-19T07:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025442#M45250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="194092" data-lia-user-login="shreyaks1009" class="lia-mention lia-mention-user"&gt;shreyaks1009&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use RELATED function or LOOKUPVALUE in this case.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/related-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/related-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Mark this as a solution if I aswered your question.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:13:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025442#M45250</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-19T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025464#M45253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="194092" data-lia-user-login="shreyaks1009" class="lia-mention lia-mention-user"&gt;shreyaks1009&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be helpful if you could share some sample data with Expected output, it helps to give answer more specifically. In the meantime you can try to create a new table with below code to get your desired output:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 4 =
VAR _tab1 =
    DISTINCT ( Table1[ID] )
VAR _tab2 =
    DISTINCT ( Table2[ID] )
VAR _tab3 =
    DISTINCT ( Table3[ID] )
RETURN
    DISTINCT ( INTERSECT ( UNION ( _tab1, _tab2 ), _tab3 ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025464#M45253</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-19T08:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025506#M45256</link>
      <description>&lt;P&gt;Interesting.. I will try this. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info on data -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 [ID] = {a, b, c, d, e, f, p, q, r, x, y, z}&lt;/P&gt;&lt;P&gt;Table 2 [ID] = {d, e, g, h, k, l, m, r, w, x, y}&lt;/P&gt;&lt;P&gt;Table 3 [ID] = {a, c, d, e, j, k, r, x}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the output -&lt;/P&gt;&lt;P&gt;Table 4 [ID] = {d, e, r, x}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I have the following solution -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 5 = {Inner Join (Table 1, Table 2)}&lt;/P&gt;&lt;P&gt;Table 6 = {Inner Join (Table 5, Table 3)}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 6 is giving me the output I need. Would like to learn a more efficient way.&lt;/P&gt;&lt;P&gt;Apologies if the syntax for describing my problem is confusing. First time posting in the forum. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:37:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025506#M45256</guid>
      <dc:creator>shreyaks1009</dc:creator>
      <dc:date>2021-08-19T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025527#M45257</link>
      <description>&lt;P&gt;Thanks for your help. Unfortunately, these solutions do not help with my problem. Tried to use them. All of the functions are targeted for 2 tables. I am hoping to learn a solution which gives me intersection of 3 similar datasets like in a Venn Diagram.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025527#M45257</guid>
      <dc:creator>shreyaks1009</dc:creator>
      <dc:date>2021-08-19T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025571#M45262</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="194092" data-lia-user-login="shreyaks1009" class="lia-mention lia-mention-user"&gt;shreyaks1009&lt;/a&gt;&amp;nbsp;, You can update your code as below:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 4 = 
VAR _tab1 =
    DISTINCT ( Table1[ID] )
VAR _tab2 =
    DISTINCT ( Table2[ID] )
VAR _tab3 =
    DISTINCT ( Table3[ID] )
RETURN
    DISTINCT ( INTERSECT ( INTERSECT( _tab1, _tab2 ), _tab3 ) )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:54:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2025571#M45262</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-19T08:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection of 3 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2026522#M45327</link>
      <description>&lt;P&gt;This helps, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 16:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Intersection-of-3-tables/m-p/2026522#M45327</guid>
      <dc:creator>shreyaks1009</dc:creator>
      <dc:date>2021-08-19T16:09:33Z</dc:date>
    </item>
  </channel>
</rss>

