<?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 Userelationship doen't works many to many in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2368285#M60692</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do a&amp;nbsp;Userelationship with many to many imactive rrlation, but doesn't works. If I disable my main relation (1,*) and active my secondary and desirable relation (*,*) manually, the numbers works perfectly. But when I do it with the measure: measure = CALCULATE( SUM(column&lt;SPAN&gt;&amp;nbsp;A), USERELATIONSHI&lt;/SPAN&gt;&lt;SPAN&gt;P( inactiveRelation-key-from-table-A,&amp;nbsp;&lt;/SPAN&gt;inactiveRelation-key-from-trable-B)), it doesn't works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of measure doesn't change, like the main relation was active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is possible to do a USERELATIONSHIP with a many to many relation?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 20:03:00 GMT</pubDate>
    <dc:creator>Rift</dc:creator>
    <dc:date>2022-03-01T20:03:00Z</dc:date>
    <item>
      <title>Userelationship doen't works many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2368285#M60692</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do a&amp;nbsp;Userelationship with many to many imactive rrlation, but doesn't works. If I disable my main relation (1,*) and active my secondary and desirable relation (*,*) manually, the numbers works perfectly. But when I do it with the measure: measure = CALCULATE( SUM(column&lt;SPAN&gt;&amp;nbsp;A), USERELATIONSHI&lt;/SPAN&gt;&lt;SPAN&gt;P( inactiveRelation-key-from-table-A,&amp;nbsp;&lt;/SPAN&gt;inactiveRelation-key-from-trable-B)), it doesn't works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of measure doesn't change, like the main relation was active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is possible to do a USERELATIONSHIP with a many to many relation?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 20:03:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2368285#M60692</guid>
      <dc:creator>Rift</dc:creator>
      <dc:date>2022-03-01T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship doen't works many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2369481#M60748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363192" data-lia-user-login="Rift" class="lia-mention lia-mention-user"&gt;Rift&lt;/a&gt;&amp;nbsp;, It is recommended to avoid Many to Many relationships.&amp;nbsp; The USERELATIONSHIP function works best with One to One or One to Many relationship.&amp;nbsp; You could consider changing your Data Model avoid the current scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is an alternative approach using the TREATAS function.&amp;nbsp; &amp;nbsp;Please consider the following for background on the relationships vs treatas -&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/relationships-in-power-bi-and-tabular-models/" target="_blank"&gt;Relationships in Power BI and Tabular models - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 08:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2369481#M60748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-02T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship doen't works many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2370082#M60785</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363192" data-lia-user-login="Rift" class="lia-mention lia-mention-user"&gt;Rift&lt;/a&gt;&amp;nbsp;The best approach is to create a fact table, which is a table with the column you use to relate the two tables. This way you would have a one to many connection for each of the two tables.&lt;/P&gt;
&lt;P&gt;Here is a very simple example, but if you want to share your data I can help you in modeling an effective scheme.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In this way you can combine in a single table the fields relating to the transactions both of the first table (for example amount) and of the second one (for example City).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2370082#M60785</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-03-02T13:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship doen't works many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2371289#M60856</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thanks you for your responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved my problem, disabling main relationship:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(CALCULATE( SUM(column&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;A), USERELATIONSHI&lt;/SPAN&gt;&lt;SPAN&gt;P( inactiveRelation-key-from-table-A,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;inactiveRelation-key-from-trable-B)), CROSSFILTER(currentActiveRelationship-key-from-table-A, currentActiveRelationship-key-from-table-B,&amp;nbsp;&lt;STRONG&gt;NONE&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 23:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/2371289#M60856</guid>
      <dc:creator>Rift</dc:creator>
      <dc:date>2022-03-02T23:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship doen't works many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/3876074#M151362</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363192" data-lia-user-login="Rift" class="lia-mention lia-mention-user"&gt;Rift&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you so much for this answer. I too have an active 1-to-many and a deactivated many-to-many. I was expecting USERELATIONSHIP to work, but it did not. Your answer saved me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 15:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-doen-t-works-many-to-many/m-p/3876074#M151362</guid>
      <dc:creator>justinh</dc:creator>
      <dc:date>2024-04-29T15:14:12Z</dc:date>
    </item>
  </channel>
</rss>

