<?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: Two joins between 2 tables in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3715973#M33013</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624325" data-lia-user-login="prajaktakeni11" class="lia-mention lia-mention-user"&gt;prajaktakeni11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;First of all, many thanks to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398331" data-lia-user-login="dshmulenson" class="lia-mention lia-mention-user"&gt;dshmulenson&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; for your very quick and effective replies, and I will give some additions below:&lt;/P&gt;
&lt;P&gt;To answer your question: Yes, you can indeed have multiple relationships between two tables in Power BI, including on different columns as you've described. You can have a relationship between 'TableA(Emp ID)' and 'TableB(Emp ID)'as well as between 'TableA(Service)' and 'TableB(Service)'. This is a valid scenario in Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it's important to note that while you can define multiple relationships between two tables, only one of these relationships can be active at any given time. The active relationship is the one that Power BI uses for filter propagation in your reports by default. The additional relationships will be set as inactive but can be utilized in your DAX calculations using the 'USERELATIONSHIP' function to temporarily treat an inactive relationship as active.&lt;/P&gt;
&lt;P&gt;For more detailed guidance on creating and managing relationships in Power BI, including setting relationships as active or inactive, I recommend checking out the following documentation:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships" target="_blank"&gt;Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for utilizing inactive relationships in your DAX calculations:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/userelationship-function-dax" target="_blank"&gt;USERELATIONSHIP function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 05:46:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-22T05:46:24Z</dc:date>
    <item>
      <title>Two joins between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714490#M32983</link>
      <description>&lt;P&gt;Hello I am new to Power BI , Wanted to ask can I have two relation between two table on different columns&amp;nbsp;&lt;BR /&gt;For Example&lt;/P&gt;&lt;P&gt;1st Relation --TableA(Emp ID)-TableB(Emp ID)&lt;/P&gt;&lt;P&gt;2nd Relation --TableA(Service)-TableB(Service)&lt;/P&gt;&lt;P&gt;Ist this valid in Power BI ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714490#M32983</guid>
      <dc:creator>prajaktakeni11</dc:creator>
      <dc:date>2024-02-21T14:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Two joins between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714585#M32985</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624325" data-lia-user-login="prajaktakeni11" class="lia-mention lia-mention-user"&gt;prajaktakeni11&lt;/a&gt;&amp;nbsp;Yes, but one relationships will be inactive. You can use USERELATIONSHIP to select the relationship you want to use in a calculation in DAX.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714585#M32985</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-21T14:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two joins between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714610#M32986</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;yes it is possible. but you probaly have to active one of the relationships&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:57:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3714610#M32986</guid>
      <dc:creator>dshmulenson</dc:creator>
      <dc:date>2024-02-21T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Two joins between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3715973#M33013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624325" data-lia-user-login="prajaktakeni11" class="lia-mention lia-mention-user"&gt;prajaktakeni11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;First of all, many thanks to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398331" data-lia-user-login="dshmulenson" class="lia-mention lia-mention-user"&gt;dshmulenson&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; for your very quick and effective replies, and I will give some additions below:&lt;/P&gt;
&lt;P&gt;To answer your question: Yes, you can indeed have multiple relationships between two tables in Power BI, including on different columns as you've described. You can have a relationship between 'TableA(Emp ID)' and 'TableB(Emp ID)'as well as between 'TableA(Service)' and 'TableB(Service)'. This is a valid scenario in Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it's important to note that while you can define multiple relationships between two tables, only one of these relationships can be active at any given time. The active relationship is the one that Power BI uses for filter propagation in your reports by default. The additional relationships will be set as inactive but can be utilized in your DAX calculations using the 'USERELATIONSHIP' function to temporarily treat an inactive relationship as active.&lt;/P&gt;
&lt;P&gt;For more detailed guidance on creating and managing relationships in Power BI, including setting relationships as active or inactive, I recommend checking out the following documentation:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships" target="_blank"&gt;Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for utilizing inactive relationships in your DAX calculations:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/userelationship-function-dax" target="_blank"&gt;USERELATIONSHIP function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 05:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3715973#M33013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-22T05:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two joins between 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3722047#M33041</link>
      <description>&lt;P&gt;Depends on what you want...&lt;/P&gt;&lt;P&gt;If you need &lt;STRONG&gt;two relations&lt;/STRONG&gt; between two tables, it is possible (only one relation can be activelly used).&lt;/P&gt;&lt;P&gt;If you need &lt;STRONG&gt;single relation on two pair of columns&lt;/STRONG&gt; beween two tables, it is not possible directly, you must make merge column first.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 16:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Two-joins-between-2-tables/m-p/3722047#M33041</guid>
      <dc:creator>josef78</dc:creator>
      <dc:date>2024-02-25T16:21:48Z</dc:date>
    </item>
  </channel>
</rss>

